aircraft.h
author Darkvater
Sun, 17 Sep 2006 11:33:19 +0000
changeset 4614 3b28b8e7d4b6
parent 3987 22972f38e240
child 4653 9f72ab9dc4a7
permissions -rw-r--r--
(svn r6471) -Fix (r6450): ConPatch was moved from network-only, but the function was
still inside the ENABLE_NETWORK define. Thanks nycom.
/* $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 */