34 void ConvertGroundTilesIntoWaterTiles();
36 void DrawShipDepotSprite(
int x,
int y,
Axis axis,
DepotPart part);
37 void DrawWaterClassGround(
const struct TileInfo *ti);
38 void DrawShoreTile(
Slope tileh);
53 return (_price[PR_INFRASTRUCTURE_WATER] * num * (1 +
IntSqrt(num))) >> 6;
The tile drys up if it is not constantly flooded from neighboured tiles.
Tile information, used while rendering the tile.
void TileLoop_Water(TileIndex tile)
Let a water tile floods its diagonal adjoining tiles called from tunnelbridge_cmd, and by TileLoop_Industry() and TileLoop_Track()
Direction
Defines the 8 directions on the map.
FloodingBehaviour
Describes the behaviour of a tile during flooding.
The tile does not flood neighboured tiles.
bool IsWateredTile(TileIndex tile, Direction from)
return true if a tile is a water tile wrt.
bool RiverModifyDesertZone(TileIndex tile, void *data)
Callback to create non-desert around a river tile.
FloodingBehaviour GetFloodingBehaviour(TileIndex tile)
Returns the behaviour of a tile during flooding.
Map accessors for water tiles.
The tile does not actively flood neighboured tiles, but it prevents them from drying up...
bool FloodHalftile(TileIndex t)
Called from water_cmd if a non-flat rail-tile gets flooded and should be converted to shore...
uint32 TileIndex
The index/ID of a Tile.
DepotPart
Sections of the water depot.
Functions related to the economy.
The tile floods neighboured tiles.
Slope
Enumeration for the slope-type.
static Money CanalMaintenanceCost(uint32 num)
Calculates the maintenance cost of a number of canal tiles.
uint32 IntSqrt(uint32 num)
Compute the integer square root.
Owner
Enum for all companies/owners.
Axis
Allow incrementing of DiagDirDiff variables.
void DoFloodTile(TileIndex target)
Floods a tile.