(svn r16876) -Codechange: add helper functions to cast to Station/Waypoint with some extra checks.

This commit is contained in:
rubidium
2009-07-18 18:39:17 +00:00
parent 73453e61d6
commit 3fcfb9b248
4 changed files with 61 additions and 17 deletions

View File

@@ -44,6 +44,7 @@ enum StationFacility {
FACIL_BUS_STOP = 1 << 2, ///< Station with bus stops
FACIL_AIRPORT = 1 << 3, ///< Station with an airport
FACIL_DOCK = 1 << 4, ///< Station with a dock
FACIL_WAYPOINT = 1 << 7, ///< Station is a waypoint
};
DECLARE_ENUM_AS_BIT_SET(StationFacility);
typedef SimpleTinyEnumT<StationFacility, byte> StationFacilityByte;