Player.HasCreatedPantheon (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:HasCreatedPantheon()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

ChooseFaithGreatPerson.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChooseFaithGreatPerson.lua
0037
if (info.ID == GameInfo.Units["UNIT_PROPHET"].ID and (not player:HasCreatedPantheon() or (not player:HasCreatedReligion() and Game.GetNumReligionsStillToFound() == 0))) then


ChooseFreeItem.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChooseFreeItem.lua
0029
(not info.FoundReligion or player:HasCreatedPantheon())) then


ChooseReligionPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChooseReligionPopup.lua
0392
elseif (pPlayer:HasCreatedPantheon()) then
0577
if (not pPlayer:HasCreatedPantheon()) then


ReligionOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ReligionOverview.lua
0113
elseif(player:HasCreatedPantheon()) then
0264
return (player:HasCreatedReligion() or (player:HasCreatedPantheon() and Game.GetNumReligionsStillToFound() > 0));
0379
elseif (player:HasCreatedPantheon()) then


TopPanel.lua (G&K)

DLC/Expansion/UI/InGame/TopPanel.lua
0944
if (pPlayer:HasCreatedPantheon()) 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.