diff options
author | yexo <yexo@openttd.org> | 2010-08-02 23:09:38 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-08-02 23:09:38 +0000 |
commit | 689d4bef04462173335be7f7973d67d353910783 (patch) | |
tree | f00c571f182f425a995332819431b1e7950aee3a /src/airport.h | |
parent | aae7ef73bb11f786683fe1b4cd897938d6b0691a (diff) | |
download | openttd-689d4bef04462173335be7f7973d67d353910783.tar.xz |
(svn r20331) -Doc: some more airport-related code
Diffstat (limited to 'src/airport.h')
-rw-r--r-- | src/airport.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/airport.h b/src/airport.h index 0733c9ab2..288a79a05 100644 --- a/src/airport.h +++ b/src/airport.h @@ -128,11 +128,12 @@ static const uint64 NOTHING_block = 1ULL << 30; +/** A single location on an airport where aircraft can move to. */ struct AirportMovingData { - int16 x; - int16 y; - uint16 flag; - DirectionByte direction; + int16 x; ///< x-coordinate of this position + int16 y; ///< y-coordinate of this position + uint16 flag; ///< special flags when moving towards this position + DirectionByte direction; ///< Direction to turn the aircraft after reaching this position. }; struct AirportFTAbuildup; @@ -140,11 +141,12 @@ struct AirportFTAbuildup; /** Finite sTate mAchine --> FTA */ struct AirportFTAClass { public: + /** Bitmask of airport flags. */ enum Flags { - AIRPLANES = 0x1, - HELICOPTERS = 0x2, - ALL = AIRPLANES | HELICOPTERS, - SHORT_STRIP = 0x4 + AIRPLANES = 0x1, ///< Can planes land on this airport type? + HELICOPTERS = 0x2, ///< Can helicopters land on this airport type? + ALL = AIRPLANES | HELICOPTERS, ///< Mask to check for both planes and helicopters. + SHORT_STRIP = 0x4 ///< This airport has a short landing strip, dangerous for fast aircraft. }; AirportFTAClass( |