Player.IsHuman (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

int Player:IsHuman()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

ActionInfoPanel.lua

UI/InGame/WorldView/ActionInfoPanel.lua
0242
if(otherPlayer:IsHuman() and otherPlayer:IsTurnActive()) then


CityBannerManager.lua

UI/InGame/CityBannerManager.lua
1077
if player:IsHuman() then


DiploCorner.lua

UI/InGame/WorldView/DiploCorner.lua
0331
if( iPlayer ~= g_iLocalPlayer and pPlayer ~= nil and pPlayer:IsHuman() and pPlayer:GetTeam() == g_iLocalTeam ) then
0350
if( iPlayer ~= g_iLocalPlayer and pPlayer ~= nil and pPlayer:IsHuman() ) then


DiploCurrentDeals.lua

UI/InGame/Popups/DiploCurrentDeals.lua
0096
if( pOtherPlayer:GetNickName() ~= "" and pOtherPlayer:IsHuman() ) then


DiploGlobalRelationships.lua

UI/InGame/Popups/DiploGlobalRelationships.lua
0060
if (pOtherPlayer:IsHuman()) then
0160
if (pThirdPlayer:IsHuman()) then
0194
elseif (pThirdPlayer:IsHuman()) then
0325
if (Players[ ePlayer ]:IsHuman()) then


DiploList.lua

UI/InGame/DiploList.lua
0133
if( Players[ePlayer]:IsHuman() ) then
0308
elseif (pOtherPlayer:IsHuman() or pOtherTeam:IsHuman()) then
0345
if( pOtherPlayer:IsHuman() ) then


DiploRelationships.lua

UI/InGame/Popups/DiploRelationships.lua
0202
if(pOtherPlayer:GetNickName() ~= "" and pOtherPlayer:IsHuman()) then


DiscussionDialog.lua (G&K)

DLC/Expansion/UI/InGame/LeaderHead/DiscussionDialog.lua
0211
if (activePlayer:HasRecentIntrigueAbout(iPlayer) and not Players[iPlayer]:IsHuman()) then


EndGameMenu.lua

UI/InGame/Popups/EndGameMenu.lua
0027
if (iActivePlayer ~= iNextPlayer and pPlayer:IsAlive() and pPlayer:IsHuman()) then


MPList.lua

UI/InGame/WorldView/MPList.lua
0086
if (pPlayer:IsAlive() and pPlayer:IsHuman()) then
0105
local bIsHuman = pPlayer:IsHuman();


NewTurn.lua

UI/InGame/NewTurn.lua
0017
if (not Players[iPlayerID]:IsHuman()) then


ResourceIconManager.lua

UI/InGame/ResourceIconManager.lua
0083
if( pPlayer ~= nil and pPlayer:IsHuman() ) then


ReturnCivilianPopup.lua

UI/InGame/PopupsGeneric/ReturnCivilianPopup.lua
0038
elseif (not pGiftedPlayer:IsHuman()) then


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
2773
if( pLoopPlayer:IsHuman() ) then


TutorialInclude_Expansion1.lua (G&K)

DLC/Expansion/Tutorial/TutorialInclude_Expansion1.lua
0020
if (player ~= nil and player:IsHuman()) then


UnitFlagManager.lua

UI/InGame/UnitFlagManager.lua
1575
if (pPlayer:IsHuman()) 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.