equal
deleted
inserted
replaced
48 TRACKDIR_BIT_RIGHT_N = 0x2000, |
48 TRACKDIR_BIT_RIGHT_N = 0x2000, |
49 TRACKDIR_BIT_MASK = 0x3F3F, |
49 TRACKDIR_BIT_MASK = 0x3F3F, |
50 INVALID_TRACKDIR_BIT = 0xFFFF, |
50 INVALID_TRACKDIR_BIT = 0xFFFF, |
51 } TrackdirBits; |
51 } TrackdirBits; |
52 |
52 |
53 /** These are states in which a signal can be. Currently these are only two, so |
|
54 * simple boolean logic will do. But do try to compare to this enum instead of |
|
55 * normal boolean evaluation, since that will make future additions easier. |
|
56 */ |
|
57 typedef enum SignalStates { |
|
58 SIGNAL_STATE_RED = 0, |
|
59 SIGNAL_STATE_GREEN = 1, |
|
60 } SignalState; |
|
61 |
|
62 /** This struct contains all the info that is needed to draw and construct tracks. |
53 /** This struct contains all the info that is needed to draw and construct tracks. |
63 */ |
54 */ |
64 typedef struct RailtypeInfo { |
55 typedef struct RailtypeInfo { |
65 /** Struct containing the main sprites. @note not all sprites are listed, but only |
56 /** Struct containing the main sprites. @note not all sprites are listed, but only |
66 * the ones used directly in the code */ |
57 * the ones used directly in the code */ |