OpenTTD Source  20241108-master-g80f628063a
aircraft_cmd.h File Reference

Command definitions related to aircraft. More...

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

Go to the source code of this file.

Functions

CommandCost CmdBuildAircraft (DoCommandFlag flags, TileIndex tile, const Engine *e, Vehicle **v)
 Build an aircraft. More...
 

Detailed Description

Command definitions related to aircraft.

Definition in file aircraft_cmd.h.

Function Documentation

◆ CmdBuildAircraft()

CommandCost CmdBuildAircraft ( DoCommandFlag  flags,
TileIndex  tile,
const Engine e,
Vehicle **  ret 
)

Build an aircraft.

Parameters
flagstype of operation.
tiletile of the depot where aircraft is built.
ethe engine to build.
[out]retthe vehicle that has been built.
Returns
the cost of this operation or an error.

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.