OpenTTD Source 20260721-master-g25ec12c62d
clear_land.h File Reference

Tables with sprites for clear land and fences. More...

#include "sprites.h"

Go to the source code of this file.

Variables

static const SpriteID _landscape_clear_sprites_rough [8]
 Sprites of the random variants of rough grass sprites, for flat tiles only.
static constexpr SlopeIndexArray< uint8_t > _fence_mod_by_tileh_sw
 Sprite offset for sloped fences on the southwest edge of the tile.
static constexpr SlopeIndexArray< uint8_t > _fence_mod_by_tileh_se
 Sprite offset for sloped fences on the southeast edge of the tile.
static constexpr SlopeIndexArray< uint8_t > _fence_mod_by_tileh_ne
 Sprite offset for sloped fences on the northeast edge of the tile.
static constexpr SlopeIndexArray< uint8_t > _fence_mod_by_tileh_nw
 Sprite offset for sloped fences on the northwest edge of the tile.
static const SpriteID _clear_land_fence_sprites [7]
 Sprites of the flat tile base for each type of farm field fence.
static const SpriteID _clear_land_sprites_farmland [16]
 Sprites of the flat tile base for each state of farm fields.
static const SpriteID _clear_land_sprites_grass [4]
 Sprites of the flat tile base for each density of clear -> grass transition.
static const SpriteID _clear_land_sprites_snow_desert [4]
 Sprites of the flat tile base for each density of grass -> snow/desert transition.
static const SpriteID _clear_land_sprites_snowy_rocks [4]
 Sprites of the flat tile base for each snow density of rocky land.

Detailed Description

Tables with sprites for clear land and fences.

Definition in file clear_land.h.

Variable Documentation

◆ _clear_land_fence_sprites

const SpriteID _clear_land_fence_sprites[7]
static
Initial value:
= {
}
static const SpriteID SPR_HEDGE_BUSHES
Definition sprites.h:693
static const SpriteID SPR_HEDGE_BLOOMBUSH_YELLOW
Definition sprites.h:696
static const SpriteID SPR_HEDGE_BLOOMBUSH_RED
Definition sprites.h:697
static const SpriteID SPR_HEDGE_STONE
Definition sprites.h:698
static const SpriteID SPR_HEDGE_BUSHES_WITH_GATE
Definition sprites.h:694
static const SpriteID SPR_HEDGE_FENCE
Definition sprites.h:695

Sprites of the flat tile base for each type of farm field fence.

Definition at line 57 of file clear_land.h.

Referenced by DrawClearLandFence().

◆ _clear_land_sprites_farmland

const SpriteID _clear_land_sprites_farmland[16]
static
Initial value:
= {
}
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_FARMLAND_STATE_6
Definition sprites.h:709
static const SpriteID SPR_FARMLAND_STATE_2
Definition sprites.h:705
static const SpriteID SPR_FARMLAND_HAYPACKS
Definition sprites.h:711
static const SpriteID SPR_FARMLAND_STATE_4
Definition sprites.h:707
static const SpriteID SPR_FARMLAND_BARE
Definition sprites.h:703
static const SpriteID SPR_FARMLAND_STATE_3
Definition sprites.h:706

Sprites of the flat tile base for each state of farm fields.

Definition at line 67 of file clear_land.h.

Referenced by DrawTile_Clear().

◆ _clear_land_sprites_grass

const SpriteID _clear_land_sprites_grass[4]
static
Initial value:
= {
}
static const SpriteID SPR_FLAT_2_THIRD_GRASS_TILE
Definition sprites.h:675
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_GRASS_TILE
Definition sprites.h:676

Sprites of the flat tile base for each density of clear -> grass transition.

Definition at line 80 of file clear_land.h.

Referenced by DrawClearLandTile().

◆ _clear_land_sprites_snow_desert

const SpriteID _clear_land_sprites_snow_desert[4]
static
Initial value:
= {
}
static const SpriteID SPR_FLAT_2_QUART_SNOW_DESERT_TILE
Definition sprites.h:686
static const SpriteID SPR_FLAT_3_QUART_SNOW_DESERT_TILE
Definition sprites.h:687
static const SpriteID SPR_FLAT_SNOW_DESERT_TILE
Definition sprites.h:688
static const SpriteID SPR_FLAT_1_QUART_SNOW_DESERT_TILE
Definition sprites.h:685

Sprites of the flat tile base for each density of grass -> snow/desert transition.

Definition at line 88 of file clear_land.h.

Referenced by DrawTile_Clear(), and DrawTile_Trees().

◆ _clear_land_sprites_snowy_rocks

const SpriteID _clear_land_sprites_snowy_rocks[4]
static
Initial value:
= {
}
static constexpr SpriteID SPR_OVERLAY_ROCKS_3_QUART_SNOW
Rocks with 3/4 snow density.
Definition sprites.h:364
static constexpr SpriteID SPR_OVERLAY_ROCKS_FULL_SNOW
Rocks with full snow density.
Definition sprites.h:365
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

Sprites of the flat tile base for each snow density of rocky land.

Definition at line 96 of file clear_land.h.

Referenced by DrawTile_Clear().

◆ _fence_mod_by_tileh_ne

SlopeIndexArray<uint8_t> _fence_mod_by_tileh_ne
staticconstexpr
Initial value:
= {
0, 0, 0, 0, 4, 4, 4, 4,
2, 2, 2, 2, 0, 0, 0, 0,
0, 0, 0, 0, 4, 4, 4, 4,
2, 2, 2, 2, 0, 2, 4,
}

Sprite offset for sloped fences on the northeast edge of the tile.

Definition at line 41 of file clear_land.h.

Referenced by DrawClearLandFence().

◆ _fence_mod_by_tileh_nw

SlopeIndexArray<uint8_t> _fence_mod_by_tileh_nw
staticconstexpr
Initial value:
= {
1, 5, 1, 5, 1, 5, 1, 5,
3, 1, 3, 1, 3, 1, 3, 1,
1, 5, 1, 5, 1, 5, 1, 5,
3, 1, 3, 5, 3, 3, 3,
}

Sprite offset for sloped fences on the northwest edge of the tile.

Definition at line 49 of file clear_land.h.

Referenced by DrawClearLandFence().

◆ _fence_mod_by_tileh_se

SlopeIndexArray<uint8_t> _fence_mod_by_tileh_se
staticconstexpr
Initial value:
= {
1, 1, 5, 5, 3, 3, 1, 1,
1, 1, 5, 5, 3, 3, 1, 1,
1, 1, 5, 5, 3, 3, 1, 5,
1, 1, 5, 5, 3, 3, 3,
}

Sprite offset for sloped fences on the southeast edge of the tile.

Definition at line 33 of file clear_land.h.

Referenced by DrawClearLandFence().

◆ _fence_mod_by_tileh_sw

SlopeIndexArray<uint8_t> _fence_mod_by_tileh_sw
staticconstexpr
Initial value:
= {
0, 2, 4, 0, 0, 2, 4, 0,
0, 2, 4, 0, 0, 2, 4, 0,
0, 2, 4, 0, 0, 2, 4, 4,
0, 2, 4, 2, 0, 2, 4,
}

Sprite offset for sloped fences on the southwest edge of the tile.

Definition at line 25 of file clear_land.h.

Referenced by DrawClearLandFence().

◆ _landscape_clear_sprites_rough

const SpriteID _landscape_clear_sprites_rough[8]
static
Initial value:
= {
}
static const SpriteID SPR_FLAT_ROUGH_LAND_1
Definition sprites.h:678
static const SpriteID SPR_FLAT_ROUGH_LAND_4
Definition sprites.h:681
static const SpriteID SPR_FLAT_ROUGH_LAND
Definition sprites.h:677
static const SpriteID SPR_FLAT_ROUGH_LAND_3
Definition sprites.h:680
static const SpriteID SPR_FLAT_ROUGH_LAND_2
Definition sprites.h:679

Sprites of the random variants of rough grass sprites, for flat tiles only.

Definition at line 13 of file clear_land.h.

Referenced by DrawRoughLandTile().