Team (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 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 ___________________________
AddTeam(TeamID team)

C

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

D

Base game Gods & Kings ___________________________
DeclareWar(TeamID team)

G

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

H

Base game Gods & Kings ___________________________
bool HasEmbassyAtTeam(TeamID themTeam)
bool HasMetHuman()

I

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

M

Base game Gods & Kings ___________________________
MakePeace(TeamID team)
Meet(TeamID team, bool newDiplo)

S

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

U

Base game Gods & Kings ___________________________
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.