aircraft.h
author miham
Thu, 21 Sep 2006 17:26:18 +0000
changeset 4630 81c3f19da034
parent 3987 22972f38e240
child 4653 9f72ab9dc4a7
permissions -rw-r--r--
(svn r6493) WebTranslator2 update to 2006-09-21 19:25:54
czech - 19 fixed, 2 changed by Hadez (21)
/* $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 */