src/aircraft.h
changeset 5475 2e6990a8c7c4
parent 4732 4f1c405ac96e
child 5780 b16aec7650c2
equal deleted inserted replaced
5474:ac55aefc54f3 5475:2e6990a8c7c4
       
     1 /* $Id$ */
       
     2 
       
     3 #ifndef AIRCRAFT_H
       
     4 #define AIRCRAFT_H
       
     5 
       
     6 #include "station_map.h"
       
     7 #include "vehicle.h"
       
     8 
       
     9 
       
    10 static inline bool IsAircraftInHangar(const Vehicle* v)
       
    11 {
       
    12 	assert(v->type == VEH_Aircraft);
       
    13 	return v->vehstatus & VS_HIDDEN && IsHangarTile(v->tile);
       
    14 }
       
    15 
       
    16 static inline bool IsAircraftInHangarStopped(const Vehicle* v)
       
    17 {
       
    18 	return IsAircraftInHangar(v) && v->vehstatus & VS_STOPPED;
       
    19 }
       
    20 
       
    21 uint16 AircraftDefaultCargoCapacity(CargoID cid, EngineID engine_type);
       
    22 
       
    23 void CcCloneAircraft(bool success, TileIndex tile, uint32 p1, uint32 p2);
       
    24 void HandleAircraftEnterHangar(Vehicle *v);
       
    25 
       
    26 #endif /* AIRCRAFT_H */