|
OpenTTD Source
14.0-beta3
|
Go to the documentation of this file.
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);
@ CMD_BUILD_LONG_ROAD
build a complete road (not a "half" one)
@ CMD_BUILD_ROAD_DEPOT
build a road depot
@ CMD_CONVERT_ROAD
convert a road type
@ CMD_BUILD_ROAD
build a "half" road
@ CMD_REMOVE_LONG_ROAD
remove a complete road (not a "half" one)
RoadStopType
Types of RoadStops.
Axis
Allow incrementing of DiagDirDiff variables.
enum RoadStopClassID byte void DrawRoadDepotSprite(int x, int y, DiagDirection dir, RoadType rt)
Draw the road depot sprite.
void UpdateNearestTownForRoadTiles(bool invalidate)
Updates cached nearest town for all road tiles.
CommandCost CmdBuildRoad(DoCommandFlag flags, TileIndex tile, RoadBits pieces, RoadType rt, DisallowedRoadDirections toggle_drd, TownID town_id)
Build a piece of road.
void CommandCallback(Commands cmd, const CommandCost &result, TileIndex tile)
Define a callback function for the client, after the command is finished.
DoCommandFlag
List of flags for a command.
@ CMD_DEITY
the command may be executed by COMPANY_DEITY
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.
Common return value for all commands.
@ CMD_AUTO
set the DC_AUTO flag on this command
DisallowedRoadDirections
Which directions are disallowed ?
DiagDirection
Enumeration for diagonal directions.
CommandCost CmdBuildRoadDepot(DoCommandFlag flags, TileIndex tile, RoadType rt, DiagDirection dir)
Build a road depot.
@ CMD_NO_WATER
set the DC_NO_WATER flag on this command
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.
RoadType
The different roadtypes we support.
@ CMD_NO_TEST
the command's output may differ between test and execute due to town rating changes etc.
RoadBits
Enumeration for the road parts on a tile.
void CcBuildRoadTunnel(Commands, const CommandCost &result, TileIndex start_tile)
Callback executed after a build road tunnel command has been called.
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.
Commands
List of commands.
@ CMDT_LANDSCAPE_CONSTRUCTION
Construction and destruction of objects on the map.
CommandCost CmdConvertRoad(DoCommandFlag flags, TileIndex tile, TileIndex area_start, RoadType to_type)
Convert one road subtype to another.