# Aircraft Struct Reference

This class 'wraps' Vehicle; you do not actually instantiate this class. More...

`#include <aircraft.h>`

Inheritance diagram for Aircraft:

## Public Member Functions
| Aircraft ()
| Initializes the Vehicle to an aircraft.
virtual | ~Aircraft ()
| We want to 'destruct' the right class.
const char * | GetTypeString () const
void | MarkDirty ()
void | UpdateDeltaXY (Direction direction)
ExpensesType | GetExpenseType (bool income) const
WindowClass | GetVehicleListWindowClass () const
bool | IsPrimaryVehicle () const
int | GetImage (Direction direction) const
int | GetDisplaySpeed () const
int | GetDisplayMaxSpeed () const
Money | GetRunningCost () const
bool | IsInDepot () const
void | Tick ()
void | OnNewDay ()

## Detailed Description

This class 'wraps' Vehicle; you do not actually instantiate this class.

You create a Vehicle using AllocateVehicle, so it is added to the pool and you reinitialize that to a Train using: v = new (v) Aircraft();

As side-effect the vehicle type is set correctly.

Definition at line 108 of file aircraft.h.

## Constructor & Destructor Documentation

virtual Aircraft::~Aircraft | ( |  | ) | `[inline, virtual]`

We want to 'destruct' the right class.

Definition at line 113 of file aircraft.h.

The documentation for this struct was generated from the following files:

- src/aircraft.h
- src/aircraft_cmd.cpp