OpenTTD Source 20260711-master-g3fb3006dff
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
9
10#include "sprites.h"
11
23
25static const uint8_t _fence_mod_by_tileh_sw[32] = {
26 0, 2, 4, 0, 0, 2, 4, 0,
27 0, 2, 4, 0, 0, 2, 4, 0,
28 0, 2, 4, 0, 0, 2, 4, 4,
29 0, 2, 4, 2, 0, 2, 4, 0,
30};
31
33static const uint8_t _fence_mod_by_tileh_se[32] = {
34 1, 1, 5, 5, 3, 3, 1, 1,
35 1, 1, 5, 5, 3, 3, 1, 1,
36 1, 1, 5, 5, 3, 3, 1, 5,
37 1, 1, 5, 5, 3, 3, 3, 1,
38};
39
41static const uint8_t _fence_mod_by_tileh_ne[32] = {
42 0, 0, 0, 0, 4, 4, 4, 4,
43 2, 2, 2, 2, 0, 0, 0, 0,
44 0, 0, 0, 0, 4, 4, 4, 4,
45 2, 2, 2, 2, 0, 2, 4, 0,
46};
47
49static const uint8_t _fence_mod_by_tileh_nw[32] = {
50 1, 5, 1, 5, 1, 5, 1, 5,
51 3, 1, 3, 1, 3, 1, 3, 1,
52 1, 5, 1, 5, 1, 5, 1, 5,
53 3, 1, 3, 5, 3, 3, 3, 1,
54};
55
65
78
86
static const SpriteID _landscape_clear_sprites_rough[8]
Sprites of the random variants of rough grass sprites, for flat tiles only.
Definition clear_land.h:13
static const uint8_t _fence_mod_by_tileh_nw[32]
Sprite offset for sloped fences on the northwest edge of the tile.
Definition clear_land.h:49
static const uint8_t _fence_mod_by_tileh_se[32]
Sprite offset for sloped fences on the southeast edge of the tile.
Definition clear_land.h:33
static const SpriteID _clear_land_sprites_grass[4]
Sprites of the flat tile base for each density of clear -> grass transition.
Definition clear_land.h:80
static const SpriteID _clear_land_fence_sprites[7]
Sprites of the flat tile base for each type of farm field fence.
Definition clear_land.h:57
static const uint8_t _fence_mod_by_tileh_ne[32]
Sprite offset for sloped fences on the northeast edge of the tile.
Definition clear_land.h:41
static const SpriteID _clear_land_sprites_snow_desert[4]
Sprites of the flat tile base for each density of grass -> snow/desert transition.
Definition clear_land.h:88
static const SpriteID _clear_land_sprites_farmland[16]
Sprites of the flat tile base for each state of farm fields.
Definition clear_land.h:67
static const uint8_t _fence_mod_by_tileh_sw[32]
Sprite offset for sloped fences on the southwest edge of the tile.
Definition clear_land.h:25
uint32_t SpriteID
The number of a sprite, without mapping bits and colourtables.
Definition gfx_type.h:17
This file contains all sprite-related enums and defines.
static const SpriteID SPR_FLAT_2_QUART_SNOW_DESERT_TILE
Definition sprites.h:681
static const SpriteID SPR_FLAT_2_THIRD_GRASS_TILE
Definition sprites.h:670
static const SpriteID SPR_FARMLAND_STATE_5
Definition sprites.h:703
static const SpriteID SPR_FARMLAND_STATE_1
Definition sprites.h:699
static const SpriteID SPR_FARMLAND_STATE_7
Definition sprites.h:705
static const SpriteID SPR_HEDGE_BUSHES
Definition sprites.h:688
static const SpriteID SPR_FLAT_ROUGH_LAND_1
Definition sprites.h:673
static const SpriteID SPR_FLAT_3_QUART_SNOW_DESERT_TILE
Definition sprites.h:682
static const SpriteID SPR_FARMLAND_STATE_6
Definition sprites.h:704
static const SpriteID SPR_FARMLAND_STATE_2
Definition sprites.h:700
static const SpriteID SPR_HEDGE_BLOOMBUSH_YELLOW
Definition sprites.h:691
static const SpriteID SPR_FARMLAND_HAYPACKS
Definition sprites.h:706
static const SpriteID SPR_FLAT_ROUGH_LAND_4
Definition sprites.h:676
static const SpriteID SPR_FARMLAND_STATE_4
Definition sprites.h:702
static const SpriteID SPR_FLAT_BARE_LAND
Definition sprites.h:668
static const SpriteID SPR_FLAT_1_THIRD_GRASS_TILE
Definition sprites.h:669
static const SpriteID SPR_FLAT_SNOW_DESERT_TILE
Definition sprites.h:683
static const SpriteID SPR_HEDGE_BLOOMBUSH_RED
Definition sprites.h:692
static const SpriteID SPR_FLAT_1_QUART_SNOW_DESERT_TILE
Definition sprites.h:680
static const SpriteID SPR_FLAT_GRASS_TILE
Definition sprites.h:671
static const SpriteID SPR_HEDGE_STONE
Definition sprites.h:693
static const SpriteID SPR_FLAT_ROUGH_LAND
Definition sprites.h:672
static const SpriteID SPR_HEDGE_BUSHES_WITH_GATE
Definition sprites.h:689
static const SpriteID SPR_HEDGE_FENCE
Definition sprites.h:690
static const SpriteID SPR_FARMLAND_BARE
Definition sprites.h:698
static const SpriteID SPR_FLAT_ROUGH_LAND_3
Definition sprites.h:675
static const SpriteID SPR_FLAT_ROUGH_LAND_2
Definition sprites.h:674
static const SpriteID SPR_FARMLAND_STATE_3
Definition sprites.h:701