OpenTTD
clear_land.h
Go to the documentation of this file.
1 /* $Id: clear_land.h 23188 2011-11-11 18:01:41Z yexo $ */
2 
3 /*
4  * This file is part of OpenTTD.
5  * 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.
6  * 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.
7  * 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/>.
8  */
9 
12 static const SpriteID _landscape_clear_sprites_rough[8] = {
13  SPR_FLAT_ROUGH_LAND,
14  SPR_FLAT_ROUGH_LAND_1,
15  SPR_FLAT_ROUGH_LAND_2,
16  SPR_FLAT_ROUGH_LAND_3,
17  SPR_FLAT_ROUGH_LAND_4,
18  SPR_FLAT_ROUGH_LAND,
19  SPR_FLAT_ROUGH_LAND_1,
20  SPR_FLAT_ROUGH_LAND_2,
21 };
22 
23 static const byte _fence_mod_by_tileh_sw[32] = {
24  0, 2, 4, 0, 0, 2, 4, 0,
25  0, 2, 4, 0, 0, 2, 4, 0,
26  0, 2, 4, 0, 0, 2, 4, 4,
27  0, 2, 4, 2, 0, 2, 4, 0,
28 };
29 
30 static const byte _fence_mod_by_tileh_se[32] = {
31  1, 1, 5, 5, 3, 3, 1, 1,
32  1, 1, 5, 5, 3, 3, 1, 1,
33  1, 1, 5, 5, 3, 3, 1, 5,
34  1, 1, 5, 5, 3, 3, 3, 1,
35 };
36 
37 static const byte _fence_mod_by_tileh_ne[32] = {
38  0, 0, 0, 0, 4, 4, 4, 4,
39  2, 2, 2, 2, 0, 0, 0, 0,
40  0, 0, 0, 0, 4, 4, 4, 4,
41  2, 2, 2, 2, 0, 2, 4, 0,
42 };
43 
44 static const byte _fence_mod_by_tileh_nw[32] = {
45  1, 5, 1, 5, 1, 5, 1, 5,
46  3, 1, 3, 1, 3, 1, 3, 1,
47  1, 5, 1, 5, 1, 5, 1, 5,
48  3, 1, 3, 5, 3, 3, 3, 1,
49 };
50 
51 
52 static const SpriteID _clear_land_fence_sprites[7] = {
53  SPR_HEDGE_BUSHES,
54  SPR_HEDGE_BUSHES_WITH_GATE,
55  SPR_HEDGE_FENCE,
56  SPR_HEDGE_BLOOMBUSH_YELLOW,
57  SPR_HEDGE_BLOOMBUSH_RED,
58  SPR_HEDGE_STONE,
59 };
60 
61 static const SpriteID _clear_land_sprites_farmland[16] = {
62  SPR_FARMLAND_BARE,
63  SPR_FARMLAND_STATE_1,
64  SPR_FARMLAND_STATE_2,
65  SPR_FARMLAND_STATE_3,
66  SPR_FARMLAND_STATE_4,
67  SPR_FARMLAND_STATE_5,
68  SPR_FARMLAND_STATE_6,
69  SPR_FARMLAND_STATE_7,
70  SPR_FARMLAND_HAYPACKS,
71 };
72 
73 static const SpriteID _clear_land_sprites_snow_desert[8] = {
74  SPR_FLAT_1_QUART_SNOW_DESERT_TILE,
75  SPR_FLAT_2_QUART_SNOW_DESERT_TILE,
76  SPR_FLAT_3_QUART_SNOW_DESERT_TILE,
77  SPR_FLAT_SNOW_DESERT_TILE,
78 };