City.GetY (Civ5 API): Difference between revisions
(Bot update) |
(No difference)
|
Latest revision as of 18:00, 19 September 2012
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
ResourceType City:GetY()
Returned Value
- No description available.
Source code samples
Redundant occurences have been removed.
Bombardment.lua
UI/InGame/Bombardment.lua
0026
|
thisY = pHeadSelectedCity:GetY(); |
CityBannerManager.lua
UI/InGame/CityBannerManager.lua
1252
|
OnCityCreated( ToHexFromGrid( Vector2( city:GetX(), city:GetY() ) ), player:GetID(), city:GetID() ); |
CityBannerManager.lua (G&K)
DLC/Expansion/UI/InGame/CityBannerManager.lua
0110
|
local cityY = city:GetY(); |
CityList.lua
UI/InGame/CityList.lua
0107
|
instance.Button:SetVoids( pCity:GetX(), pCity:GetY() ); |
CityStateDiploPopup.lua
UI/InGame/Popups/CityStateDiploPopup.lua
0291
|
local thisY = pCapital:GetY(); |
CityView.lua
UI/InGame/CityView/CityView.lua
0956
|
Events.RequestYieldDisplay( YieldDisplayTypes.CITY_OWNED, pCity:GetX(), pCity:GetY() ); |
0961
|
Events.RequestYieldDisplay( YieldDisplayTypes.CITY_WORKED, pCity:GetX(), pCity:GetY() ); |
1832
|
Events.RequestYieldDisplay( YieldDisplayTypes.CITY_PURCHASABLE, pCity:GetX(), pCity:GetY() ); |
EnemyUnitPanel.lua (G&K)
DLC/Expansion/UI/InGame/WorldView/EnemyUnitPanel.lua
0931
|
local plotDistance = Map.PlotDistance(pCapital:GetX(), pCapital:GetY(), pMyUnit:GetX(), pMyUnit:GetY()); |
1480
|
local plotDistance = Map.PlotDistance(pCapital:GetX(), pCapital:GetY(), pTheirUnit:GetX(), pTheirUnit:GetY()); |
1821
|
local plotDistance = Map.PlotDistance(pCapital:GetX(), pCapital:GetY(), theirUnit:GetX(), theirUnit:GetY()); |
InGame.lua
UI/InGame/InGame.lua
0294
|
Events.RequestYieldDisplay( YieldDisplayTypes.CITY_WORKED, lastCityEntered:GetX(), lastCityEntered:GetY() ); |
InGame.lua (G&K)
DLC/Expansion/UI/InGame/InGame.lua
0678
|
local iCityStateY = pCityStateCity:GetY(); |
ProductionPopup.lua
UI/InGame/Popups/ProductionPopup.lua
0224
|
Controls.CityButton:SetVoids( city:GetX(), city:GetY() ); |
TradeLogic.lua
UI/InGame/WorldView/TradeLogic.lua
1268
|
if( g_Deal:IsPossibleToTradeItem( g_iUs, g_iThem, TradeableItems.TRADE_ITEM_CITIES, pCity:GetX(), pCity:GetY() ) ) then |
1286
|
if( g_Deal:IsPossibleToTradeItem( g_iThem, g_iUs, TradeableItems.TRADE_ITEM_CITIES, pCity:GetX(), pCity:GetY() ) ) then |
2467
|
if ( g_Deal:IsPossibleToTradeItem( m_iFrom, m_iTo, TradeableItems.TRADE_ITEM_CITIES, pCity:GetX(), pCity:GetY() ) ) then |
TurnsRemaining.lua - DLC_02 DLC
DLC/DLC_02/Scenarios/NewWorldScenario/TurnsRemaining.lua
0209
|
if (capital ~= nil and capital:GetX() == iX and capital:GetY() == iY) then |
TurnsRemaining.lua - DLC_04 DLC
DLC/DLC_04/Scenarios/1066Scenario/TurnsRemaining.lua
0109
|
if (Map.PlotDistance(pCity:GetX(), pCity:GetY(), iLondonX, iLondonY) < 8) then |
0123
|
if (pCity:GetX() ~= iLondonX or pCity:GetY() ~= iLondonY) then |
TurnsRemaining.lua (G&K)
DLC/Expansion/Scenarios/FallOfRomeScenario/TurnsRemaining.lua
0415
|
if ((pCity:GetX() == 33 and pCity:GetY() == 31) or (pCity:GetX() == 58 and pCity:GetY() == 29)) then |
0429
|
local iY = pTargetCity:GetY(); |
0491
|
print(iPlayerLoop .. " " .. pCity:GetX() .. " " .. pCity:GetY()); |
TurnsRemaining.lua (G&K)
DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
1060
|
unit = pPlayer:InitUnit (iUnitID, capital:GetX(), capital:GetY(), UNITAI_WORKER, DirectionTypes.DIRECTION_EAST); |
1064
|
unit = pPlayer:InitUnit (iUnitID, capital:GetX(), capital:GetY(), UNITAI_DEFENSE, DirectionTypes.DIRECTION_EAST); |
1264
|
unit = pPlayer:InitUnit (iUnitID, capital:GetX(), capital:GetY(), UNITAI_SETTLE, DirectionTypes.DIRECTION_WEST); |
1276
|
unit = pPlayer:InitUnit (iUnitID, capital:GetX(), capital:GetY(), UNITAI_WORKER, DirectionTypes.DIRECTION_WEST); |
1288
|
unit = pPlayer:InitUnit (iUnitID, capital:GetX(), capital:GetY(), UNITAI_DEFENSE, DirectionTypes.DIRECTION_WEST); |
1300
|
unit = pPlayer:InitUnit (iUnitID, capital:GetX(), capital:GetY(), UNITAI_GENERAL, DirectionTypes.DIRECTION_WEST); |
1304
|
unit = pPlayer:InitUnit (iUnitID, capital:GetX(), capital:GetY(), UNITAI_RANGED, DirectionTypes.DIRECTION_WEST); |
1566
|
elseif (pCity:GetX() == zurichX and pCity:GetY() == zurichY) then |
1568
|
elseif (pCity:GetX() == genevaX and pCity:GetY() == genevaY) then |
1587
|
if (Map.PlotDistance(pReformerCity:GetX(), pReformerCity:GetY(), pCity:GetX(), pCity:GetY()) <= 10) then |
1612
|
unit = pPlayer:InitUnit (iUnitID, capital:GetX(), capital:GetY(), UNITAI_SETTLE, DirectionTypes.DIRECTION_EAST); |
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.