OpenTTD Source
20240917-master-g9ab0a47812
|
Go to the documentation of this file.
23 CommandCost CmdBuildSingleSignal(
DoCommandFlag flags,
TileIndex tile,
Track track,
SignalType sigtype,
SignalVariant sigvar,
bool convert_signal,
bool skip_existing_signals,
bool ctrl_pressed,
SignalType cycle_start,
SignalType cycle_stop, uint8_t num_dir_cycle, uint8_t signals_copy);
void CcBuildRailTunnel(Commands, const CommandCost &result, TileIndex tile)
Command callback for building a tunnel.
@ CMD_BUILD_SIGNAL_TRACK
add signals along a track (by dragging)
@ CMD_BUILD_SINGLE_SIGNAL
build a signal
CommandCost CmdRemoveSignalTrack(DoCommandFlag flags, TileIndex tile, TileIndex end_tile, Track track, bool autofill)
Remove signals on a stretch of track.
@ CMD_BUILD_SINGLE_RAIL
build a single rail track
@ CMD_REMOVE_SINGLE_RAIL
remove a single rail track
RailType
Enumeration for all possible railtypes.
CommandCost CmdRemoveSingleRail(DoCommandFlag flags, TileIndex tile, Track track)
Remove a single piece of track.
CommandCost CmdBuildRailroadTrack(DoCommandFlag flags, TileIndex end_tile, TileIndex start_tile, RailType railtype, Track track, bool auto_remove_signals, bool fail_on_obstacle)
Build rail on a stretch of track.
DiagDirection
Enumeration for diagonal directions.
CommandCost CmdRemoveRailroadTrack(DoCommandFlag flags, TileIndex end_tile, TileIndex start_tile, Track track)
Build rail on a stretch of track.
void CommandCallback(Commands cmd, const CommandCost &result, TileIndex tile)
Define a callback function for the client, after the command is finished.
@ CMD_CONVERT_RAIL
convert a rail type
@ CMD_REMOVE_RAILROAD_TRACK
remove a rail track
CommandCost CmdConvertRail(DoCommandFlag flags, TileIndex tile, TileIndex area_start, RailType totype, bool diagonal)
Convert one rail type to the other.
DoCommandFlag
List of flags for a command.
SignalVariant
Variant of the signal, i.e.
CommandCost CmdBuildSignalTrack(DoCommandFlag flags, TileIndex tile, TileIndex end_tile, Track track, SignalType sigtype, SignalVariant sigvar, bool mode, bool autofill, bool minimise_gaps, uint8_t signal_density)
Build signals on a stretch of track.
Common return value for all commands.
@ CMD_AUTO
set the DC_AUTO flag on this command
CommandCost CmdRemoveSingleSignal(DoCommandFlag flags, TileIndex tile, Track track)
Remove signals.
CommandCost CmdBuildSingleSignal(DoCommandFlag flags, TileIndex tile, Track track, SignalType sigtype, SignalVariant sigvar, bool convert_signal, bool skip_existing_signals, bool ctrl_pressed, SignalType cycle_start, SignalType cycle_stop, uint8_t num_dir_cycle, uint8_t signals_copy)
Build signals, alternate between double/single, signal/semaphore, pre/exit/combo-signals,...
CommandCost CmdBuildSingleRail(DoCommandFlag flags, TileIndex tile, RailType railtype, Track track, bool auto_remove_signals)
Build a single piece of rail.
@ CMD_REMOVE_SINGLE_SIGNAL
remove a signal
Track
These are used to specify a single track.
@ CMD_NO_WATER
set the DC_NO_WATER flag on this command
CommandCost CmdBuildTrainDepot(DoCommandFlag flags, TileIndex tile, RailType railtype, DiagDirection dir)
Build a train depot.
@ CMD_BUILD_RAILROAD_TRACK
build a rail track
Commands
List of commands.
SignalType
Type of signal, i.e.
@ CMD_BUILD_TRAIN_DEPOT
build a train depot
@ CMDT_LANDSCAPE_CONSTRUCTION
Construction and destruction of objects on the map.
@ CMD_REMOVE_SIGNAL_TRACK
remove signals along a track (by dragging)