12 #ifndef ROAD_INTERNAL_H 13 #define ROAD_INTERNAL_H Enums and other types related to roads.
Tile information, used while rendering the tile.
WindowFlags flags
Window flags.
void DrawRoadCatenary(const TileInfo *ti, RoadBits tram)
Draws the catenary for the given tile.
Common return value for all commands.
RoadType
The different roadtypes we support.
DoCommandFlag
List of flags for a command.
RoadBits
Enumeration for the road parts on a tile.
RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb)
Clean up unnecessary RoadBits of a planed tile.
uint32 TileIndex
The index/ID of a Tile.
Owner owner
The owner of the content shown in this window. Company colour is acquired from this variable...
Owner
Enum for all companies/owners.
CommandCost CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, RoadType rt, DoCommandFlag flags, bool town_check=true)
Is it allowed to remove the given road bits from the given tile?
Generic 'commands' that can be performed on all tiles.