5 #ifndef ELRAIL_DATA_H |
5 #ifndef ELRAIL_DATA_H |
6 #define ELRAIL_DATA_H |
6 #define ELRAIL_DATA_H |
7 |
7 |
8 /** Tile Location group. |
8 /** Tile Location group. |
9 * This defines whether the X and or Y coordinate of a tile is even */ |
9 * This defines whether the X and or Y coordinate of a tile is even */ |
10 typedef enum TLG { |
10 enum TLG { |
11 XEVEN_YEVEN = 0, |
11 XEVEN_YEVEN = 0, |
12 XEVEN_YODD = 1, |
12 XEVEN_YODD = 1, |
13 XODD_YEVEN = 2, |
13 XODD_YEVEN = 2, |
14 XODD_YODD = 3, |
14 XODD_YODD = 3, |
15 TLG_END |
15 TLG_END |
16 } TLG; |
16 }; |
17 |
17 |
18 /** When determining the pylon configuration on the edge, two tiles are taken |
18 /** When determining the pylon configuration on the edge, two tiles are taken |
19 * into account: the tile being drawn itself (the home tile, the one in |
19 * into account: the tile being drawn itself (the home tile, the one in |
20 * ti->tile), and the neighbouring tile */ |
20 * ti->tile), and the neighbouring tile */ |
21 typedef enum { |
21 enum TileSource { |
22 TS_HOME = 0, |
22 TS_HOME = 0, |
23 TS_NEIGHBOUR = 1, |
23 TS_NEIGHBOUR = 1, |
24 |
24 |
25 TS_END |
25 TS_END |
26 } TileSource; |
26 }; |
27 |
27 |
28 enum { |
28 enum { |
29 NUM_TRACKS_AT_PCP = 6 |
29 NUM_TRACKS_AT_PCP = 6 |
30 }; |
30 }; |
31 |
31 |
337 { SPR_WIRE_DEPOT_NE, 0, 8, 8, 1, 1, ELRAIL_ELEVATION }, //! Wire for NE depot exit |
337 { SPR_WIRE_DEPOT_NE, 0, 8, 8, 1, 1, ELRAIL_ELEVATION }, //! Wire for NE depot exit |
338 { SPR_WIRE_DEPOT_SE, 8, 0, 1, 8, 1, ELRAIL_ELEVATION }, //! Wire for SE depot exit |
338 { SPR_WIRE_DEPOT_SE, 8, 0, 1, 8, 1, ELRAIL_ELEVATION }, //! Wire for SE depot exit |
339 { SPR_WIRE_DEPOT_SW, 0, 8, 8, 1, 1, ELRAIL_ELEVATION }, //! Wire for SW depot exit |
339 { SPR_WIRE_DEPOT_SW, 0, 8, 8, 1, 1, ELRAIL_ELEVATION }, //! Wire for SW depot exit |
340 { SPR_WIRE_DEPOT_NW, 8, 0, 1, 8, 1, ELRAIL_ELEVATION } //! Wire for NW depot exit |
340 { SPR_WIRE_DEPOT_NW, 8, 0, 1, 8, 1, ELRAIL_ELEVATION } //! Wire for NW depot exit |
341 }; |
341 }; |
|
342 |
|
343 static const SortableSpriteStruct CatenarySpriteData_Tunnel[] = { |
|
344 { SPR_WIRE_TUNNEL_NE, 0, 8, 8, 1, 1, ELRAIL_ELEVATION }, //! Wire for NE tunnel exit |
|
345 { SPR_WIRE_TUNNEL_SE, 8, 0, 1, 8, 1, ELRAIL_ELEVATION }, //! Wire for SE tunnel exit |
|
346 { SPR_WIRE_TUNNEL_SW, 0, 8, 8, 1, 1, ELRAIL_ELEVATION }, //! Wire for SW tunnel exit |
|
347 { SPR_WIRE_TUNNEL_NW, 8, 0, 1, 8, 1, ELRAIL_ELEVATION } //! Wire for NW tunnel exit |
|
348 }; |
|
349 |
342 |
350 |
343 /** Refers to a certain element of the catenary. |
351 /** Refers to a certain element of the catenary. |
344 * Identifiers for Wires: |
352 * Identifiers for Wires: |
345 * <ol><li>Direction of the wire</li> |
353 * <ol><li>Direction of the wire</li> |
346 * <li>Slope of the tile for diagonals, placement inside the track for horiz/vertical pieces</li> |
354 * <li>Slope of the tile for diagonals, placement inside the track for horiz/vertical pieces</li> |