City.GetOwner (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 City.

This is an instance method, invoke it with a colon.


Usage

PlayerID City:GetOwner()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0031
if (city:GetOwner() ~= Game.GetActivePlayer()) then


CityView.lua

UI/InGame/CityView/CityView.lua
0070
if pCity:GetOwner() ~= Game.GetActivePlayer() then
0645
local pPlayer = Players[pCity:GetOwner()];
1726
if ( plot:GetOwner() == pCity:GetOwner() ) then
1793
elseif ( plot:IsVisibleEnemyUnit(pCity:GetOwner()) ) then


CityView.lua (G&K)

DLC/Expansion/UI/InGame/CityView/CityView.lua
1493
if (pCity:GetOwner() ~= Game.GetActivePlayer()) then


EnemyUnitPanel.lua

UI/InGame/WorldView/EnemyUnitPanel.lua
1457
local myPlayerID = myCity:GetOwner();


InfoTooltipInclude.lua

UI/InGame/InfoTooltipInclude.lua
0562
local iAmount = Players[pCity:GetOwner()]:GetCultureCityModifier();
0577
iAmount = Players[pCity:GetOwner()]:GetCultureWonderMultiplier();


ProductionPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ProductionPopup.lua
0135
local player = city:GetOwner();


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
0213
Game.SetFounder(GameInfoTypes["RELIGION_ORTHODOXY"], pNewHolyCity:GetOwner());
0506
if (pHolyCity:GetOwner() == ePlayer) then
0510
local eOwner = pHolyCity:GetOwner();
1471
local iPlayer = pBestCity:GetOwner();
1561
if (pCity:GetOwner() < 12) 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.