(svn r16736) -Codechange: give some station enums a name and use that instead of 'byte'.

This commit is contained in:
rubidium
2009-07-04 11:26:57 +00:00
parent 65f77a7bee
commit 571dfb9055
5 changed files with 28 additions and 8 deletions

View File

@@ -5,6 +5,8 @@
#ifndef STATION_TYPE_H
#define STATION_TYPE_H
#include "core/enum_type.hpp"
typedef uint16 StationID;
typedef uint16 RoadStopID;
@@ -32,15 +34,17 @@ enum RoadStopType {
ROADSTOP_TRUCK ///< A standard stop for trucks
};
enum {
enum StationFacility {
FACIL_TRAIN = 0x01,
FACIL_TRUCK_STOP = 0x02,
FACIL_BUS_STOP = 0x04,
FACIL_AIRPORT = 0x08,
FACIL_DOCK = 0x10,
};
DECLARE_ENUM_AS_BIT_SET(StationFacility);
typedef SimpleTinyEnumT<StationFacility, byte> StationFacilityByte;
enum {
enum StationHadVehicleOfType {
// HVOT_PENDING_DELETE = 1 << 0, // not needed anymore
HVOT_TRAIN = 1 << 1,
HVOT_BUS = 1 << 2,
@@ -51,6 +55,8 @@ enum {
* can we do? ;-) */
HVOT_BUOY = 1 << 6
};
DECLARE_ENUM_AS_BIT_SET(StationHadVehicleOfType);
typedef SimpleTinyEnumT<StationHadVehicleOfType, byte> StationHadVehicleOfTypeByte;
enum CatchmentArea {
CA_NONE = 0,