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

OpenTTD Source 15.0-RC2

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 <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
10#include "sprites.h"
11
12static 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
23static const uint8_t _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
30static const uint8_t _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
37static const uint8_t _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
44static const uint8_t _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
52static 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
61static 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
73static 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};
SpriteID
uint32_t SpriteID
The number of a sprite, without mapping bits and colourtables.
Definition gfx_type.h:17
sprites.h
This file contains all sprite-related enums and defines.