author | tron |
Sun, 19 Mar 2006 14:43:23 +0000 | |
changeset 3270 | 7531dde127ea |
parent 2571 | ab7413dfe35a |
child 3528 | ca3ce10452d8 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
1542
2ca6d1624e6d
(svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.h
truelight
parents:
1399
diff
changeset
|
3 |
typedef struct DrawTrackSeqStruct { |
2187
2a51f8925eeb
(svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic numbers
celestar
parents:
2186
diff
changeset
|
4 |
SpriteID image; |
1542
2ca6d1624e6d
(svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.h
truelight
parents:
1399
diff
changeset
|
5 |
byte subcoord_x; |
2ca6d1624e6d
(svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.h
truelight
parents:
1399
diff
changeset
|
6 |
byte subcoord_y; |
2ca6d1624e6d
(svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.h
truelight
parents:
1399
diff
changeset
|
7 |
byte width; |
2ca6d1624e6d
(svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.h
truelight
parents:
1399
diff
changeset
|
8 |
byte height; |
2ca6d1624e6d
(svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.h
truelight
parents:
1399
diff
changeset
|
9 |
} DrawTrackSeqStruct; |
2ca6d1624e6d
(svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.h
truelight
parents:
1399
diff
changeset
|
10 |
|
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
11 |
#define TILE_SEQ_BEGIN(x) { x, 0, 0, 0, 0 }, |
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
12 |
#define TILE_SEQ_LINE(a, b, c, d, e) { a, b, c, d, e }, |
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
13 |
#define TILE_SEQ_END() { 0, 0, 0, 0, 0 } |
0 | 14 |
|
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
15 |
static const DrawTrackSeqStruct _track_depot_layout_table_0[] = { |
3270
7531dde127ea
(svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents:
2571
diff
changeset
|
16 |
TILE_SEQ_BEGIN(SPR_FLAT_GRASS_TILE) |
7531dde127ea
(svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents:
2571
diff
changeset
|
17 |
TILE_SEQ_LINE(SPR_RAIL_DEPOT_NE | PALETTE_MODIFIER_COLOR, 2, 13, 13, 1) |
0 | 18 |
TILE_SEQ_END() |
19 |
}; |
|
20 |
||
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
21 |
static const DrawTrackSeqStruct _track_depot_layout_table_1[] = { |
3270
7531dde127ea
(svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents:
2571
diff
changeset
|
22 |
TILE_SEQ_BEGIN(SPR_RAIL_TRACK_Y | PALETTE_MODIFIER_COLOR) |
7531dde127ea
(svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents:
2571
diff
changeset
|
23 |
TILE_SEQ_LINE(SPR_RAIL_DEPOT_SE_1 | PALETTE_MODIFIER_COLOR, 2, 2, 1, 13) |
7531dde127ea
(svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents:
2571
diff
changeset
|
24 |
TILE_SEQ_LINE(SPR_RAIL_DEPOT_SE_2 | PALETTE_MODIFIER_COLOR, 13, 2, 1, 13) |
0 | 25 |
TILE_SEQ_END() |
26 |
}; |
|
27 |
||
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
28 |
static const DrawTrackSeqStruct _track_depot_layout_table_2[] = { |
3270
7531dde127ea
(svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents:
2571
diff
changeset
|
29 |
TILE_SEQ_BEGIN(SPR_RAIL_TRACK_X | PALETTE_MODIFIER_COLOR) |
7531dde127ea
(svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents:
2571
diff
changeset
|
30 |
TILE_SEQ_LINE(SPR_RAIL_DEPOT_SW_1 | PALETTE_MODIFIER_COLOR, 2, 2, 13, 1) |
7531dde127ea
(svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents:
2571
diff
changeset
|
31 |
TILE_SEQ_LINE(SPR_RAIL_DEPOT_SW_2 | PALETTE_MODIFIER_COLOR, 2, 13, 13, 1) |
0 | 32 |
TILE_SEQ_END() |
33 |
}; |
|
34 |
||
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
35 |
static const DrawTrackSeqStruct _track_depot_layout_table_3[] = { |
3270
7531dde127ea
(svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents:
2571
diff
changeset
|
36 |
TILE_SEQ_BEGIN(SPR_FLAT_GRASS_TILE) |
7531dde127ea
(svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents:
2571
diff
changeset
|
37 |
TILE_SEQ_LINE(SPR_RAIL_DEPOT_NW | PALETTE_MODIFIER_COLOR, 13, 2, 1, 13) |
0 | 38 |
TILE_SEQ_END() |
39 |
}; |
|
40 |
||
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
41 |
static const DrawTrackSeqStruct _track_waypoint_table_0[] = { |
3270
7531dde127ea
(svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents:
2571
diff
changeset
|
42 |
TILE_SEQ_BEGIN(SPR_RAIL_TRACK_X | PALETTE_MODIFIER_COLOR) |
2571
ab7413dfe35a
(svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by adding/using some sprite enums
tron
parents:
2548
diff
changeset
|
43 |
TILE_SEQ_LINE(PALETTE_MODIFIER_COLOR | SPR_WAYPOINT_X_1, 0, 0, 16, 5) |
ab7413dfe35a
(svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by adding/using some sprite enums
tron
parents:
2548
diff
changeset
|
44 |
TILE_SEQ_LINE(PALETTE_MODIFIER_COLOR | SPR_WAYPOINT_X_2, 0, 11, 16, 5) |
0 | 45 |
TILE_SEQ_END() |
46 |
}; |
|
47 |
||
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
48 |
static const DrawTrackSeqStruct _track_waypoint_table_1[] = { |
3270
7531dde127ea
(svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents:
2571
diff
changeset
|
49 |
TILE_SEQ_BEGIN(SPR_RAIL_TRACK_Y | PALETTE_MODIFIER_COLOR) |
2571
ab7413dfe35a
(svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by adding/using some sprite enums
tron
parents:
2548
diff
changeset
|
50 |
TILE_SEQ_LINE(PALETTE_MODIFIER_COLOR | SPR_WAYPOINT_Y_1, 0, 0, 5, 16) |
ab7413dfe35a
(svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by adding/using some sprite enums
tron
parents:
2548
diff
changeset
|
51 |
TILE_SEQ_LINE(PALETTE_MODIFIER_COLOR | SPR_WAYPOINT_Y_2, 11, 0, 5, 16) |
0 | 52 |
TILE_SEQ_END() |
53 |
}; |
|
54 |
||
55 |
||
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
56 |
static const DrawTrackSeqStruct* const _track_depot_layout_table[] = { |
0 | 57 |
_track_depot_layout_table_0, |
58 |
_track_depot_layout_table_1, |
|
59 |
_track_depot_layout_table_2, |
|
60 |
_track_depot_layout_table_3, |
|
61 |
||
395
4c990f33dab7
(svn r587) -newgrf: Rename all /Checkpoint/i tokens to 'Waypoint's. The name actually makes some sense and is also compatible with TTDPatch (pasky).
darkvater
parents:
277
diff
changeset
|
62 |
_track_waypoint_table_0, |
4c990f33dab7
(svn r587) -newgrf: Rename all /Checkpoint/i tokens to 'Waypoint's. The name actually makes some sense and is also compatible with TTDPatch (pasky).
darkvater
parents:
277
diff
changeset
|
63 |
_track_waypoint_table_1, |
0 | 64 |
}; |