OpenTTD Source 20260711-master-g3fb3006dff
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 const uint8_t _fence_mod_by_tileh_sw [32]
 Sprite offset for sloped fences on the southwest edge of the tile.
static const uint8_t _fence_mod_by_tileh_se [32]
 Sprite offset for sloped fences on the southeast edge of the tile.
static const uint8_t _fence_mod_by_tileh_ne [32]
 Sprite offset for sloped fences on the northeast edge of the tile.
static const uint8_t _fence_mod_by_tileh_nw [32]
 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.

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:688
static const SpriteID SPR_HEDGE_BLOOMBUSH_YELLOW
Definition sprites.h:691
static const SpriteID SPR_HEDGE_BLOOMBUSH_RED
Definition sprites.h:692
static const SpriteID SPR_HEDGE_STONE
Definition sprites.h:693
static const SpriteID SPR_HEDGE_BUSHES_WITH_GATE
Definition sprites.h:689
static const SpriteID SPR_HEDGE_FENCE
Definition sprites.h:690

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: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_FARMLAND_STATE_6
Definition sprites.h:704
static const SpriteID SPR_FARMLAND_STATE_2
Definition sprites.h:700
static const SpriteID SPR_FARMLAND_HAYPACKS
Definition sprites.h:706
static const SpriteID SPR_FARMLAND_STATE_4
Definition sprites.h:702
static const SpriteID SPR_FARMLAND_BARE
Definition sprites.h:698
static const SpriteID SPR_FARMLAND_STATE_3
Definition sprites.h:701

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:670
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_GRASS_TILE
Definition sprites.h:671

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:681
static const SpriteID SPR_FLAT_3_QUART_SNOW_DESERT_TILE
Definition sprites.h:682
static const SpriteID SPR_FLAT_SNOW_DESERT_TILE
Definition sprites.h:683
static const SpriteID SPR_FLAT_1_QUART_SNOW_DESERT_TILE
Definition sprites.h:680

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().

◆ _fence_mod_by_tileh_ne

const uint8_t _fence_mod_by_tileh_ne[32]
static
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, 0,
}

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

const uint8_t _fence_mod_by_tileh_nw[32]
static
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, 1,
}

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

const uint8_t _fence_mod_by_tileh_se[32]
static
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, 1,
}

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

const uint8_t _fence_mod_by_tileh_sw[32]
static
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, 0,
}

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:673
static const SpriteID SPR_FLAT_ROUGH_LAND_4
Definition sprites.h:676
static const SpriteID SPR_FLAT_ROUGH_LAND
Definition sprites.h:672
static const SpriteID SPR_FLAT_ROUGH_LAND_3
Definition sprites.h:675
static const SpriteID SPR_FLAT_ROUGH_LAND_2
Definition sprites.h:674

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().