Plot.IsLake (Civ5 API)

From Civilization Modding Wiki
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

int Plot:IsLake()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

AssignStartingPlots.lua

Gameplay/Lua/AssignStartingPlots.lua
4931
if plot:IsRiver() or plot:IsLake() then
5001
if adjPlot:IsLake() then


AssignStartingPlots.lua (G&K)

DLC/Expansion/Gameplay/Lua/AssignStartingPlots.lua
1803
if plot:IsLake() then
2209
elseif plot:IsLake() then -- Lakes are Food, Good.
3540
if plot:IsLake() == false then -- Place Fish
3885
if searchPlot:IsLake() then
5241
if plot:IsRiver() or plot:IsLake() or plot:IsFreshWater() then
7150
elseif plot:IsLake() then
8052
if plot:IsLake() == false then
9246
if not plot:IsLake() then


MapmakerUtilities.lua

Gameplay/Lua/MapmakerUtilities.lua
0323
if testPlot:IsLake() == false then -- Adjacent plot is salt water!


NaturalWondersCustomMethods.lua (G&K)

DLC/Expansion/Gameplay/Lua/NaturalWondersCustomMethods.lua
0046
if adjPlot:IsWater() == false or adjPlot:IsLake() == true then
0105
if terrainType == TerrainTypes.TERRAIN_COAST and plot:IsLake() == false then


PlotMouseoverInclude.lua

UI/InGame/PlotMouseoverInclude.lua
0105
if (plot:IsLake()) 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.