OpenTTD Source
20241125-master-g5b02f51e17
|
Command definitions related to aircraft. More...
Go to the source code of this file.
Functions | |
CommandCost | CmdBuildAircraft (DoCommandFlag flags, TileIndex tile, const Engine *e, Vehicle **v) |
Build an aircraft. More... | |
Command definitions related to aircraft.
Definition in file aircraft_cmd.h.
CommandCost CmdBuildAircraft | ( | DoCommandFlag | flags, |
TileIndex | tile, | ||
const Engine * | e, | ||
Vehicle ** | ret | ||
) |
Build an aircraft.
flags | type of operation. | |
tile | tile of the depot where aircraft is built. | |
e | the engine to build. | |
[out] | ret | the vehicle that has been built. |
Definition at line 271 of file aircraft_cmd.cpp.
References _current_company, Station::airport, CanVehicleUseStation(), CMD_ERROR, DC_EXEC, DIR_SE, Vehicle::direction, SpecializedStation< Station, false >::GetByTile(), Airport::GetHangarNum(), Airport::GetHangarTile(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem< Tpool >::index, Vehicle::owner, and Vehicle::tile.