37 void CcRoadStop(
Commands cmd,
const CommandCost &result,
TileIndex tile, uint8_t width, uint8_t length,
RoadStopType,
bool is_drive_through,
DiagDirection dir,
RoadType,
RoadStopClassID spec_class, uint16_t spec_index, StationID,
bool);
Common return value for all commands.
Types related to commands.
void CommandCallback(Commands cmd, const CommandCost &result, TileIndex tile)
Define a callback function for the client, after the command is finished.
@ CMDT_LANDSCAPE_CONSTRUCTION
Construction and destruction of objects on the map.
DoCommandFlag
List of flags for a command.
Commands
List of commands.
@ CMD_BUILD_LONG_ROAD
build a complete road (not a "half" one)
@ CMD_BUILD_ROAD
build a "half" road
@ CMD_CONVERT_ROAD
convert a road type
@ CMD_REMOVE_LONG_ROAD
remove a complete road (not a "half" one)
@ CMD_BUILD_ROAD_DEPOT
build a road depot
@ CMD_NO_TEST
the command's output may differ between test and execute due to town rating changes etc.
@ CMD_AUTO
set the DC_AUTO flag on this command
@ CMD_NO_WATER
set the DC_NO_WATER flag on this command
@ CMD_DEITY
the command may be executed by COMPANY_DEITY
Different types to 'show' directions.
Axis
Allow incrementing of DiagDirDiff variables.
DiagDirection
Enumeration for diagonal directions.
CommandCost CmdBuildRoadDepot(DoCommandFlag flags, TileIndex tile, RoadType rt, DiagDirection dir)
Build a road depot.
CommandCost CmdBuildRoad(DoCommandFlag flags, TileIndex tile, RoadBits pieces, RoadType rt, DisallowedRoadDirections toggle_drd, TownID town_id)
Build a piece of road.
void UpdateNearestTownForRoadTiles(bool invalidate)
Updates cached nearest town for all road tiles.
CommandCost CmdBuildLongRoad(DoCommandFlag flags, TileIndex end_tile, TileIndex start_tile, RoadType rt, Axis axis, DisallowedRoadDirections drd, bool start_half, bool end_half, bool is_ai)
Build a long piece of road.
std::tuple< CommandCost, Money > CmdRemoveLongRoad(DoCommandFlag flags, TileIndex end_tile, TileIndex start_tile, RoadType rt, Axis axis, bool start_half, bool end_half)
Remove a long piece of road.
void CcRoadStop(Commands cmd, const CommandCost &result, TileIndex tile, uint8_t width, uint8_t length, RoadStopType, bool is_drive_through, DiagDirection dir, RoadType, RoadStopClassID spec_class, uint16_t spec_index, StationID, bool)
Command callback for building road stops.
CommandCost CmdConvertRoad(DoCommandFlag flags, TileIndex tile, TileIndex area_start, RoadType to_type)
Convert one road subtype to another.
enum RoadStopClassID uint16_t void DrawRoadDepotSprite(int x, int y, DiagDirection dir, RoadType rt)
Draw the road depot sprite.
void CcBuildRoadTunnel(Commands, const CommandCost &result, TileIndex start_tile)
Callback executed after a build road tunnel command has been called.
Enums and other types related to roads.
RoadBits
Enumeration for the road parts on a tile.
RoadType
The different roadtypes we support.
DisallowedRoadDirections
Which directions are disallowed ?
RoadStopType
Types of RoadStops.