TeamTechs (Civ5 Type)

From Civilization Modding Wiki
Jump to navigationJump to search

This page is a part of the Lua and UI Reference (Civ5).


Instance Methods

Methods are functions that belong to an object. Instance methods are invoked through a colon, as in caller:SomeMethod(<args>), where caller is an instance of TeamTechs.
A colon implictly passes the caller object as the first argument. That is, the former call is equivalent to this one: caller.SomeMethod(caller, <args>)

Base game Gods & Kings ___________________________
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeResearchProgress(TechType index, int change, PlayerID player)
CheckButZero.png CheckButZero.png Star.png Speech.png int ChangeResearchProgressPercent(TechType index, int percent, PlayerID player)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeResearchProgressTimes100(TechType index, int change, PlayerID player)
Check.png Check.png Star.png Speech.png TechType GetLastTechAcquired(TechType index)
Check.png Check.png Star.png Speech.png int GetNumTechsKnown(TechType index)
Check.png Check.png Star.png Speech.png int GetResearchCost(TechType tech)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetResearchLeft(TechType tech)
Check.png Check.png Star.png Speech.png int GetResearchProgress(TechType index)
CheckButZero.png CheckButZero.png Star.png Speech.png Question-blue.png GetResearchProgressTimes100
CheckButZero.png CheckButZero.png Star.png Speech.png int GetTechCount(TechType index)
Check.png Check.png Star.png Speech.png int HasResearchedAllTechs()
Check.png Check.png Star.png Speech.png int HasTech(int index)
CheckButZero.png CheckButZero.png Star.png Speech.png IncrementTechCount(TechType index)
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsNoTradeTech(TechType index)
CheckButZero.png CheckButZero.png Star.png Speech.png SetHasTech(TechType index, bool newValue)
CheckButZero.png CheckButZero.png Star.png Speech.png SetNoTradeTech(TechType index, bool newValue)
CheckButZero.png CheckButZero.png Star.png Speech.png SetResearchProgress(TechType index, int newValue, PlayerID player)
CheckButZero.png CheckButZero.png Star.png Speech.png Question-blue.png SetResearchProgressTimes100


Used by

TeamTechs Team:GetTeamTechs()



The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.