Player.GetCivilizationType (Civ5 API)

From Civilization Modding Wiki
Jump to: navigation, search

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


Function.png This function is a member of Player.

This is an instance method, invoke it with a colon.


Usage

CivilizationType Player:GetCivilizationType()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

ChangePassword.lua

UI/InGame/ChangePassword.lua
0114
local civ = GameInfo.Civilizations[pPlayer:GetCivilizationType()];


CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0406
local civType = player:GetCivilizationType();
0433
civType = pOriginalOwner:GetCivilizationType();


CityStateDiploPopup.lua

UI/InGame/Popups/CityStateDiploPopup.lua
0091
civType = pPlayer:GetCivilizationType();


ConfirmGiftPopup.lua

UI/InGame/PopupsGeneric/ConfirmGiftPopup.lua
0023
strCivName = Locale.ConvertTextKey(GameInfo.Civilizations[pGiftedPlayer:GetCivilizationType()].ShortDescription);


DiploCurrentDeals.lua

UI/InGame/Popups/DiploCurrentDeals.lua
0093
local civName = Locale.ConvertTextKey( GameInfo.Civilizations[ pOtherPlayer:GetCivilizationType() ].ShortDescription );


DiploGlobalRelationships.lua

UI/InGame/Popups/DiploGlobalRelationships.lua
0049
local civType = pOtherPlayer:GetCivilizationType();


DiploList.lua

UI/InGame/DiploList.lua
0204
local myCivType = g_pPlayer:GetCivilizationType();
0459
civType = pOtherPlayer:GetCivilizationType();


DiscussionDialog.lua

UI/InGame/LeaderHead/DiscussionDialog.lua
0052
local themCivType = pAIPlayer:GetCivilizationType();


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0954
local civilization = GameInfo.Civilizations[pActivePlayer:GetCivilizationType()];
1444
local dpCivType = pPlayer:GetCivilizationType();


Europe_Scenario.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/Europe_Scenario.lua
0031
local playerCiv = player:GetCivilizationType();


GameMenu.lua

UI/InGame/Menus/GameMenu.lua
0205
local myCivType = pPlayer:GetCivilizationType();


GameplayUtilities.lua

Gameplay/Lua/GameplayUtilities.lua
0015
local civID = player:GetCivilizationType();


ProductionPopup.lua

UI/InGame/Popups/ProductionPopup.lua
0252
local ourCiv = player:GetCivilizationType();


ReligionOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ReligionOverview.lua
0355
local civ = GameInfo.Civilizations[player:GetCivilizationType()];


ReligionOverview.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/ReligionOverview.lua
0142
local civType = pPlayer:GetCivilizationType();


ReplayViewer.lua

UI/InGame/Popups/ReplayViewer.lua
1283
Civilization = GameInfo.Civilizations[player:GetCivilizationType()].Type,


ReturnCivilianPopup.lua

UI/InGame/PopupsGeneric/ReturnCivilianPopup.lua
0027
local iNewUnit = pUnit:GetCaptureUnitType(pGiftingPlayer:GetCivilizationType());


TechAwardPopup.lua

UI/InGame/Popups/TechAwardPopup.lua
0014
local civType = GameInfo.Civilizations[player:GetCivilizationType()].Type;
0146
civType = GameInfo.Civilizations[player:GetCivilizationType()].Type;


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
0957
local themCivType = g_pThem:GetCivilizationType();
0987
Controls.ThemCiv:SetText( "(" .. Locale.ConvertTextKey( GameInfo.Civilizations[ g_pThem:GetCivilizationType() ].ShortDescription ) .. ")" );
2778
szName = szName .. " (" .. Locale.ConvertTextKey(GameInfo.Civilizations[Players[iLoopPlayer]:GetCivilizationType()].ShortDescription) .. ")";


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
0345
local civType = Players[iNewAlly]:GetCivilizationType();
1093
if (pPlayer:GetCivilizationType() == GameInfoTypes["CIVILIZATION_RUSSIA"]) then
1101
if (pPlayer:GetCivilizationType() == GameInfoTypes["CIVILIZATION_ARABIA"]) then
1107
if (pPlayer:GetCivilizationType() == GameInfoTypes["CIVILIZATION_SONGHAI"]) then


VictoryProgress.lua

UI/InGame/Popups/VictoryProgress.lua
0454
local myCivType = leadAI:GetCivilizationType();


VoteResultsPopup.lua

UI/InGame/Popups/VoteResultsPopup.lua
0145
local civType = pVoteCastPlayer:GetCivilizationType();



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.