2006-06-05 14:43:41 +02:00
|
|
|
/* $Id$ */
|
|
|
|
|
2006-06-09 08:34:28 +02:00
|
|
|
#ifndef AIRCRAFT_H
|
|
|
|
#define AIRCRAFT_H
|
|
|
|
|
2006-06-05 14:43:41 +02:00
|
|
|
#include "station_map.h"
|
|
|
|
#include "vehicle.h"
|
|
|
|
|
|
|
|
|
|
|
|
static inline bool IsAircraftInHangar(const Vehicle* v)
|
|
|
|
{
|
|
|
|
assert(v->type == VEH_Aircraft);
|
|
|
|
return v->vehstatus & VS_HIDDEN && IsHangarTile(v->tile);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline bool IsAircraftInHangarStopped(const Vehicle* v)
|
|
|
|
{
|
|
|
|
return IsAircraftInHangar(v) && v->vehstatus & VS_STOPPED;
|
|
|
|
}
|
2006-06-09 08:34:28 +02:00
|
|
|
|
|
|
|
uint16 AircraftDefaultCargoCapacity(CargoID cid, EngineID engine_type);
|
|
|
|
|
|
|
|
#endif /* AIRCRAFT_H */
|