summaryrefslogtreecommitdiff
path: root/src/script/api/script_airport.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-12-15 18:40:15 +0000
committerrubidium <rubidium@openttd.org>2011-12-15 18:40:15 +0000
commit18d929aa21f42f292fd249e6d5feb6bf71ba93ae (patch)
tree5a26d0c7d569a26381b3b3afa83afeac3e315763 /src/script/api/script_airport.hpp
parentbb564bc34dd5db62d994eac10f88a81979a0f89c (diff)
downloadopenttd-18d929aa21f42f292fd249e6d5feb6bf71ba93ae.tar.xz
(svn r23521) -Codechange: use the actual enum values from the 'core' in the API when they refer to the in-game values in the cases where that is possible and sensible
Diffstat (limited to 'src/script/api/script_airport.hpp')
-rw-r--r--src/script/api/script_airport.hpp28
1 files changed, 13 insertions, 15 deletions
diff --git a/src/script/api/script_airport.hpp b/src/script/api/script_airport.hpp
index 6dc2fca50..42041204c 100644
--- a/src/script/api/script_airport.hpp
+++ b/src/script/api/script_airport.hpp
@@ -13,6 +13,7 @@
#define SCRIPT_AIRPORT_HPP
#include "script_object.hpp"
+#include "../../airport.h"
/**
* Class that handles all airport related functions.
@@ -24,27 +25,24 @@ public:
* The types of airports available in the game.
*/
enum AirportType {
- /* Note: the values _are_ important as they represent an in-game value */
- AT_SMALL = 0, ///< The small airport.
- AT_LARGE = 1, ///< The large airport.
- AT_METROPOLITAN = 3, ///< The metropolitan airport.
- AT_INTERNATIONAL = 4, ///< The international airport.
- AT_COMMUTER = 5, ///< The commuter airport.
- AT_INTERCON = 7, ///< The intercontinental airport.
-
- /* Next are the airports which only have helicopter platforms */
- AT_HELIPORT = 2, ///< The heliport.
- AT_HELISTATION = 8, ///< The helistation.
- AT_HELIDEPOT = 6, ///< The helidepot.
-
- AT_INVALID = 255, ///< Invalid airport.
+ /* Note: these values represent part of the in-game AirportTypes enum */
+ AT_SMALL = ::AT_SMALL, ///< The small airport.
+ AT_LARGE = ::AT_LARGE, ///< The large airport.
+ AT_METROPOLITAN = ::AT_METROPOLITAN, ///< The metropolitan airport.
+ AT_INTERNATIONAL = ::AT_INTERNATIONAL, ///< The international airport.
+ AT_COMMUTER = ::AT_COMMUTER, ///< The commuter airport.
+ AT_INTERCON = ::AT_INTERCON, ///< The intercontinental airport.
+ AT_HELIPORT = ::AT_HELIPORT, ///< The heliport.
+ AT_HELISTATION = ::AT_HELISTATION, ///< The helistation.
+ AT_HELIDEPOT = ::AT_HELIDEPOT, ///< The helidepot.
+ AT_INVALID = ::AT_INVALID, ///< Invalid airport.
};
/**
* All plane types available.
*/
enum PlaneType {
- /* Note: the values _are_ important as they represent an in-game value */
+ /* Note: these values represent part of the in-game values, which are not defined in an enum */
PT_HELICOPTER = 0, ///< A helicopter.
PT_SMALL_PLANE = 1, ///< A small plane.
PT_BIG_PLANE = 3, ///< A big plane.