Aircraft Struct Reference

Aircraft, helicopters, rotors and their shadows belong to this class. More...

#include <aircraft.h>

Inheritance diagram for Aircraft:

SpecializedVehicle< Aircraft, VEH_AIRCRAFT > Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero >::PoolItem< Tpool >

Public Member Functions

 Aircraft ()
 We don't want GCC to zero our struct! It already is zeroed and has an index!
virtual ~Aircraft ()
 We want to 'destruct' the right class.
const char * GetTypeString () const
void MarkDirty ()
void UpdateDeltaXY (Direction direction)
ExpensesType GetExpenseType (bool income) const
bool IsPrimaryVehicle () const
SpriteID GetImage (Direction direction) const
int GetDisplaySpeed () const
int GetDisplayMaxSpeed () const
Money GetRunningCost () const
bool IsInDepot () const
bool Tick ()
void OnNewDay ()
uint Crash (bool flooded=false)
TileIndex GetOrderStationLocation (StationID station)
bool FindClosestDepot (TileIndex *location, DestinationID *destination, bool *reverse)
FORCEINLINE bool IsNormalAircraft () const
 Check if the aircraft type is a normal flying device; eg not a rotor or a shadow.

Data Fields

AircraftCache acache
 Cache of often used calculated values.
uint16 crashed_counter
byte pos
byte previous_pos
StationID targetairport
byte state
DirectionByte last_direction
byte number_consecutive_turns

Detailed Description

Aircraft, helicopters, rotors and their shadows belong to this class.

Definition at line 77 of file aircraft.h.


Constructor & Destructor Documentation

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

We want to 'destruct' the right class.

Definition at line 91 of file aircraft.h.


Member Function Documentation

FORCEINLINE bool Aircraft::IsNormalAircraft (  )  const [inline]

Check if the aircraft type is a normal flying device; eg not a rotor or a shadow.

Returns:
Returns true if the aircraft is a helicopter/airplane and false if it is a shadow or a rotor

Definition at line 115 of file aircraft.h.

References AIR_AIRCRAFT.

Referenced by LoadUnloadVehicle(), RemoveAirport(), UpdateAirplanesOnNewStation(), UpdateOldAircraft(), and Station::~Station().


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

Generated on Sat Dec 26 20:06:25 2009 for OpenTTD by  doxygen 1.5.6