aircraft.h
author miham
Thu, 12 Oct 2006 13:46:45 +0000
changeset 4825 469333124a3e
parent 4732 4f1c405ac96e
permissions -rw-r--r--
(svn r6749) WebTranslator2 update to 2006-10-12 15:46:08
brazilian_portuguese - 15 fixed by tucalipe (15)
bulgarian - 2 changed by groupsky (2)
catalan - 2 changed by arnaullv (2)
finnish - 22 changed by kerba (22)
german - 7 fixed by Neonox (7)
slovak - 9 fixed by lengyel (9)
/* $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);

void CcCloneAircraft(bool success, TileIndex tile, uint32 p1, uint32 p2);
void HandleAircraftEnterHangar(Vehicle *v);

#endif /* AIRCRAFT_H */