2006-06-05 12:43:41 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2006-06-09 06:34:28 +00:00
|
|
|
#ifndef AIRCRAFT_H
|
|
|
|
#define AIRCRAFT_H
|
|
|
|
|
2006-06-05 12:43:41 +00: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 06:34:28 +00:00
|
|
|
|
|
|
|
uint16 AircraftDefaultCargoCapacity(CargoID cid, EngineID engine_type);
|
|
|
|
|
|
|
|
#endif /* AIRCRAFT_H */
|