OpenTTD Source 20260721-master-g25ec12c62d
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
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,
30};
31
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,
38};
39
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,
46};
47
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,
54};
55
65
78
86
94
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 constexpr SlopeIndexArray< uint8_t > _fence_mod_by_tileh_se
Sprite offset for sloped fences on the southeast edge of the tile.
Definition clear_land.h:33
static constexpr SlopeIndexArray< uint8_t > _fence_mod_by_tileh_ne
Sprite offset for sloped fences on the northeast edge of the tile.
Definition clear_land.h:41
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 constexpr SlopeIndexArray< uint8_t > _fence_mod_by_tileh_sw
Sprite offset for sloped fences on the southwest edge of the tile.
Definition clear_land.h:25
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 constexpr SlopeIndexArray< uint8_t > _fence_mod_by_tileh_nw
Sprite offset for sloped fences on the northwest edge of the tile.
Definition clear_land.h:49
static const SpriteID _clear_land_sprites_snowy_rocks[4]
Sprites of the flat tile base for each snow density of rocky land.
Definition clear_land.h:96
uint32_t SpriteID
The number of a sprite, without mapping bits and colourtables.
Definition gfx_type.h:17
EnumClassIndexContainer< std::array< T, SLOPE_STEEP|SLOPE_ELEVATED >, Slope > SlopeIndexArray
Array with Slope as index.
Definition slope_type.h:95
This file contains all sprite-related enums and defines.
static const SpriteID SPR_FLAT_2_QUART_SNOW_DESERT_TILE
Definition sprites.h:686
static const SpriteID SPR_FLAT_2_THIRD_GRASS_TILE
Definition sprites.h:675
static const SpriteID SPR_FARMLAND_STATE_5
Definition sprites.h:708
static const SpriteID SPR_FARMLAND_STATE_1
Definition sprites.h:704
static const SpriteID SPR_FARMLAND_STATE_7
Definition sprites.h:710
static const SpriteID SPR_HEDGE_BUSHES
Definition sprites.h:693
static const SpriteID SPR_FLAT_ROUGH_LAND_1
Definition sprites.h:678
static const SpriteID SPR_FLAT_3_QUART_SNOW_DESERT_TILE
Definition sprites.h:687
static const SpriteID SPR_FARMLAND_STATE_6
Definition sprites.h:709
static const SpriteID SPR_FARMLAND_STATE_2
Definition sprites.h:705
static constexpr SpriteID SPR_OVERLAY_ROCKS_3_QUART_SNOW
Rocks with 3/4 snow density.
Definition sprites.h:364
static const SpriteID SPR_HEDGE_BLOOMBUSH_YELLOW
Definition sprites.h:696
static const SpriteID SPR_FARMLAND_HAYPACKS
Definition sprites.h:711
static const SpriteID SPR_FLAT_ROUGH_LAND_4
Definition sprites.h:681
static const SpriteID SPR_FARMLAND_STATE_4
Definition sprites.h:707
static const SpriteID SPR_FLAT_BARE_LAND
Definition sprites.h:673
static const SpriteID SPR_FLAT_1_THIRD_GRASS_TILE
Definition sprites.h:674
static const SpriteID SPR_FLAT_SNOW_DESERT_TILE
Definition sprites.h:688
static const SpriteID SPR_HEDGE_BLOOMBUSH_RED
Definition sprites.h:697
static const SpriteID SPR_FLAT_1_QUART_SNOW_DESERT_TILE
Definition sprites.h:685
static constexpr SpriteID SPR_OVERLAY_ROCKS_FULL_SNOW
Rocks with full snow density.
Definition sprites.h:365
static const SpriteID SPR_FLAT_GRASS_TILE
Definition sprites.h:676
static const SpriteID SPR_HEDGE_STONE
Definition sprites.h:698
static const SpriteID SPR_FLAT_ROUGH_LAND
Definition sprites.h:677
static constexpr SpriteID SPR_OVERLAY_ROCKS_1_QUART_SNOW
Rocks with 1/4 snow.
Definition sprites.h:362
static constexpr SpriteID SPR_OVERLAY_ROCKS_2_QUART_SNOW
Rocks with half snow density.
Definition sprites.h:363
static const SpriteID SPR_HEDGE_BUSHES_WITH_GATE
Definition sprites.h:694
static const SpriteID SPR_HEDGE_FENCE
Definition sprites.h:695
static const SpriteID SPR_FARMLAND_BARE
Definition sprites.h:703
static const SpriteID SPR_FLAT_ROUGH_LAND_3
Definition sprites.h:680
static const SpriteID SPR_FLAT_ROUGH_LAND_2
Definition sprites.h:679
static const SpriteID SPR_FARMLAND_STATE_3
Definition sprites.h:706