OpenTTD Source 20260704-master-gbf70c61fb8
Sprites for the locks

there are 4 kinds of locks, each of them is 3 tiles long. More...

static const SpriteID SPR_LOCK_BASE = SPR_CANALS_BASE + 4
static const SpriteID SPR_LOCK_Y_UP_CENTER_REAR = SPR_CANALS_BASE + 4
static const SpriteID SPR_LOCK_X_DOWN_CENTER_REAR = SPR_CANALS_BASE + 5
static const SpriteID SPR_LOCK_X_UP_CENTER_REAR = SPR_CANALS_BASE + 6
static const SpriteID SPR_LOCK_Y_DOWN_CENTER_REAR = SPR_CANALS_BASE + 7
static const SpriteID SPR_LOCK_Y_UP_CENTER_FRONT = SPR_CANALS_BASE + 8
static const SpriteID SPR_LOCK_X_DOWN_CENTER_FRONT = SPR_CANALS_BASE + 9
static const SpriteID SPR_LOCK_X_UP_CENTER_FRONT = SPR_CANALS_BASE + 10
static const SpriteID SPR_LOCK_Y_DOWN_CENTER_FRONT = SPR_CANALS_BASE + 11
static const SpriteID SPR_LOCK_Y_UP_BOTTOM_REAR = SPR_CANALS_BASE + 12
static const SpriteID SPR_LOCK_X_DOWN_BOTTOM_REAR = SPR_CANALS_BASE + 13
static const SpriteID SPR_LOCK_X_UP_BOTTOM_REAR = SPR_CANALS_BASE + 14
static const SpriteID SPR_LOCK_Y_DOWN_BOTTOM_REAR = SPR_CANALS_BASE + 15
static const SpriteID SPR_LOCK_Y_UP_BOTTOM_FRONT = SPR_CANALS_BASE + 16
static const SpriteID SPR_LOCK_X_DOWN_BOTTOM_FRONT = SPR_CANALS_BASE + 17
static const SpriteID SPR_LOCK_X_UP_BOTTOM_FRONT = SPR_CANALS_BASE + 18
static const SpriteID SPR_LOCK_Y_DOWN_BOTTOM_FRONT = SPR_CANALS_BASE + 19
static const SpriteID SPR_LOCK_Y_UP_TOP_REAR = SPR_CANALS_BASE + 20
static const SpriteID SPR_LOCK_X_DOWN_TOP_REAR = SPR_CANALS_BASE + 21
static const SpriteID SPR_LOCK_X_UP_TOP_REAR = SPR_CANALS_BASE + 22
static const SpriteID SPR_LOCK_Y_DOWN_TOP_REAR = SPR_CANALS_BASE + 23
static const SpriteID SPR_LOCK_Y_UP_TOP_FRONT = SPR_CANALS_BASE + 24
static const SpriteID SPR_LOCK_X_DOWN_TOP_FRONT = SPR_CANALS_BASE + 25
static const SpriteID SPR_LOCK_X_UP_TOP_FRONT = SPR_CANALS_BASE + 26
static const SpriteID SPR_LOCK_Y_DOWN_TOP_FRONT = SPR_CANALS_BASE + 27
static const SpriteID SPR_CANAL_DIKES_BASE = SPR_CANALS_BASE + 52

Detailed Description

there are 4 kinds of locks, each of them is 3 tiles long.

the four kinds are running in the X and Y direction and are "lowering" either in the "+" or the "-" direction. the three tiles are the center tile (where the slope is) and a bottom and a top tile.

Variable Documentation

◆ SPR_CANAL_DIKES_BASE

const SpriteID SPR_CANAL_DIKES_BASE = SPR_CANALS_BASE + 52
static

Water lock sprite.

Definition at line 758 of file sprites.h.

Referenced by DrawWaterEdges().

◆ SPR_LOCK_BASE

const SpriteID SPR_LOCK_BASE = SPR_CANALS_BASE + 4
static

Water lock sprite.

Definition at line 733 of file sprites.h.

Referenced by DrawWaterLock().

◆ SPR_LOCK_X_DOWN_BOTTOM_FRONT

const SpriteID SPR_LOCK_X_DOWN_BOTTOM_FRONT = SPR_CANALS_BASE + 17
static

Water lock sprite.

Definition at line 747 of file sprites.h.

◆ SPR_LOCK_X_DOWN_BOTTOM_REAR

const SpriteID SPR_LOCK_X_DOWN_BOTTOM_REAR = SPR_CANALS_BASE + 13
static

Water lock sprite.

Definition at line 743 of file sprites.h.

◆ SPR_LOCK_X_DOWN_CENTER_FRONT

const SpriteID SPR_LOCK_X_DOWN_CENTER_FRONT = SPR_CANALS_BASE + 9
static

Water lock sprite.

Definition at line 739 of file sprites.h.

◆ SPR_LOCK_X_DOWN_CENTER_REAR

const SpriteID SPR_LOCK_X_DOWN_CENTER_REAR = SPR_CANALS_BASE + 5
static

Water lock sprite.

Definition at line 735 of file sprites.h.

◆ SPR_LOCK_X_DOWN_TOP_FRONT

const SpriteID SPR_LOCK_X_DOWN_TOP_FRONT = SPR_CANALS_BASE + 25
static

Water lock sprite.

Definition at line 755 of file sprites.h.

◆ SPR_LOCK_X_DOWN_TOP_REAR

const SpriteID SPR_LOCK_X_DOWN_TOP_REAR = SPR_CANALS_BASE + 21
static

Water lock sprite.

Definition at line 751 of file sprites.h.

◆ SPR_LOCK_X_UP_BOTTOM_FRONT

const SpriteID SPR_LOCK_X_UP_BOTTOM_FRONT = SPR_CANALS_BASE + 18
static

Water lock sprite.

Definition at line 748 of file sprites.h.

◆ SPR_LOCK_X_UP_BOTTOM_REAR

const SpriteID SPR_LOCK_X_UP_BOTTOM_REAR = SPR_CANALS_BASE + 14
static

Water lock sprite.

Definition at line 744 of file sprites.h.

◆ SPR_LOCK_X_UP_CENTER_FRONT

const SpriteID SPR_LOCK_X_UP_CENTER_FRONT = SPR_CANALS_BASE + 10
static

Water lock sprite.

Definition at line 740 of file sprites.h.

◆ SPR_LOCK_X_UP_CENTER_REAR

const SpriteID SPR_LOCK_X_UP_CENTER_REAR = SPR_CANALS_BASE + 6
static

Water lock sprite.

Definition at line 736 of file sprites.h.

◆ SPR_LOCK_X_UP_TOP_FRONT

const SpriteID SPR_LOCK_X_UP_TOP_FRONT = SPR_CANALS_BASE + 26
static

Water lock sprite.

Definition at line 756 of file sprites.h.

◆ SPR_LOCK_X_UP_TOP_REAR

const SpriteID SPR_LOCK_X_UP_TOP_REAR = SPR_CANALS_BASE + 22
static

Water lock sprite.

Definition at line 752 of file sprites.h.

◆ SPR_LOCK_Y_DOWN_BOTTOM_FRONT

const SpriteID SPR_LOCK_Y_DOWN_BOTTOM_FRONT = SPR_CANALS_BASE + 19
static

Water lock sprite.

Definition at line 749 of file sprites.h.

◆ SPR_LOCK_Y_DOWN_BOTTOM_REAR

const SpriteID SPR_LOCK_Y_DOWN_BOTTOM_REAR = SPR_CANALS_BASE + 15
static

Water lock sprite.

Definition at line 745 of file sprites.h.

◆ SPR_LOCK_Y_DOWN_CENTER_FRONT

const SpriteID SPR_LOCK_Y_DOWN_CENTER_FRONT = SPR_CANALS_BASE + 11
static

Water lock sprite.

Definition at line 741 of file sprites.h.

◆ SPR_LOCK_Y_DOWN_CENTER_REAR

const SpriteID SPR_LOCK_Y_DOWN_CENTER_REAR = SPR_CANALS_BASE + 7
static

Water lock sprite.

Definition at line 737 of file sprites.h.

◆ SPR_LOCK_Y_DOWN_TOP_FRONT

const SpriteID SPR_LOCK_Y_DOWN_TOP_FRONT = SPR_CANALS_BASE + 27
static

Water lock sprite.

Definition at line 757 of file sprites.h.

◆ SPR_LOCK_Y_DOWN_TOP_REAR

const SpriteID SPR_LOCK_Y_DOWN_TOP_REAR = SPR_CANALS_BASE + 23
static

Water lock sprite.

Definition at line 753 of file sprites.h.

◆ SPR_LOCK_Y_UP_BOTTOM_FRONT

const SpriteID SPR_LOCK_Y_UP_BOTTOM_FRONT = SPR_CANALS_BASE + 16
static

Water lock sprite.

Definition at line 746 of file sprites.h.

◆ SPR_LOCK_Y_UP_BOTTOM_REAR

const SpriteID SPR_LOCK_Y_UP_BOTTOM_REAR = SPR_CANALS_BASE + 12
static

Water lock sprite.

Definition at line 742 of file sprites.h.

◆ SPR_LOCK_Y_UP_CENTER_FRONT

const SpriteID SPR_LOCK_Y_UP_CENTER_FRONT = SPR_CANALS_BASE + 8
static

Water lock sprite.

Definition at line 738 of file sprites.h.

◆ SPR_LOCK_Y_UP_CENTER_REAR

const SpriteID SPR_LOCK_Y_UP_CENTER_REAR = SPR_CANALS_BASE + 4
static

Water lock sprite.

Definition at line 734 of file sprites.h.

◆ SPR_LOCK_Y_UP_TOP_FRONT

const SpriteID SPR_LOCK_Y_UP_TOP_FRONT = SPR_CANALS_BASE + 24
static

Water lock sprite.

Definition at line 754 of file sprites.h.

◆ SPR_LOCK_Y_UP_TOP_REAR

const SpriteID SPR_LOCK_Y_UP_TOP_REAR = SPR_CANALS_BASE + 20
static

Water lock sprite.

Definition at line 750 of file sprites.h.