Game.GetActiveTeam (Civ5 API)

From Civilization Modding Wiki
Revision as of 19:36, 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).


Function.png This function is a member of Game.

This is a static method, invoke it with a dot.


Usage

TeamID Game.GetActiveTeam()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0459
if (Teams[Game.GetActiveTeam()]:IsHasMet(player:GetTeam())) then
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
0061
local iActiveTeam = Game.GetActiveTeam();
0265
if (Teams[Players[iAlly]:GetTeam()]:IsHasMet(Game.GetActiveTeam())) then
0311
local iResourceType = pTargetPlot:GetResourceType(Game.GetActiveTeam());


CivsAlive.lua - DLC_01 DLC

DLC/DLC_01/Scenarios/Mongol Scenario/CivsAlive.lua
0049
Game.SetWinner(Game.GetActiveTeam(), GameInfo.Victories["VICTORY_DOMINATION"].ID);


DeclareWarMovePopup.lua

UI/InGame/PopupsGeneric/DeclareWarMovePopup.lua
0019
if (not owner:IsMinorCiv() and Teams[Game.GetActiveTeam()]:IsOpenBordersTradingAllowed()) then


DeclareWarMovePopup.lua (G&K)

DLC/Expansion/UI/InGame/PopupsGeneric/DeclareWarMovePopup.lua
0019
if (not owner:IsMinorCiv() and Teams[Game.GetActiveTeam()]:IsOpenBordersTradingAllowedWithTeam(plot:GetTeam())) then


Demographics.lua

UI/InGame/Popups/Demographics.lua
0335
elseif (not pTeam:IsHasMet(Game.GetActiveTeam())) then


DiploList.lua

UI/InGame/DiploList.lua
0469
local bWar = Teams[Game.GetActiveTeam()]:IsAtWar(pOtherPlayer:GetTeam());


DiploRelationships.lua

UI/InGame/Popups/DiploRelationships.lua
0376
local bWar = Teams[Game.GetActiveTeam()]:IsAtWar(pPlayer:GetTeam());


DiscussionDialog.lua (G&K)

DLC/Expansion/UI/InGame/LeaderHead/DiscussionDialog.lua
0226
if (not pAIPlayer:IsStopSpyingMessageTooSoon(iActivePlayer) and bHasAgents and (g_iAITeam ~= Game.GetActiveTeam())) then


EndGameMenu.lua

UI/InGame/Popups/EndGameMenu.lua
0122
if( team == Game.GetActiveTeam() ) then


EnemyUnitPanel.lua

UI/InGame/WorldView/EnemyUnitPanel.lua
1798
local iTeam = Game.GetActiveTeam()
1799
local pTeam = Teams[iTeam]
1922
local myTeamID = Game.GetActiveTeam();


GenericWorldAnchor.lua

UI/InGame/GenericWorldAnchor.lua
0242
local iResource = pPlot:GetResourceType(Game.GetActiveTeam());


InfoTooltipInclude.lua

UI/InGame/InfoTooltipInclude.lua
0010
local pActiveTeam = Teams[Game.GetActiveTeam()];


InGame.lua

UI/InGame/InGame.lua
0085
local team = Game.GetActiveTeam();


LeaderHeadRoot.lua

UI/InGame/LeaderHead/LeaderHeadRoot.lua
0151
if (Game.GetActiveTeam() == g_iAITeam) then
0267
local bAtWar = Teams[Game.GetActiveTeam()]:IsAtWar(g_iAITeam);
0288
if (iTeam1 == Game.GetActiveTeam() and iTeam2 == g_iAITeam) then


PathHelpManager.lua

UI/InGame/WorldView/PathHelpManager.lua
0039
if( plot:IsRevealed( Game.GetActiveTeam(), false ) ) then


ResourceIconManager.lua

UI/InGame/ResourceIconManager.lua
0088
if( not bIsBuilt and pPlayer:GetTeam() == Game.GetActiveTeam() ) then
0104
if( not plot:IsRevealed( Game.GetActiveTeam(), false ) ) then


ResourceTooltipGenerator.lua

UI/InGame/ResourceTooltipGenerator.lua
0006
local iResourceID = plot:GetResourceType(Game.GetActiveTeam());


TechAwardPopup.lua

UI/InGame/Popups/TechAwardPopup.lua
0015
local activeTeamID = Game.GetActiveTeam();
0147
activeTeamID = Game.GetActiveTeam();


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
0283
if (Teams[player:GetTeam()]:IsHasMet(Game.GetActiveTeam())) then


UnitFlagManager.lua

UI/InGame/UnitFlagManager.lua
0849
if( Game.GetActiveTeam() == Players[ self.m_PlayerID ]:GetTeam() ) then
1411
if( plot:IsVisible( Game.GetActiveTeam() ) ) then


VictoryProgress.lua

UI/InGame/Popups/VictoryProgress.lua
0289
local iTeam = Game.GetActiveTeam();
0408
local curTeam = Game.GetActiveTeam()
0409
for i, v in pairs(Teams) do
0457
if (Teams[leadAI:GetTeam()]:IsHasMet(Game.GetActiveTeam()) or Game:IsNetworkMultiPlayer()) then
0837
if (pTeam:IsHasMet(Game.GetActiveTeam()) or Game:IsNetworkMultiPlayer()) then
0986
local pTeam = Teams[Game.GetActiveTeam()];


VoteResultsPopup.lua

UI/InGame/Popups/VoteResultsPopup.lua
0126
elseif (not pVoteCastTeam:IsHasMet(Game.GetActiveTeam())) then


VoteResultsPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/VoteResultsPopup.lua
0129
if (Teams[Game.GetActiveTeam()]:IsHasMet(iTeam)) then



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.