OpenTTD Source 20241224-master-gf74b0cf984
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_SEQ_END()   { (int8_t)0x80, 0, 0, 0, 0, 0, {0, 0} }
 Constructor macro for a terminating DrawTileSeqStruct entry in an array.
 
#define TILE_SPRITE_LINE(img, dtss)   { {img, PAL_NONE}, dtss },
 Constructor macro of a DrawTileSprites structure.
 

Variables

static const DrawTileSeqStruct _shipdepot_display_seq_1 []
 
static const DrawTileSeqStruct _shipdepot_display_seq_2 []
 
static const DrawTileSeqStruct _shipdepot_display_seq_3 []
 
static const DrawTileSeqStruct _shipdepot_display_seq_4 []
 
static const DrawTileSprites _shipdepot_display_data [][DEPOT_PART_END]
 
static const DrawTileSeqStruct _lock_display_seq_0 []
 
static const DrawTileSeqStruct _lock_display_seq_1 []
 
static const DrawTileSeqStruct _lock_display_seq_2 []
 
static const DrawTileSeqStruct _lock_display_seq_3 []
 
static const DrawTileSeqStruct _lock_display_seq_0b []
 
static const DrawTileSeqStruct _lock_display_seq_1b []
 
static const DrawTileSeqStruct _lock_display_seq_2b []
 
static const DrawTileSeqStruct _lock_display_seq_3b []
 
static const DrawTileSeqStruct _lock_display_seq_0t []
 
static const DrawTileSeqStruct _lock_display_seq_1t []
 
static const DrawTileSeqStruct _lock_display_seq_2t []
 
static const DrawTileSeqStruct _lock_display_seq_3t []
 
static const DrawTileSprites _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_END

#define TILE_SEQ_END ( )    { (int8_t)0x80, 0, 0, 0, 0, 0, {0, 0} }

Constructor macro for a terminating DrawTileSeqStruct entry in an array.

Definition at line 23 of file water_land.h.

◆ 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 DrawTileSprites structure.

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

Definition at line 30 of file water_land.h.

Variable Documentation

◆ _lock_display_data

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

Definition at line 137 of file water_land.h.

◆ _lock_display_seq_0

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

Definition at line 65 of file water_land.h.

◆ _lock_display_seq_0b

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

Definition at line 89 of file water_land.h.

◆ _lock_display_seq_0t

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

Definition at line 113 of file water_land.h.

◆ _lock_display_seq_1

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

Definition at line 71 of file water_land.h.

◆ _lock_display_seq_1b

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

Definition at line 95 of file water_land.h.

◆ _lock_display_seq_1t

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

Definition at line 119 of file water_land.h.

◆ _lock_display_seq_2

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

Definition at line 77 of file water_land.h.

◆ _lock_display_seq_2b

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

Definition at line 101 of file water_land.h.

◆ _lock_display_seq_2t

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

Definition at line 125 of file water_land.h.

◆ _lock_display_seq_3

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

Definition at line 83 of file water_land.h.

◆ _lock_display_seq_3b

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

Definition at line 107 of file water_land.h.

◆ _lock_display_seq_3t

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

Definition at line 131 of file water_land.h.

◆ _shipdepot_display_data

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

Definition at line 54 of file water_land.h.

◆ _shipdepot_display_seq_1

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

Definition at line 32 of file water_land.h.

◆ _shipdepot_display_seq_2

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

Definition at line 37 of file water_land.h.

◆ _shipdepot_display_seq_3

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

Definition at line 43 of file water_land.h.

◆ _shipdepot_display_seq_4

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

Definition at line 48 of file water_land.h.