author | Tero Marttila <terom@fixme.fi> |
Fri, 19 Dec 2008 02:25:44 +0200 | |
branch | terom-mini |
changeset 10442 | 7089fa402bfd |
parent 9967 | 207257f3bfb1 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
9111
48ce04029fe4
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents:
8576
diff
changeset
|
3 |
/** @file unmovable_land.h Sprites to use and how to display them for unmovable tiles. */ |
3654
c09872510a61
(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures toguether.
belugas
parents:
2187
diff
changeset
|
4 |
|
8576
7e9bd8e52966
(svn r12157) -Codechange: Remove a structure definition and replace it with another one closely matching
belugas
parents:
8571
diff
changeset
|
5 |
static const DrawTileSeqStruct _draw_tile_transmitterlighthouse_data[] = { |
7e9bd8e52966
(svn r12157) -Codechange: Remove a structure definition and replace it with another one closely matching
belugas
parents:
8571
diff
changeset
|
6 |
{ 7, 7, 0, 2, 2, 70, {SPR_UNMOVABLE_TRANSMITTER, PAL_NONE}}, |
7e9bd8e52966
(svn r12157) -Codechange: Remove a structure definition and replace it with another one closely matching
belugas
parents:
8571
diff
changeset
|
7 |
{ 4, 4, 0, 7, 7, 61, {SPR_UNMOVABLE_LIGHTHOUSE, PAL_NONE}}, |
0 | 8 |
}; |
9 |
||
8570
f50de4804ff1
(svn r12148) -Codechange: Merge 'image' and 'pal' of DrawTileSeqStruct into one PalSpriteID
frosch
parents:
8569
diff
changeset
|
10 |
#define TILE_SEQ_LINE(sz, img) { 0, 0, 0, 16, 16, sz, {img, PAL_NONE} }, |
f50de4804ff1
(svn r12148) -Codechange: Merge 'image' and 'pal' of DrawTileSeqStruct into one PalSpriteID
frosch
parents:
8569
diff
changeset
|
11 |
#define TILE_SEQ_END() { (byte)0x80, 0, 0, 0, 0, 0, {0, 0} } |
0 | 12 |
|
5732 | 13 |
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
|
14 |
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
|
15 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
16 |
|
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
17 |
static const DrawTileSeqStruct _unmovable_display_datas_8[] = { |
9967
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
18 |
TILE_SEQ_LINE(20, SPR_MEDIUMHQ_NORTH_WALL | (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
|
19 |
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
|
20 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
21 |
|
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 |
static const DrawTileSeqStruct _unmovable_display_datas_9[] = { |
9967
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
23 |
TILE_SEQ_LINE(20, SPR_MEDIUMHQ_EAST_WALL | (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
|
24 |
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
|
25 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
26 |
|
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 |
static const DrawTileSeqStruct _unmovable_display_datas_10[] = { |
9967
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
28 |
TILE_SEQ_LINE(20, SPR_MEDIUMHQ_WEST_WALL | (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
|
29 |
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
|
30 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
31 |
|
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 |
static const DrawTileSeqStruct _unmovable_display_datas_12[] = { |
9967
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
33 |
TILE_SEQ_LINE(50, SPR_LARGEHQ_NORTH_BUILD | (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
|
34 |
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
|
35 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
36 |
|
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 |
static const DrawTileSeqStruct _unmovable_display_datas_13[] = { |
9967
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
38 |
TILE_SEQ_LINE(50, SPR_LARGEHQ_EAST_BUILD | (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
|
39 |
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
|
40 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
41 |
|
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 |
static const DrawTileSeqStruct _unmovable_display_datas_14[] = { |
9967
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
43 |
TILE_SEQ_LINE(50, SPR_LARGEHQ_WEST_BUILD | (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
|
44 |
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
|
45 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
46 |
|
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 |
static const DrawTileSeqStruct _unmovable_display_datas_16[] = { |
9967
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
48 |
TILE_SEQ_LINE(60, SPR_HUGEHQ_NORTH_BUILD | (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
|
49 |
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
|
50 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
51 |
|
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 |
static const DrawTileSeqStruct _unmovable_display_datas_17[] = { |
9967
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
53 |
TILE_SEQ_LINE(60, SPR_HUGEHQ_EAST_BUILD | (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
|
54 |
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
|
55 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
56 |
|
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 |
static const DrawTileSeqStruct _unmovable_display_datas_18[] = { |
9967
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
58 |
TILE_SEQ_LINE(60, SPR_HUGEHQ_WEST_BUILD | (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
|
59 |
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
|
60 |
}; |
809833b4068d
(svn r576) -newgrf: Cleanup horrible table/(station|unmovable)_land.h DrawTileSeqStruct hacks needed for custom station supports (pasky)
darkvater
parents:
0
diff
changeset
|
61 |
|
8568
027aec135dc8
(svn r12146) -Codechange: Use macros to build DrawTileSeqStruct-tables in station_land and unmovable_land.
frosch
parents:
6248
diff
changeset
|
62 |
#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
|
63 |
#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
|
64 |
|
8571
53c94d717e99
(svn r12149) -Codechange: Merge 'ground_sprite' and 'ground_pal' of DrawTileSprites into one PalSpriteID
frosch
parents:
8570
diff
changeset
|
65 |
#define TILE_SPRITE_LINE(img, dtss) { {img | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE}, dtss }, |
8569
b2dbac0c0cf5
(svn r12147) -Codechange: Use macros to build DrawTileSprites-tables in station_land and unmovable_land.
frosch
parents:
8568
diff
changeset
|
66 |
|
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 |
static const DrawTileSprites _unmovable_display_datas[] = { |
9967
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
68 |
TILE_SPRITE_LINE(SPR_TINYHQ_NORTH, _unmovable_display_nothing) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
69 |
TILE_SPRITE_LINE(SPR_TINYHQ_EAST, _unmovable_display_nothing) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
70 |
TILE_SPRITE_LINE(SPR_TINYHQ_WEST, _unmovable_display_nothing) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
71 |
TILE_SPRITE_LINE(SPR_TINYHQ_SOUTH, _unmovable_display_nothing) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
72 |
|
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
73 |
TILE_SPRITE_LINE(SPR_SMALLHQ_NORTH, _unmovable_display_nothing) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
74 |
TILE_SPRITE_LINE(SPR_SMALLHQ_EAST, _unmovable_display_nothing) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
75 |
TILE_SPRITE_LINE(SPR_SMALLHQ_WEST, _unmovable_display_nothing) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
76 |
TILE_SPRITE_LINE(SPR_SMALLHQ_SOUTH, _unmovable_display_nothing) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
77 |
|
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
78 |
TILE_SPRITE_LINE(SPR_MEDIUMHQ_NORTH, _unmovable_display_datas_8) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
79 |
TILE_SPRITE_LINE(SPR_MEDIUMHQ_EAST, _unmovable_display_datas_9) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
80 |
TILE_SPRITE_LINE(SPR_MEDIUMHQ_WEST, _unmovable_display_datas_10) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
81 |
TILE_SPRITE_LINE(SPR_MEDIUMHQ_SOUTH, _unmovable_display_nothing) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
82 |
|
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
83 |
TILE_SPRITE_LINE(SPR_LARGEHQ_NORTH_GROUND, _unmovable_display_datas_12) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
84 |
TILE_SPRITE_LINE(SPR_LARGEHQ_EAST_GROUND, _unmovable_display_datas_13) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
85 |
TILE_SPRITE_LINE(SPR_LARGEHQ_WEST_GROUND, _unmovable_display_datas_14) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
86 |
TILE_SPRITE_LINE(SPR_LARGEHQ_SOUTH, _unmovable_display_nothing) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
87 |
|
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
88 |
TILE_SPRITE_LINE(SPR_HUGEHQ_NORTH_GROUND, _unmovable_display_datas_16) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
89 |
TILE_SPRITE_LINE(SPR_HUGEHQ_EAST_GROUND, _unmovable_display_datas_17) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
90 |
TILE_SPRITE_LINE(SPR_HUGEHQ_WEST_GROUND, _unmovable_display_datas_18) |
207257f3bfb1
(svn r14123) -Codechange: a few magical number to sprite name conversions
belugas
parents:
9111
diff
changeset
|
91 |
TILE_SPRITE_LINE(SPR_HUGEHQ_SOUTH, _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
|
92 |
}; |
8569
b2dbac0c0cf5
(svn r12147) -Codechange: Use macros to build DrawTileSprites-tables in station_land and unmovable_land.
frosch
parents:
8568
diff
changeset
|
93 |
|
b2dbac0c0cf5
(svn r12147) -Codechange: Use macros to build DrawTileSprites-tables in station_land and unmovable_land.
frosch
parents:
8568
diff
changeset
|
94 |
#undef TILE_SPRITE_LINE |