32void ConvertGroundTilesIntoWaterTiles();
34void DrawShipDepotSprite(
int x,
int y,
Axis axis,
DepotPart part);
35void DrawWaterClassGround(
const struct TileInfo *ti);
36void DrawShoreTile(
Slope tileh);
53 return (_price[PR_INFRASTRUCTURE_WATER] * num * (1 +
IntSqrt(num))) >> 6;
Owner
Enum for all companies/owners.
uint32_t IntSqrt(uint32_t num)
Compute the integer square root.
Direction
Defines the 8 directions on the map.
Axis
Allow incrementing of DiagDirDiff variables.
Functions related to the economy.
Slope
Enumeration for the slope-type.
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,...
bool FloodHalftile(TileIndex t)
Called from water_cmd if a non-flat rail-tile gets flooded and should be converted to shore.
void ClearNeighbourNonFloodingStates(TileIndex tile)
Clear non-flooding state of the tiles around a tile.
FloodingBehaviour GetFloodingBehaviour(TileIndex tile)
Returns the behaviour of a tile during flooding.
void CheckForDockingTile(TileIndex t)
Mark the supplied tile as a docking tile if it is suitable for docking.
static const uint RIVER_OFFSET_DESERT_DISTANCE
Circular tile search radius to create non-desert around a river tile.
FloodingBehaviour
Describes the behaviour of a tile during flooding.
@ FLOOD_NONE
The tile does not flood neighboured tiles.
@ FLOOD_ACTIVE
The tile floods neighboured tiles.
@ FLOOD_DRYUP
The tile drys up if it is not constantly flooded from neighboured tiles.
@ FLOOD_PASSIVE
The tile does not actively flood neighboured tiles, but it prevents them from drying up.
void MakeRiverAndModifyDesertZoneAround(TileIndex tile)
Make a river tile and remove desert directly around it.
bool IsWateredTile(TileIndex tile, Direction from)
return true if a tile is a water tile wrt.
Money CanalMaintenanceCost(uint32_t num)
Calculates the maintenance cost of a number of canal tiles.
Map accessors for water tiles.
DepotPart
Sections of the water depot.