City.GetPopulation (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This function is a member of City. This is an instance method, invoke it with a colon. |
Usage
int City:GetPopulation()
Returned Value
- No description available.
Source code samples
Redundant occurences have been removed.
CityBannerManager.lua
UI/InGame/CityBannerManager.lua
0244
|
local cityPopulation = math.floor(city:GetPopulation()); |
CityList.lua
UI/InGame/CityList.lua
0163
|
sortEntry.Population = pCity:GetPopulation(); |
CityView.lua
UI/InGame/CityView/CityView.lua
0751
|
local cityPopulation = math.floor(pCity:GetPopulation()); |
EconomicGeneralInfo.lua
UI/InGame/Popups/EconomicGeneralInfo.lua
0259
|
local strPopInfo = " (" .. pCity:GetPopulation() .. ")"; |
HappinessInfo.lua
UI/InGame/Popups/HappinessInfo.lua
0401
|
iOccupiedPop = iOccupiedPop + pCity:GetPopulation(); |
InfoTooltipInclude.lua
UI/InGame/InfoTooltipInclude.lua
0612
|
iYieldPerPop = iYieldPerPop * pCity:GetPopulation(); |
0680
|
local iYieldFromPop = iYieldPerPop * pCity:GetPopulation(); |
ProductionPopup.lua
UI/InGame/Popups/ProductionPopup.lua
0206
|
local cityPopulation = city:GetPopulation(); |
TradeLogic.lua
UI/InGame/WorldView/TradeLogic.lua
2471
|
instance.CityPop:SetText( pCity:GetPopulation() ); |
TurnsRemaining.lua (G&K)
DLC/Expansion/Scenarios/FallOfRomeScenario/TurnsRemaining.lua
0295
|
iScore = iScore + pCity:GetPopulation(); |
TurnsRemaining.lua (G&K)
DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
0318
|
if (pCity:GetPopulation() > iBestPop) then |
0319
|
iBestPop = pCity:GetPopulation(); |
TutorialChecks.lua
Tutorial/TutorialChecks.lua
2751
|
if (v:GetPopulation() >= 3) 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.