OpenTTD Source: src/aircraft_cmd.h File Reference

OpenTTD Source 13.2.1

Functions
aircraft_cmd.h File Reference
`#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

  | 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.

Returns
  the cost of this operation or an error.

Definition at line 269 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.