summaryrefslogtreecommitdiff
path: root/src/script/api/script_station.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_station.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_station.hpp')
-rw-r--r--src/script/api/script_station.hpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/script/api/script_station.hpp b/src/script/api/script_station.hpp
index 0f7e1dd0a..da986fc71 100644
--- a/src/script/api/script_station.hpp
+++ b/src/script/api/script_station.hpp
@@ -14,6 +14,7 @@
#include "script_road.hpp"
#include "script_basestation.hpp"
+#include "../../station_type.h"
/**
* Class that handles all station related functions.
@@ -42,13 +43,13 @@ public:
* Type of stations known in the game.
*/
enum StationType {
- /* Values are important, as they represent the internal state of the game. */
- STATION_TRAIN = 0x01, ///< Train station
- STATION_TRUCK_STOP = 0x02, ///< Truck station
- STATION_BUS_STOP = 0x04, ///< Bus station
- STATION_AIRPORT = 0x08, ///< Airport
- STATION_DOCK = 0x10, ///< Dock
- STATION_ANY = 0x1F, ///< All station types
+ /* Note: these values represent part of the in-game StationFacility enum */
+ STATION_TRAIN = ::FACIL_TRAIN, ///< Train station
+ STATION_TRUCK_STOP = ::FACIL_TRUCK_STOP, ///< Truck station
+ STATION_BUS_STOP = ::FACIL_BUS_STOP, ///< Bus station
+ STATION_AIRPORT = ::FACIL_AIRPORT, ///< Airport
+ STATION_DOCK = ::FACIL_DOCK, ///< Dock
+ STATION_ANY = STATION_TRAIN | STATION_TRUCK_STOP | STATION_BUS_STOP | STATION_AIRPORT | STATION_DOCK, ///< All station types
};
/**