aircraft.h
author miham
Wed, 27 Dec 2006 13:24:36 +0000
changeset 5386 c16ec5d9c6ea
parent 4732 4f1c405ac96e
permissions -rw-r--r--
(svn r7574) WebTranslator2 update to 2006-12-27 14:23:53
bulgarian - 7 fixed, 55 changed by kokobongo (62)
catalan - 2 changed by arnaullv (2)
estonian - 26 fixed by kristjans (26)
lithuanian - 10 fixed by Plyta (10)
norwegian - 53 fixed by oletk (53)
slovak - 2 fixed by lengyel (2)
turkish - 3 fixed by jnmbk (3)
ukrainian - 28 fixed by znikoz (28)
/* $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 */