OpenTTD Source 20250911-master-gfe9093df96
water_land.h File Reference

Sprites to use and how to display them for water tiles (depots/locks). More...

Go to the source code of this file.

Macros

#define TILE_SEQ_LINE(dx, dy, dz, sx, sy, sz, img)   { dx, dy, dz, sx, sy, sz, {img, PAL_NONE} },
 Constructor macro for an image without a palette in a DrawTileSeqStruct array.
 
#define TILE_SPRITE_LINE(img, dtss)   { {img, PAL_NONE}, dtss },
 Constructor macro of a DrawTileSpriteSpan structure.
 

Variables

static const DrawTileSeqStruct _shipdepot_display_ne_seq []
 
static const DrawTileSeqStruct _shipdepot_display_sw_seq []
 
static const DrawTileSeqStruct _shipdepot_display_nw_seq []
 
static const DrawTileSeqStruct _shipdepot_display_se_seq []
 
static const DrawTileSpriteSpan _shipdepot_display_data [][DEPOT_PART_END]
 
static constexpr uint8_t LOCK_HEIGHT_LOWER_REAR = 6
 Sub-tile height of rear wall of lower part.
 
static constexpr uint8_t LOCK_HEIGHT_LOWER_FRONT = 10
 Sub-tile height of front wall of lower part.
 
static constexpr uint8_t LOCK_HEIGHT_MIDDLE_REAR = 6
 Sub-tile height of rear wall of middle part.
 
static constexpr uint8_t LOCK_HEIGHT_MIDDLE_FRONT = 10
 Sub-tile height of front wall of middle part.
 
static constexpr uint8_t LOCK_HEIGHT_UPPER_REAR = 6
 Sub-tile height of rear wall of upper part.
 
static constexpr uint8_t LOCK_HEIGHT_UPPER_FRONT = 6
 Sub-tile height of front wall of upper part.
 
static const DrawTileSeqStruct _lock_display_middle_ne_seq []
 
static const DrawTileSeqStruct _lock_display_middle_se_seq []
 
static const DrawTileSeqStruct _lock_display_middle_sw_seq []
 
static const DrawTileSeqStruct _lock_display_middle_nw_seq []
 
static const DrawTileSeqStruct _lock_display_lower_ne_seq []
 
static const DrawTileSeqStruct _lock_display_lower_se_seq []
 
static const DrawTileSeqStruct _lock_display_lower_sw_seq []
 
static const DrawTileSeqStruct _lock_display_lower_nw_seq []
 
static const DrawTileSeqStruct _lock_display_upper_ne_seq []
 
static const DrawTileSeqStruct _lock_display_upper_se_seq []
 
static const DrawTileSeqStruct _lock_display_upper_sw_seq []
 
static const DrawTileSeqStruct _lock_display_upper_nw_seq []
 
static const DrawTileSpriteSpan _lock_display_data [][DIAGDIR_END]
 

Detailed Description

Sprites to use and how to display them for water tiles (depots/locks).

Definition in file water_land.h.

Macro Definition Documentation

◆ TILE_SEQ_LINE

#define TILE_SEQ_LINE (   dx,
  dy,
  dz,
  sx,
  sy,
  sz,
  img 
)    { dx, dy, dz, sx, sy, sz, {img, PAL_NONE} },

Constructor macro for an image without a palette in a DrawTileSeqStruct array.

Parameters
dxOffset in x direction
dyOffset in y direction
dzOffset in z direction
sxSize in x direction
sySize in y direction
szSize in z direction
imgSprite to draw

Definition at line 20 of file water_land.h.

◆ TILE_SPRITE_LINE

#define TILE_SPRITE_LINE (   img,
  dtss 
)    { {img, PAL_NONE}, dtss },

Constructor macro of a DrawTileSpriteSpan structure.

Parameters
imgGround sprite without palette of the tile
dtssSequence child sprites of the tile

Definition at line 27 of file water_land.h.

Variable Documentation

◆ _lock_display_data

const DrawTileSpriteSpan _lock_display_data[][DIAGDIR_END]
static
Initial value:
= {
{
},
{
},
{
},
}

Definition at line 125 of file water_land.h.

◆ _lock_display_lower_ne_seq

const DrawTileSeqStruct _lock_display_lower_ne_seq[]
static
Initial value:
= {
}

Definition at line 85 of file water_land.h.

◆ _lock_display_lower_nw_seq

const DrawTileSeqStruct _lock_display_lower_nw_seq[]
static
Initial value:
= {
}

Definition at line 100 of file water_land.h.

◆ _lock_display_lower_se_seq

const DrawTileSeqStruct _lock_display_lower_se_seq[]
static
Initial value:
= {
}

Definition at line 90 of file water_land.h.

◆ _lock_display_lower_sw_seq

const DrawTileSeqStruct _lock_display_lower_sw_seq[]
static
Initial value:
= {
}

Definition at line 95 of file water_land.h.

◆ _lock_display_middle_ne_seq

const DrawTileSeqStruct _lock_display_middle_ne_seq[]
static
Initial value:
= {
}

Definition at line 65 of file water_land.h.

◆ _lock_display_middle_nw_seq

const DrawTileSeqStruct _lock_display_middle_nw_seq[]
static
Initial value:
= {
}

Definition at line 80 of file water_land.h.

◆ _lock_display_middle_se_seq

const DrawTileSeqStruct _lock_display_middle_se_seq[]
static
Initial value:
= {
}

Definition at line 70 of file water_land.h.

◆ _lock_display_middle_sw_seq

const DrawTileSeqStruct _lock_display_middle_sw_seq[]
static
Initial value:
= {
}

Definition at line 75 of file water_land.h.

◆ _lock_display_upper_ne_seq

const DrawTileSeqStruct _lock_display_upper_ne_seq[]
static
Initial value:
= {
}

Definition at line 105 of file water_land.h.

◆ _lock_display_upper_nw_seq

const DrawTileSeqStruct _lock_display_upper_nw_seq[]
static
Initial value:
= {
}

Definition at line 120 of file water_land.h.

◆ _lock_display_upper_se_seq

const DrawTileSeqStruct _lock_display_upper_se_seq[]
static
Initial value:
= {
}

Definition at line 110 of file water_land.h.

◆ _lock_display_upper_sw_seq

const DrawTileSeqStruct _lock_display_upper_sw_seq[]
static
Initial value:
= {
}

Definition at line 115 of file water_land.h.

◆ _shipdepot_display_data

const DrawTileSpriteSpan _shipdepot_display_data[][DEPOT_PART_END]
static
Initial value:
= {
{
},
{
},
}

Definition at line 47 of file water_land.h.

◆ _shipdepot_display_ne_seq

const DrawTileSeqStruct _shipdepot_display_ne_seq[]
static
Initial value:
= {
}

Definition at line 29 of file water_land.h.

◆ _shipdepot_display_nw_seq

const DrawTileSeqStruct _shipdepot_display_nw_seq[]
static
Initial value:
= {
}

Definition at line 38 of file water_land.h.

◆ _shipdepot_display_se_seq

const DrawTileSeqStruct _shipdepot_display_se_seq[]
static
Initial value:
= {
}

Definition at line 42 of file water_land.h.

◆ _shipdepot_display_sw_seq

const DrawTileSeqStruct _shipdepot_display_sw_seq[]
static
Initial value:
= {
}

Definition at line 33 of file water_land.h.

◆ LOCK_HEIGHT_LOWER_FRONT

constexpr uint8_t LOCK_HEIGHT_LOWER_FRONT = 10
staticconstexpr

Sub-tile height of front wall of lower part.

Definition at line 59 of file water_land.h.

◆ LOCK_HEIGHT_LOWER_REAR

constexpr uint8_t LOCK_HEIGHT_LOWER_REAR = 6
staticconstexpr

Sub-tile height of rear wall of lower part.

Definition at line 58 of file water_land.h.

◆ LOCK_HEIGHT_MIDDLE_FRONT

constexpr uint8_t LOCK_HEIGHT_MIDDLE_FRONT = 10
staticconstexpr

Sub-tile height of front wall of middle part.

Definition at line 61 of file water_land.h.

◆ LOCK_HEIGHT_MIDDLE_REAR

constexpr uint8_t LOCK_HEIGHT_MIDDLE_REAR = 6
staticconstexpr

Sub-tile height of rear wall of middle part.

Definition at line 60 of file water_land.h.

◆ LOCK_HEIGHT_UPPER_FRONT

constexpr uint8_t LOCK_HEIGHT_UPPER_FRONT = 6
staticconstexpr

Sub-tile height of front wall of upper part.

Definition at line 63 of file water_land.h.

◆ LOCK_HEIGHT_UPPER_REAR

constexpr uint8_t LOCK_HEIGHT_UPPER_REAR = 6
staticconstexpr

Sub-tile height of rear wall of upper part.

Definition at line 62 of file water_land.h.