(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

This commit is contained in:
rubidium
2011-12-15 18:40:15 +00:00
parent bb564bc34d
commit 18d929aa21
17 changed files with 180 additions and 154 deletions

View File

@@ -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
};
/**