OpenTTD Source
20240917-master-g9ab0a47812
|
Go to the documentation of this file.
32 void ConvertGroundTilesIntoWaterTiles();
34 void DrawShipDepotSprite(
int x,
int y,
Axis axis,
DepotPart part);
35 void DrawWaterClassGround(
const struct TileInfo *ti);
36 void DrawShoreTile(
Slope tileh);
54 return (_price[PR_INFRASTRUCTURE_WATER] * num * (1 +
IntSqrt(num))) >> 6;
@ FLOOD_DRYUP
The tile drys up if it is not constantly flooded from neighboured tiles.
Tile information, used while rendering the tile.
Money CanalMaintenanceCost(uint32_t num)
Calculates the maintenance cost of a number of canal tiles.
uint32_t IntSqrt(uint32_t num)
Compute the integer square root.
Owner
Enum for all companies/owners.
void CheckForDockingTile(TileIndex t)
Mark the supplied tile as a docking tile if it is suitable for docking.
void DoFloodTile(TileIndex target)
Floods a tile.
bool IsWateredTile(TileIndex tile, Direction from)
return true if a tile is a water tile wrt.
void TileLoop_Water(TileIndex tile)
Let a water tile floods its diagonal adjoining tiles called from tunnelbridge_cmd,...
FloodingBehaviour GetFloodingBehaviour(TileIndex tile)
Returns the behaviour of a tile during flooding.
@ FLOOD_PASSIVE
The tile does not actively flood neighboured tiles, but it prevents them from drying up.
Slope
Enumeration for the slope-type.
Axis
Allow incrementing of DiagDirDiff variables.
FloodingBehaviour
Describes the behaviour of a tile during flooding.
static const uint RIVER_OFFSET_DESERT_DISTANCE
Circular tile search radius to create non-desert around a river tile.
@ FLOOD_NONE
The tile does not flood neighboured tiles.
Direction
Defines the 8 directions on the map.
bool FloodHalftile(TileIndex t)
Called from water_cmd if a non-flat rail-tile gets flooded and should be converted to shore.
@ FLOOD_ACTIVE
The tile floods neighboured tiles.
void MakeRiverAndModifyDesertZoneAround(TileIndex tile)
Make a river tile and remove desert directly around it.
DepotPart
Sections of the water depot.
bool RiverModifyDesertZone(TileIndex tile, void *data)
Callback to create non-desert around a river tile.