Team (Civ5 Type)

From Civilization Modding Wiki
Revision as of 16:11, 19 September 2012 by DonQuich (talk | contribs) (Bot update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 Team.
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>)

A

Base game Gods & Kings ___________________________
CheckButZero.png CheckButZero.png Star.png Speech.png AddTeam(TeamID team)

C

Base game Gods & Kings ___________________________
Check.png Check.png Star.png Speech.png bool CanChangeWarPeace(TeamID team)
CheckButZero.png CheckButZero.png Star.png Speech.png bool CanContact(TeamID team)
Check.png Check.png Star.png Speech.png int CanDeclareWar(TeamID team)
CheckButZero.png CheckButZero.png Star.png Speech.png Question-blue.png CanDefensiveEmbark
Check.png Check.png Star.png Speech.png bool CanEmbark()
CheckButZero.png CheckButZero.png Star.png Speech.png bool CanLaunch(VictoryType victory)
CheckButZero.png CheckButZero.png Star.png Speech.png Question-blue.png ChangeAllowEmbassyTradingAllowedCount
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeBorderObstacleCount(int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeBridgeBuildingCount(int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeDefensivePactTradingAllowedCount(int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeExtraMoves(DomainType index, int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeExtraWaterSeeFromCount(int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeForceTeamVoteEligibilityCount(VoteSourceType voteSource, int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeGoldTradingCount(int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeImprovementYieldChange(ImprovementType index1, YieldType index2, int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeMapTradingCount(int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeNukeInterception(int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeOpenBordersTradingAllowedCount(int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangePermanentAllianceTradingCount(int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeProjectCount(ProjectType index, int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeRouteChange(RouteType index, int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeTechShareCount(int index, int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeTechTradingCount(int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeVictoryPoints(int change)
CheckButZero.png CheckButZero.png Star.png Speech.png ChangeWaterWorkCount(int change)
CheckButZero.png CheckButZero.png Star.png Speech.png int CountEnemyDangerByArea(Area area)
CheckButZero.png CheckButZero.png Star.png Speech.png int CountNumCitiesByArea(Area area)
CheckButZero.png CheckButZero.png Star.png Speech.png int CountNumUnitsByArea(Area area)
CheckButZero.png CheckButZero.png Star.png Speech.png int CountTotalPopulationByArea(Area area)

D

Base game Gods & Kings ___________________________
CheckButZero.png CheckButZero.png Star.png Speech.png DeclareWar(TeamID team)

G

Base game Gods & Kings ___________________________
CheckButZero.png CheckButZero.png Star.png Speech.png Question-blue.png GetAllowEmbassyTradingAllowedCount
CheckButZero.png CheckButZero.png Star.png Speech.png int GetAtWarCount(bool ignoreMinors)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetBorderObstacleCount()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetBridgeBuildingCount()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetBuildingClassCount(BuildingClassType index)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetBuildingClassCountPlusMaking(BuildingClassType unitClass)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetBuildingClassMaking(BuildingClassType buildingClass)
Check.png Check.png Star.png Speech.png int GetCurrentEra()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetDefensivePactCount()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetDefensivePactTradingAllowedCount()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetDefensivePower()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetExtraMoves(DomainType index)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetExtraWaterSeeFromCount()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetForceTeamVoteEligibilityCount(VoteSourceType voteSource)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetGoldTradingCount()
CheckButZero.png CheckButZero.png Star.png Speech.png HandicapType GetHandicapType()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetHasMetCivCount(bool ignoreMinors)
Check.png Check.png Star.png Speech.png TeamID GetID()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetImprovementYieldChange(ImprovementType index, YieldType index2)
Check.png Check.png Star.png Speech.png PlayerID GetLeaderID()
Check.png Check.png Star.png Speech.png TeamID GetLiberatedByTeam(TeamID index)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetMapTradingCount()
Check.png Check.png Star.png Speech.png string GetName()
Check.png Check.png Star.png Speech.png unknown GetNameKey()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetNukeInterception()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetNumCities()
Check.png Check.png Star.png Speech.png int GetNumMembers()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetNumNukeUnits()
Check.png Check.png Star.png Speech.png int GetNumTurnsLockedIntoWar(TeamID team)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetObsoleteBuildingCount(BuildingType index)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetOpenBordersTradingAllowedCount()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetPermanentAllianceTradingCount()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetPower()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetProjectArtType(ProjectType index, int number)
Check.png Check.png Star.png Speech.png int GetProjectCount(ProjectType index)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetProjectDefaultArtType(ProjectType index)
Check.png Check.png Star.png Speech.png int GetProjectedVotesFromCivs()
Check.png Check.png Star.png Speech.png int GetProjectedVotesFromLiberatedMinors()
Check.png Check.png Star.png Speech.png int GetProjectedVotesFromMinorAllies()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetProjectMaking(ProjectType index)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetRouteChange(RouteType index)
Check.png Check.png Star.png Speech.png int GetScore()
CheckButZero.png CheckButZero.png Star.png Speech.png PlayerID GetSecretaryID()
Check.png Check.png Star.png Speech.png TeamTechs GetTeamTechs()
Check.png Check.png Star.png Speech.png TeamID GetTeamVotingForInDiplo()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetTechShareCount(int index)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetTechTradingCount()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetTotalLand()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetTotalPopulation()
Check.png Check.png Star.png Speech.png int GetTotalProjectedVotes()
Check.png Check.png Star.png Speech.png int GetTotalSecuredVotes()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetUnitClassCount(UnitClassType index)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetUnitClassCountPlusMaking(UnitClassType unitClass)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetUnitClassMaking(UnitClassType unitClass)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetVictoryCountdown(VictoryType victory)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetVictoryDelay(VictoryType victory)
CheckButZero.png CheckButZero.png Star.png Speech.png int GetVictoryPoints()
CheckButZero.png CheckButZero.png Star.png Speech.png int GetWaterWorkCount()

H

Base game Gods & Kings ___________________________
Check.png Check.png Star.png Speech.png bool HasEmbassyAtTeam(TeamID themTeam)
CheckButZero.png CheckButZero.png Star.png Speech.png bool HasMetHuman()

I

Base game Gods & Kings ___________________________
Check.png Check.png Star.png Speech.png int IsAlive()
Check.png Check.png Star.png Speech.png bool IsAllowEmbassyTradingAllowed()
Check.png Check.png Star.png Speech.png bool IsAllowsOpenBordersToTeam(TeamID index)
Check.png Check.png Star.png Speech.png int IsAtWar(TeamID index)
Check.png Check.png Star.png Speech.png bool IsBarbarian()
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsBorderObstacle()
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsBridgeBuilding()
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsBuildingClassMaxedOut(BuildingClassType index, int extra)
Check.png Check.png Star.png Speech.png bool IsDefensivePact(TeamID index)
Check.png Check.png Star.png Speech.png bool IsDefensivePactTradingAllowed()
CheckButZero.png CheckButZero.png Star.png Speech.png Question-blue.png IsDefensivePactTradingAllowedWithTeam
Check.png Check.png Star.png Speech.png int IsEverAlive()
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsExtraWaterSeeFrom()
Check.png Check.png Star.png Speech.png bool IsForcePeace(TeamID index)
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsForceTeamVoteEligible(VoteSourceType voteSource)
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsGoldTrading()
Check.png Check.png Star.png Speech.png int IsHasMet(TeamID index)
Check.png Check.png Star.png Speech.png bool IsHasResearchAgreement(TeamID team)
Check.png Check.png Star.png Speech.png bool IsHasTech(TechType index)
Check.png Check.png Star.png Speech.png bool IsHasTradeAgreement(TeamID team)
Check.png Check.png Star.png Speech.png bool IsHomeOfUnitedNations()
Check.png Check.png Star.png Speech.png int IsHuman()
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsMapCentering()
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsMapTrading()
Check.png Check.png Star.png Speech.png int IsMinorCiv()
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsMinorCivWarmonger()
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsNone()
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsObsoleteBuilding(BuildingType index)
Check.png Check.png Star.png Speech.png int IsOpenBordersTradingAllowed()
Check.png Check.png Star.png Speech.png int IsOpenBordersTradingAllowedWithTeam(TeamID arg0)
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsPermanentAllianceTrading()
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsPermanentWarPeace(TeamID index)
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsProjectAndArtMaxedOut(ProjectType index)
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsProjectMaxedOut(ProjectType index, int extra)
Check.png Check.png Star.png Speech.png bool IsResearchAgreementTradingAllowed()
CheckButZero.png CheckButZero.png Star.png Speech.png Question-blue.png IsResearchAgreementTradingAllowedWithTeam
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsTechShare(int index)
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsTechTrading()
Check.png Check.png Star.png Speech.png bool IsTradeAgreementTradingAllowed()
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsUnitClassMaxedOut(UnitClassType index, int extra)
CheckButZero.png CheckButZero.png Star.png Speech.png bool IsWaterWork()

M

Base game Gods & Kings ___________________________
CheckButZero.png CheckButZero.png Star.png Speech.png MakePeace(TeamID team)
Check.png Check.png Star.png Speech.png Meet(TeamID team, bool newDiplo)

S

Base game Gods & Kings ___________________________
CheckButZero.png CheckButZero.png Star.png Speech.png SetCurrentEra(int newValue)
Check.png Check.png Star.png Speech.png SetHasTech(TechType index, bool newValue, PlayerID player, bool first, bool announce)
CheckButZero.png CheckButZero.png Star.png Speech.png SetMapCentering(bool newValue)
CheckButZero.png CheckButZero.png Star.png Speech.png SetPermanentWarPeace(TeamID index, bool newValue)
CheckButZero.png CheckButZero.png Star.png Speech.png SetProjectArtType(ProjectType index, int number, int value)
CheckButZero.png CheckButZero.png Star.png Speech.png SetProjectDefaultArtType(ProjectType index, int value)

U

Base game Gods & Kings ___________________________
Check.png Check.png Star.png Speech.png UpdateEmbarkGraphics()



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.