OpenTTD Source 20260208-master-g43af8e94d0
roadveh_cmd.h File Reference

Command definitions related to road vehicles. More...

#include "command_type.h"
#include "engine_type.h"
#include "vehicle_type.h"

Go to the source code of this file.

Functions

bool RoadVehLeaveDepot (RoadVehicle *v, bool first)
bool IndividualRoadVehicleController (RoadVehicle *v, const RoadVehicle *prev)
bool RoadVehiclesAreBuilt ()
 Verify whether a road vehicle is available.
CommandCost CmdBuildRoadVehicle (DoCommandFlags flags, TileIndex tile, const Engine *e, Vehicle **v)
 Build a road vehicle.
CommandCost CmdTurnRoadVeh (DoCommandFlags flags, VehicleID veh_id)
 Turn a roadvehicle around.

Detailed Description

Command definitions related to road vehicles.

Definition in file roadveh_cmd.h.

Function Documentation

◆ CmdBuildRoadVehicle()

◆ CmdTurnRoadVeh()

◆ IndividualRoadVehicleController()

bool IndividualRoadVehicleController ( RoadVehicle * v,
const RoadVehicle * prev )

Definition at line 1148 of file roadveh_cmd.cpp.

◆ RoadVehiclesAreBuilt()

bool RoadVehiclesAreBuilt ( )

Verify whether a road vehicle is available.

Returns
true if at least one road vehicle is available, false if not

Definition at line 169 of file road_cmd.cpp.

Referenced by CheckRoadSide().

◆ RoadVehLeaveDepot()

bool RoadVehLeaveDepot ( RoadVehicle * v,
bool first )

Definition at line 1009 of file roadveh_cmd.cpp.