Plot.IsWater (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This function is a member of Plot. This is an instance method, invoke it with a colon. |
Usage
int Plot:IsWater()
Returned Value
- No description available.
Source code samples
Redundant occurences have been removed.
Amazon_XP.lua (G&K)
DLC/Expansion/Maps/Amazon_XP.lua
0261
|
if plot:IsWater() then |
0390
|
if not plot:IsWater() and (plot:GetFeatureType() == FeatureTypes.NO_FEATURE) then |
0479
|
if (adjacentPlot == nil or riverPlot:IsNEOfRiver() or riverPlot:IsWater() or adjacentPlot:IsWater()) then |
0491
|
if (adjacentPlot == nil or riverPlot:IsWOfRiver() or riverPlot:IsWater() or adjacentPlot:IsWater()) then |
0580
|
if ( adjacentPlot == nil or riverPlot:IsWOfRiver() or riverPlot:IsWater() or adjacentPlot:IsWater() ) then |
0592
|
if ( adjacentPlot == nil or riverPlot:IsNWOfRiver() or riverPlot:IsWater() or adjacentPlot:IsWater() ) then |
0636
|
if (adjacentPlot == nil or riverPlot:IsNWOfRiver() or riverPlot:IsWater() or adjacentPlot:IsWater()) then |
0649
|
if ( adjacentPlot == nil or riverPlot:IsNEOfRiver() or riverPlot:IsWater() or adjacentPlot:IsWater()) then |
0662
|
if (riverPlot == nil or riverPlot:IsWater()) then |
0849
|
elseif(not plot:IsWater()) then |
AssignStartingPlots.lua
Gameplay/Lua/AssignStartingPlots.lua
5083
|
if self.plotDataIsCoastal[plotIndex] == false and plot:IsWater() == false then |
AssignStartingPlots.lua (G&K)
DLC/Expansion/Gameplay/Lua/AssignStartingPlots.lua
1552
|
if not plot:IsWater() then -- Land plot, process it. |
5247
|
if plot:IsWater() == true then |
Bombardment.lua
UI/InGame/Bombardment.lua
0057
|
if thingThatCanActuallyFire:GetDomainType() == DomainTypes.DOMAIN_LAND and pTargetPlot:IsWater() then |
0059
|
elseif thingThatCanActuallyFire:GetDomainType() == DomainTypes.DOMAIN_SEA and not pTargetPlot:IsWater() then |
Boreal.lua (G&K)
DLC/Expansion/Maps/Boreal.lua
0568
|
elseif iY >= iH - 5 and plot:IsWater() then |
CityView.lua
UI/InGame/CityView/CityView.lua
1781
|
elseif ( plot:IsWater() and pCity:IsPlotBlockaded( plot ) ) then |
EnemyUnitPanel.lua
UI/InGame/WorldView/EnemyUnitPanel.lua
0757
|
if (not pToPlot:IsWater() and pMyUnit:GetPlot():IsWater()) then |
1796
|
if (pHeadUnit:IsCombatUnit() and (pHeadUnit:IsRanged() and pHeadUnit:IsEmbarked()) == false) and ((pHeadUnit:IsRanged() and pHeadUnit:IsRangeAttackOnlyInDomain() and not pPlot:IsWater()) == false) then |
EnemyUnitPanel.lua (G&K)
DLC/Expansion/UI/InGame/WorldView/EnemyUnitPanel.lua
0792
|
if (not pToPlot:IsWater() and pMyUnit:GetPlot():IsWater() and pMyUnit:GetDomainType() == DomainTypes.DOMAIN_LAND) then |
Great_Plains.lua
Maps/Great_Plains.lua
1508
|
if plot:IsWater() or plot:IsMountain() or plot:GetFeatureType() == FeatureTypes.FEATURE_OASIS then |
MapGenerator.lua (G&K)
DLC/Expansion/Gameplay/Lua/MapGenerator.lua
0187
|
if(plot:IsWater()) then |
0538
|
if(not plot:IsWater()) then |
0695
|
if ( not plot:IsWater() ) then |
MapmakerUtilities.lua
Gameplay/Lua/MapmakerUtilities.lua
0370
|
if plotDataIsCoastal[i] == false and not plot:IsWater() then -- plot is not itself on the coast or in the water. |
NaturalWondersCustomMethods.lua (G&K)
DLC/Expansion/Gameplay/Lua/NaturalWondersCustomMethods.lua
0046
|
if adjPlot:IsWater() == false or adjPlot:IsLake() == true then |
0067
|
if adjPlot:IsWater() == false then |
0087
|
if plot:IsWater() == false and AdjacentToSaltWater(x, y) == false then |
0143
|
if not plot:IsWater() then |
0155
|
if not SEPlot:IsWater() then |
Skirmish.lua
Maps/Skirmish.lua
0663
|
elseif (not plot:IsWater()) then |
TerrainGenerator.lua
Gameplay/Lua/TerrainGenerator.lua
0164
|
if (plot:IsWater()) then |
TurnsRemaining.lua (G&K)
DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
1392
|
elseif (plot:IsWater()) then |
1404
|
elseif (adjPlot:IsWater()) then |
TutorialChecks.lua
Tutorial/TutorialChecks.lua
1438
|
if (not pTargetPlot:IsWater() and pTargetPlot:IsVisibleEnemyUnit(player:GetID())) 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.