Player.GetLeaderType (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
LeaderType Player:GetLeaderType()
Returned Value
- No description available.
Source code samples
Redundant occurences have been removed.
DiploGlobalRelationships.lua
UI/InGame/Popups/DiploGlobalRelationships.lua
0052
|
local otherLeaderType = pOtherPlayer:GetLeaderType(); |
DiploList.lua
UI/InGame/DiploList.lua
0207
|
local myLeaderType = g_pPlayer:GetLeaderType(); |
DiploRelationships.lua
UI/InGame/Popups/DiploRelationships.lua
0154
|
local leaderType = pOtherPlayer:GetLeaderType(); |
DiploVotePopup.lua
UI/InGame/Popups/DiploVotePopup.lua
0065
|
local leader = GameInfo.Leaders[pOtherPlayer:GetLeaderType()]; |
DiscussionDialog.lua
UI/InGame/LeaderHead/DiscussionDialog.lua
0060
|
local otherLeader = GameInfo.Leaders[player:GetLeaderType()]; |
GameMenu.lua
UI/InGame/Menus/GameMenu.lua
0188
|
local leader = GameInfo.Leaders[pPlayer:GetLeaderType()]; |
GameplayUtilities.lua
Gameplay/Lua/GameplayUtilities.lua
0026
|
local leaderID = player:GetLeaderType(); |
LeaderHeadRoot.lua
UI/InGame/LeaderHead/LeaderHeadRoot.lua
0044
|
playerLeaderInfo = GameInfo.Leaders[player:GetLeaderType()]; |
PlayerChange.lua
UI/InGame/PlayerChange.lua
0095
|
local leaderType = pPlayer:GetLeaderType(); |
ReplayViewer.lua
UI/InGame/Popups/ReplayViewer.lua
1284
|
Leader = GameInfo.Leaders[player:GetLeaderType()].Type, |
TradeLogic.lua
UI/InGame/WorldView/TradeLogic.lua
0960
|
local themLeaderType = g_pThem:GetLeaderType(); |
VictoryStatus.lua (G&K)
DLC/Expansion/Scenarios/SteampunkScenario/VictoryStatus.lua
0126
|
local tLeader = GameInfo.Leaders[pPlayer:GetLeaderType()]; |
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.