Plot.GetOwner (Civ5 API)

From Civilization Modding Wiki
Revision as of 10:15, 20 September 2012 by DonQuich (talk | contribs) (Bot update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This page is a part of the Lua and UI Reference (Civ5).


Function.png This function is a member of Plot.

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


Usage

PlayerID Plot:GetOwner()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

CityBannerManager.lua

UI/InGame/CityBannerManager.lua
1091
local playerID = plot:GetOwner();


CityStateDiploPopup.lua

UI/InGame/Popups/CityStateDiploPopup.lua
0302
local iOwner = pTargetPlot:GetOwner();


CityView.lua

UI/InGame/CityView/CityView.lua
1726
if ( plot:GetOwner() == pCity:GetOwner() ) then


CivsAlive.lua - DLC_01 DLC

DLC/DLC_01/Scenarios/Mongol Scenario/CivsAlive.lua
0145
local eOwner = playerStartPlot:GetOwner();


DeclareWarMovePopup.lua

UI/InGame/PopupsGeneric/DeclareWarMovePopup.lua
0016
local owner = Players[plot:GetOwner()];


EnemyUnitPanel.lua (G&K)

DLC/Expansion/UI/InGame/WorldView/EnemyUnitPanel.lua
0904
if (pToPlot:GetOwner() == iMyPlayer) then
1453
if (pToPlot:GetOwner() == iTheirPlayer) then
1795
if (theirPlot:GetOwner() == iTheirPlayer) then


MinorCivEnterTerritoryPopup.lua

UI/InGame/PopupsGeneric/MinorCivEnterTerritoryPopup.lua
0014
popupText = Locale.ConvertTextKey("TXT_KEY_POPUP_ENTER_MINOR_CIV_LANDS", Players[plot:GetOwner()]:GetCivilizationAdjective());


PlotMouseoverInclude.lua

UI/InGame/PlotMouseoverInclude.lua
0414
if(plot:GetOwner() ~= activePlayer) then


TurnsRemaining.lua - DLC_02 DLC

DLC/DLC_02/Scenarios/NewWorldScenario/TurnsRemaining.lua
0397
local iNWOwner = pPlot:GetOwner();
0404
local iPlayer = adjacentPlot:GetOwner();


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
0427
local iOwner = pVaticanPlot:GetOwner();
0486
if (pJerusalemPlot:GetOwner() == ePlayer) then
0490
local eOwner = pJerusalemPlot:GetOwner();
1388
if (plot:GetOwner() ~= -1) then
1400
if (adjPlot:GetOwner() ~= -1) then


TutorialChecks.lua

Tutorial/TutorialChecks.lua
0251
if (v:IsCombatUnit() and pPlot:GetOwner() == v:GetOwner()) then
0312
if (plot:GetOwner() ~= Game.GetActivePlayer() and player:GetPlotDanger(plot) > 0) then
1371
if (pPlot and pPlot:GetOwner() ~= v:GetOwner() and pPlot:GetUnitPower() <= 0) then
2458
local iPlotOwner = pPlot:GetOwner();


UnitPanel.lua

UI/InGame/WorldView/UnitPanel.lua
0944
if (pPlot:GetOwner() ~= unit:GetOwner()) 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.