aircraft.h
author miham
Tue, 27 Jun 2006 12:53:13 +0000
changeset 4074 eef0ae9ab9d9
parent 3987 22972f38e240
child 4653 9f72ab9dc4a7
permissions -rw-r--r--
(svn r5388) WebTranslator2 update to 2006-06-27 14:52:55
afrikaans - 13 fixed, 1 changed by TrueTenacity (14)
french - 13 fixed by belugas (13)
hungarian - 1 fixed by miham (1)
polish - 1 fixed by meush (1)
/* $Id$ */

#ifndef AIRCRAFT_H
#define AIRCRAFT_H

#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;
}

uint16 AircraftDefaultCargoCapacity(CargoID cid, EngineID engine_type);

#endif /* AIRCRAFT_H */