rail_type.h File Reference

The different types of rail. More...

#include "core/enum_type.hpp"

Go to the source code of this file.

Data Structures

struct  EnumPropsT< RailType >
 Define basic enum properties. More...
struct  EnumPropsT< RailTypes >

Typedefs

typedef TinyEnumT< RailTypeRailTypeByte
typedef TinyEnumT< RailTypesRailTypesByte

Enumerations

enum  RailType {
  RAILTYPE_BEGIN = 0, RAILTYPE_RAIL = 0, RAILTYPE_ELECTRIC = 1, RAILTYPE_MONO = 2,
  RAILTYPE_MAGLEV = 3, RAILTYPE_END, INVALID_RAILTYPE = 0xFF
}
 Enumeration for all possible railtypes. More...
enum  RailTypes {
  RAILTYPES_NONE = 0, RAILTYPES_RAIL = 1 << RAILTYPE_RAIL, RAILTYPES_ELECTRIC = 1 << RAILTYPE_ELECTRIC, RAILTYPES_MONO = 1 << RAILTYPE_MONO,
  RAILTYPES_MAGLEV = 1 << RAILTYPE_MAGLEV, RAILTYPES_ALL = RAILTYPES_RAIL | RAILTYPES_ELECTRIC | RAILTYPES_MONO | RAILTYPES_MAGLEV, RAILTYPES_END, INVALID_RAILTYPES = 0xFF
}
 The different roadtypes we support, but then a bitmask of them. More...

Functions

 DECLARE_POSTFIX_INCREMENT (RailType)
 Allow incrementing of Track variables.
 DECLARE_ENUM_AS_BIT_SET (RailTypes)


Detailed Description

The different types of rail.

Definition in file rail_type.h.


Enumeration Type Documentation

enum RailType

Enumeration for all possible railtypes.

This enumeration defines all 4 possible railtypes.

Enumerator:
RAILTYPE_BEGIN  Used for iterations.
RAILTYPE_RAIL  Standard non-electric rails.
RAILTYPE_ELECTRIC  Electric rails.
RAILTYPE_MONO  Monorail.
RAILTYPE_MAGLEV  Maglev.
RAILTYPE_END  Used for iterations.
INVALID_RAILTYPE  Flag for invalid railtype.

Definition at line 15 of file rail_type.h.

enum RailTypes

The different roadtypes we support, but then a bitmask of them.

Enumerator:
RAILTYPES_NONE  No rail types.
RAILTYPES_RAIL  Non-electrified rails.
RAILTYPES_ELECTRIC  Electrified rails.
RAILTYPES_MONO  Monorail!
RAILTYPES_MAGLEV  Ever fast maglev.
RAILTYPES_ALL  All of them.
RAILTYPES_END  Used for iterations?
INVALID_RAILTYPES  Invalid railtypes.

Definition at line 34 of file rail_type.h.


Generated on Wed Oct 1 17:03:30 2008 for openttd by  doxygen 1.5.6