OpenTTD Source: src/table/clear_land.h Source File

OpenTTD Source 14.1

clear_land.h
Go to the documentation of this file.
1 /*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
7
10 static const SpriteID _landscape_clear_sprites_rough[8] = {
11 SPR_FLAT_ROUGH_LAND,
12 SPR_FLAT_ROUGH_LAND_1,
13 SPR_FLAT_ROUGH_LAND_2,
14 SPR_FLAT_ROUGH_LAND_3,
15 SPR_FLAT_ROUGH_LAND_4,
16 SPR_FLAT_ROUGH_LAND,
17 SPR_FLAT_ROUGH_LAND_1,
18 SPR_FLAT_ROUGH_LAND_2,
19 };
20
21 static const byte _fence_mod_by_tileh_sw[32] = {
22 0, 2, 4, 0, 0, 2, 4, 0,
23 0, 2, 4, 0, 0, 2, 4, 0,
24 0, 2, 4, 0, 0, 2, 4, 4,
25 0, 2, 4, 2, 0, 2, 4, 0,
26 };
27
28 static const byte _fence_mod_by_tileh_se[32] = {
29 1, 1, 5, 5, 3, 3, 1, 1,
30 1, 1, 5, 5, 3, 3, 1, 1,
31 1, 1, 5, 5, 3, 3, 1, 5,
32 1, 1, 5, 5, 3, 3, 3, 1,
33 };
34
35 static const byte _fence_mod_by_tileh_ne[32] = {
36 0, 0, 0, 0, 4, 4, 4, 4,
37 2, 2, 2, 2, 0, 0, 0, 0,
38 0, 0, 0, 0, 4, 4, 4, 4,
39 2, 2, 2, 2, 0, 2, 4, 0,
40 };
41
42 static const byte _fence_mod_by_tileh_nw[32] = {
43 1, 5, 1, 5, 1, 5, 1, 5,
44 3, 1, 3, 1, 3, 1, 3, 1,
45 1, 5, 1, 5, 1, 5, 1, 5,
46 3, 1, 3, 5, 3, 3, 3, 1,
47 };
48
49
50 static const SpriteID _clear_land_fence_sprites[7] = {
51 SPR_HEDGE_BUSHES,
52 SPR_HEDGE_BUSHES_WITH_GATE,
53 SPR_HEDGE_FENCE,
54 SPR_HEDGE_BLOOMBUSH_YELLOW,
55 SPR_HEDGE_BLOOMBUSH_RED,
56 SPR_HEDGE_STONE,
57 };
58
59 static const SpriteID _clear_land_sprites_farmland[16] = {
60 SPR_FARMLAND_BARE,
61 SPR_FARMLAND_STATE_1,
62 SPR_FARMLAND_STATE_2,
63 SPR_FARMLAND_STATE_3,
64 SPR_FARMLAND_STATE_4,
65 SPR_FARMLAND_STATE_5,
66 SPR_FARMLAND_STATE_6,
67 SPR_FARMLAND_STATE_7,
68 SPR_FARMLAND_HAYPACKS,
69 };
70
71 static const SpriteID _clear_land_sprites_snow_desert[8] = {
72 SPR_FLAT_1_QUART_SNOW_DESERT_TILE,
73 SPR_FLAT_2_QUART_SNOW_DESERT_TILE,
74 SPR_FLAT_3_QUART_SNOW_DESERT_TILE,
75 SPR_FLAT_SNOW_DESERT_TILE,
76 };
SpriteID
uint32_t SpriteID
The number of a sprite, without mapping bits and colourtables.
Definition: gfx_type.h:17