author | frosch |
Fri, 15 Feb 2008 18:00:30 +0000 | |
changeset 8568 | 027aec135dc8 |
parent 6248 | e4a2ed7e5613 |
child 8569 | b2dbac0c0cf5 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
6248
e4a2ed7e5613
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
5732
diff
changeset
|
3 |
struct DrawTileUnmovableStruct { |
3654
c09872510a61
(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures toguether.
belugas
parents:
2187
diff
changeset
|
4 |
uint16 image; |
c09872510a61
(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures toguether.
belugas
parents:
2187
diff
changeset
|
5 |
byte subcoord_x; |
c09872510a61
(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures toguether.
belugas
parents:
2187
diff
changeset
|
6 |
byte subcoord_y; |
c09872510a61
(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures toguether.
belugas
parents:
2187
diff
changeset
|
7 |
byte width; |
c09872510a61
(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures toguether.
belugas
parents:
2187
diff
changeset
|
8 |
byte height; |
c09872510a61
(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures toguether.
belugas
parents:
2187
diff
changeset
|
9 |
byte z_size; |
c09872510a61
(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures toguether.
belugas
parents:
2187
diff
changeset
|
10 |
byte unused; |
6248
e4a2ed7e5613
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
rubidium
parents:
5732
diff
changeset
|
11 |
}; |
3654
c09872510a61
(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures toguether.
belugas
parents:
2187
diff
changeset
|
12 |
|
0 | 13 |
static const DrawTileUnmovableStruct _draw_tile_unmovable_data[] = { |
4344
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
3654
diff
changeset
|
14 |
{0xA29, 7, 7, 2, 2, 70, 0}, |
7e123fec5b0b
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium
parents:
3654
diff
changeset
|
15 |
{0xA2A, 4, 4, 7, 7, 61, 0}, |
0 | 16 |
}; |
17 |
||
8568
027aec135dc8
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
frosch
parents:
6248
diff
changeset
|
18 |
#define TILE_SEQ_LINE(sz, img) { 0, 0, 0, 16, 16, sz, img, PAL_NONE }, |
027aec135dc8
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
frosch
parents:
6248
diff
changeset
|
19 |
#define TILE_SEQ_END() { (byte)0x80, 0, 0, 0, 0, 0, 0, 0 } |
0 | 20 |
|
5732 | 21 |
static const DrawTileSeqStruct _unmovable_display_nothing[] = { |
384
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
22 |
TILE_SEQ_END() |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
23 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
24 |
|
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
25 |
static const DrawTileSeqStruct _unmovable_display_datas_8[] = { |
8568
027aec135dc8
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
frosch
parents:
6248
diff
changeset
|
26 |
TILE_SEQ_LINE(20, 0xA34 | (1 << PALETTE_MODIFIER_COLOR)) |
384
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
27 |
TILE_SEQ_END() |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
28 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
29 |
|
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
30 |
static const DrawTileSeqStruct _unmovable_display_datas_9[] = { |
8568
027aec135dc8
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
frosch
parents:
6248
diff
changeset
|
31 |
TILE_SEQ_LINE(20, 0xA36 | (1 << PALETTE_MODIFIER_COLOR)) |
384
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
32 |
TILE_SEQ_END() |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
33 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
34 |
|
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
35 |
static const DrawTileSeqStruct _unmovable_display_datas_10[] = { |
8568
027aec135dc8
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
frosch
parents:
6248
diff
changeset
|
36 |
TILE_SEQ_LINE(20, 0xA38 | (1 << PALETTE_MODIFIER_COLOR)) |
384
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
37 |
TILE_SEQ_END() |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
38 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
39 |
|
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
40 |
static const DrawTileSeqStruct _unmovable_display_datas_12[] = { |
8568
027aec135dc8
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
frosch
parents:
6248
diff
changeset
|
41 |
TILE_SEQ_LINE(50, 0xA3B | (1 << PALETTE_MODIFIER_COLOR)) |
384
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
42 |
TILE_SEQ_END() |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
43 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
44 |
|
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
45 |
static const DrawTileSeqStruct _unmovable_display_datas_13[] = { |
8568
027aec135dc8
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
frosch
parents:
6248
diff
changeset
|
46 |
TILE_SEQ_LINE(50, 0xA3D | (1 << PALETTE_MODIFIER_COLOR)) |
384
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
47 |
TILE_SEQ_END() |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
48 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
49 |
|
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
50 |
static const DrawTileSeqStruct _unmovable_display_datas_14[] = { |
8568
027aec135dc8
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
frosch
parents:
6248
diff
changeset
|
51 |
TILE_SEQ_LINE(50, 0xA3F | (1 << PALETTE_MODIFIER_COLOR)) |
384
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
52 |
TILE_SEQ_END() |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
53 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
54 |
|
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
55 |
static const DrawTileSeqStruct _unmovable_display_datas_16[] = { |
8568
027aec135dc8
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
frosch
parents:
6248
diff
changeset
|
56 |
TILE_SEQ_LINE(60, 0xA42 | (1 << PALETTE_MODIFIER_COLOR)) |
384
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
57 |
TILE_SEQ_END() |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
58 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
59 |
|
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
60 |
static const DrawTileSeqStruct _unmovable_display_datas_17[] = { |
8568
027aec135dc8
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
frosch
parents:
6248
diff
changeset
|
61 |
TILE_SEQ_LINE(60, 0xA44 | (1 << PALETTE_MODIFIER_COLOR)) |
384
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
62 |
TILE_SEQ_END() |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
63 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
64 |
|
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
65 |
static const DrawTileSeqStruct _unmovable_display_datas_18[] = { |
8568
027aec135dc8
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
frosch
parents:
6248
diff
changeset
|
66 |
TILE_SEQ_LINE(60, 0xA46 | (1 << PALETTE_MODIFIER_COLOR)) |
384
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
67 |
TILE_SEQ_END() |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
68 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
69 |
|
8568
027aec135dc8
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
frosch
parents:
6248
diff
changeset
|
70 |
#undef TILE_SEQ_LINE |
027aec135dc8
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
frosch
parents:
6248
diff
changeset
|
71 |
#undef TILE_SEQ_END |
027aec135dc8
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
frosch
parents:
6248
diff
changeset
|
72 |
|
384
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
73 |
static const DrawTileSprites _unmovable_display_datas[] = { |
5732 | 74 |
{ 0xA2B | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_nothing }, |
75 |
{ 0xA2C | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_nothing }, |
|
76 |
{ 0xA2D | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_nothing }, |
|
77 |
{ 0xA2E | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_nothing }, |
|
78 |
{ 0xA2F | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_nothing }, |
|
79 |
{ 0xA30 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_nothing }, |
|
80 |
{ 0xA31 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_nothing }, |
|
81 |
{ 0xA32 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_nothing }, |
|
5669
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5587
diff
changeset
|
82 |
{ 0xA33 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_datas_8 }, |
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5587
diff
changeset
|
83 |
{ 0xA35 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_datas_9 }, |
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5587
diff
changeset
|
84 |
{ 0xA37 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_datas_10 }, |
5732 | 85 |
{ 0xA39 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_nothing }, |
5669
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5587
diff
changeset
|
86 |
{ 0xA3A | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_datas_12 }, |
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5587
diff
changeset
|
87 |
{ 0xA3C | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_datas_13 }, |
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5587
diff
changeset
|
88 |
{ 0xA3E | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_datas_14 }, |
5732 | 89 |
{ 0xA40 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_nothing }, |
5669
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5587
diff
changeset
|
90 |
{ 0xA41 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_datas_16 }, |
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5587
diff
changeset
|
91 |
{ 0xA43 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_datas_17 }, |
631901f52707
(svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents:
5587
diff
changeset
|
92 |
{ 0xA45 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_datas_18 }, |
5732 | 93 |
{ 0xA47 | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE, _unmovable_display_nothing }, |
384
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
94 |
}; |