Player.GetTeam (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This function is a member of Player. This is an instance method, invoke it with a colon. |
Usage
PlayerID Player:GetTeam()
Returned Value
- No description available.
Source code samples
Too many occurences. Only 50 out of 391 are listed.
CityBannerManager.lua
UI/InGame/CityBannerManager.lua
0459
|
if (Teams[Game.GetActiveTeam()]:IsHasMet(player:GetTeam())) then |
0581
|
local team = Players[playerID]:GetTeam(); |
0657
|
local cityTeam = Players[instance.playerID]:GetTeam(); |
0814
|
local active_team = Players[Game.GetActivePlayer()]:GetTeam(); |
1113
|
elseif (Teams[Game.GetActiveTeam()]:IsHasMet(player:GetTeam())) then |
CityBannerManager.lua (G&K)
DLC/Expansion/UI/InGame/CityBannerManager.lua
0193
|
elseif (not Teams[Game.GetActiveTeam()]:IsHasMet(player:GetTeam())) then |
CityStateDiploPopup.lua
UI/InGame/Popups/CityStateDiploPopup.lua
0265
|
if (Teams[Players[iAlly]:GetTeam()]:IsHasMet(Game.GetActiveTeam())) then |
CityStateStatusHelper.lua (G&K)
DLC/Expansion/UI/CityStateStatusHelper.lua
0054
|
local iMajorTeam = pMajor:GetTeam(); |
CivilopediaScreen.lua
UI/Civilopedia/CivilopediaScreen.lua
1996
|
local pTeam = Teams[pPlayer:GetTeam()]; |
CivsAlive.lua - DLC_01 DLC
DLC/DLC_01/Scenarios/Mongol Scenario/CivsAlive.lua
0137
|
local eDestroyedTeam = Players[playerID]:GetTeam(); |
Demographics.lua
UI/InGame/Popups/Demographics.lua
0328
|
local iTeam = pPlayer:GetTeam(); |
DiploCorner.lua
UI/InGame/WorldView/DiploCorner.lua
0273
|
local iOtherTeam = Players[iOtherPlayer]:GetTeam(); |
0440
|
g_iLocalTeam = g_pLocalPlayer:GetTeam(); |
DiploGlobalRelationships.lua
UI/InGame/Popups/DiploGlobalRelationships.lua
0182
|
local iThirdTeam = pThirdPlayer:GetTeam(); |
DiploList.lua
UI/InGame/DiploList.lua
0019
|
local g_iTeam = g_pPlayer:GetTeam(); |
DiploRelationships.lua
UI/InGame/Popups/DiploRelationships.lua
0054
|
if (pPlayer:GetTeam() ~= iOtherTeam and pOtherPlayer:IsAlive()) then |
0376
|
local bWar = Teams[Game.GetActiveTeam()]:IsAtWar(pPlayer:GetTeam()); |
DiscussionDialog.lua
UI/InGame/LeaderHead/DiscussionDialog.lua
0187
|
if (pAIPlayer:GetTeam() ~= Players[iActivePlayer]:GetTeam()) then |
InGame.lua
UI/InGame/InGame.lua
0236
|
if (plot:IsVisible(player:GetTeam(), false) and (plot:IsVisibleEnemyDefender(pUnit) or plot:IsEnemyCity(pUnit))) then |
MPList.lua
UI/InGame/WorldView/MPList.lua
0007
|
local g_pLocalTeam = Teams[ Players[ Game.GetActivePlayer() ]:GetTeam() ]; |
0382
|
g_pLocalTeam = Teams[ Players[ Game.GetActivePlayer() ]:GetTeam() ]; |
North_vs_South.lua
Maps/North_vs_South.lua
0602
|
local team_ID = player:GetTeam() |
0603
|
if team_ID == teamNorthID then |
PlotMouseoverInclude.lua
UI/InGame/PlotMouseoverInclude.lua
0359
|
local plotTeam = pPlayer:GetTeam(); |
Ranking.lua
UI/InGame/Popups/Ranking.lua
0019
|
if (pPlayer:GetTeam() == Game:GetWinner()) then |
ReligionOverview.lua (G&K)
DLC/Expansion/UI/InGame/Popups/ReligionOverview.lua
0485
|
local activeTeam = Teams[activePlayer:GetTeam()]; |
ResourceIconManager.lua
UI/InGame/ResourceIconManager.lua
0084
|
if( plot:IsRevealed( pPlayer:GetTeam(), false ) ) then |
0088
|
if( not bIsBuilt and pPlayer:GetTeam() == Game.GetActiveTeam() ) then |
TechPopup.lua (G&K)
DLC/Expansion/UI/InGame/TechPopup.lua
0139
|
local opponentTeam = Teams[opponentPlayer:GetTeam()]; |
TradeLogic.lua
UI/InGame/WorldView/TradeLogic.lua
0103
|
g_iThemTeam = g_pThem:GetTeam(); |
0464
|
iLoopTeam = pLoopPlayer:GetTeam(); |
2557
|
local iFromTeam = Players[iFromPlayer]:GetTeam(); |
TradeLogic.lua (G&K)
DLC/Expansion/UI/InGame/WorldView/TradeLogic.lua
2003
|
local iTeam = player:GetTeam(); |
TurnsRemaining.lua - DLC_02 DLC
DLC/DLC_02/Scenarios/NewWorldScenario/TurnsRemaining.lua
0020
|
Game.SetWinner(player:GetTeam(), GameInfo.Victories["VICTORY_DOMINATION"].ID); |
0261
|
if (pLoopPlayer:GetTeam() == myTeam) then |
TurnsRemaining.lua (G&K)
DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
0108
|
Game.SetWinner(Players[Game.GetActivePlayer()]:GetTeam(), GameInfo.Victories["VICTORY_TIME"].ID); |
0434
|
iRecipient = pAlly:GetTeam(); |
0973
|
local vaticanTeamID = Players[iVaticanPlayer]:GetTeam(); |
0975
|
local jerusalemTeamID = Players[iJerusalemPlayer]:GetTeam(); |
1236
|
pTeam = Teams[pPlayer:GetTeam()]; |
TurnsRemaining.lua (G&K)
DLC/Expansion/Scenarios/SteampunkScenario/TurnsRemaining.lua
0528
|
if (Players[iPlayer]:GetTeam() == iTeam) then |
TutorialChecks.lua
Tutorial/TutorialChecks.lua
1064
|
if (player:GetTeam() ~= iOtherTeam and pOtherPlayer:IsAlive()) then |
UnitFlagManager.lua
UI/InGame/UnitFlagManager.lua
0849
|
if( Game.GetActiveTeam() == Players[ self.m_PlayerID ]:GetTeam() ) then |
VictoryProgress.lua
UI/InGame/Popups/VictoryProgress.lua
0270
|
local pTeam = Teams[ pPlayer:GetTeam() ]; |
0374
|
not pPlayer:IsAlive() or Teams[pPlayer:GetTeam()]:GetLiberatedByTeam() ~= -1, |
0440
|
if(Teams[pPlayer:GetTeam()]:GetProjectCount(proj) > 0)then |
0604
|
local pTeamB = Teams[ playerB:GetTeam() ]; |
VictoryProgress.lua (G&K)
DLC/Expansion/UI/InGame/Popups/VictoryProgress.lua
0669
|
table.sort(sortedPlayerList, function(a, b) return Teams[Players[b]:GetTeam()]:GetTotalProjectedVotes() < |
0670
|
Teams[Players[a]:GetTeam()]:GetTotalProjectedVotes() end ); |
VoteResultsPopup.lua
UI/InGame/Popups/VoteResultsPopup.lua
0043
|
if ((pPlayer:GetID() == activePlayer:GetID()) or (activePlayer:GetTeam() == pTeam:GetID())) then |
VoteResultsPopup.lua (G&K)
DLC/Expansion/Scenarios/MedievalScenario/VoteResultsPopup.lua
0237
|
iTeamLoop = Players[iPlayerLoop]:GetTeam(); |
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.