City.GetDamage (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:GetDamage()
Returned Value
- No description available.
Source code samples
Redundant occurences have been removed.
CityBannerManager.lua
UI/InGame/CityBannerManager.lua
0453
|
RefreshCityDamage( cityBanner, city:GetDamage() ); |
CityBannerManager.lua (G&K)
DLC/Expansion/UI/InGame/CityBannerManager.lua
0519
|
RefreshCityDamage( cityBanner, city:GetDamage(), city:GetMaxHitPoints() ); |
CityList.lua
UI/InGame/CityList.lua
0132
|
local iHealthPercent = 1 - (pCity:GetDamage() / GameDefines.MAX_CITY_HIT_POINTS); |
CityList.lua (G&K)
DLC/Expansion/UI/InGame/CityList.lua
0132
|
local iHealthPercent = 1 - (pCity:GetDamage() / pCity:GetMaxHitPoints()); |
CityView.lua
UI/InGame/CityView/CityView.lua
0717
|
OnCitySetDamage(pCity:GetDamage()); |
CityView.lua (G&K)
DLC/Expansion/UI/InGame/CityView/CityView.lua
0726
|
OnCitySetDamage(pCity:GetDamage(), pCity:GetMaxHitPoints()); |
EconomicGeneralInfo.lua
UI/InGame/Popups/EconomicGeneralInfo.lua
0093
|
local pct = 1 - (pCity:GetDamage() / GameDefines.MAX_CITY_HIT_POINTS); |
EconomicGeneralInfo.lua (G&K)
DLC/Expansion/UI/InGame/Popups/EconomicGeneralInfo.lua
0093
|
local pct = 1 - (pCity:GetDamage() / pCity:GetMaxHitPoints()); |
EnemyUnitPanel.lua
UI/InGame/WorldView/EnemyUnitPanel.lua
1414
|
local myCityCurHP = myCity:GetDamage(); |
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.