OpenTTD Source  20241121-master-g67a0fccfad
animcursors.h File Reference

This file defines all the the animated cursors. More...

Go to the source code of this file.

Macros

#define ANIM_CURSOR_LINE(Sprite, display_time)   { Sprite, display_time },
 Creates two array entries that define one status of the cursor. More...
 
#define ANIM_CURSOR_END()   ANIM_CURSOR_LINE(AnimCursor::LAST, 0)
 This indicates the termination of the cursor list.
 

Variables

static const AnimCursor _demolish_animcursor []
 Animated cursor elements for demolition. More...
 
static const AnimCursor _lower_land_animcursor []
 Animated cursor elements for lower land. More...
 
static const AnimCursor _raise_land_animcursor []
 Animated cursor elements for raise land. More...
 
static const AnimCursor _order_goto_animcursor []
 Animated cursor elements for the goto icon. More...
 
static const AnimCursor _build_signals_animcursor []
 Animated cursor elements for the build signal icon. More...
 
static const AnimCursor *const _animcursors []
 This is an array of pointers to all the animated cursor definitions we have above. More...
 

Detailed Description

This file defines all the the animated cursors.

Animated cursors consist of the number of sprites that are displayed in a round-robin manner. Each sprite also has a time associated that indicates how many ticks the corresponding sprite is to be displayed.

Definition in file animcursors.h.

Macro Definition Documentation

◆ ANIM_CURSOR_LINE

#define ANIM_CURSOR_LINE (   Sprite,
  display_time 
)    { Sprite, display_time },

Creates two array entries that define one status of the cursor.

Parameters
SpriteThe Sprite to be displayed
display_timeThe Number of ticks to display the sprite

Definition at line 23 of file animcursors.h.

Variable Documentation

◆ _animcursors

const AnimCursor* const _animcursors[]
static
Initial value:
= {
}
static const AnimCursor _lower_land_animcursor[]
Animated cursor elements for lower land.
Definition: animcursors.h:44
static const AnimCursor _raise_land_animcursor[]
Animated cursor elements for raise land.
Definition: animcursors.h:54
static const AnimCursor _order_goto_animcursor[]
Animated cursor elements for the goto icon.
Definition: animcursors.h:64
static const AnimCursor _build_signals_animcursor[]
Animated cursor elements for the build signal icon.
Definition: animcursors.h:74
static const AnimCursor _demolish_animcursor[]
Animated cursor elements for demolition.
Definition: animcursors.h:33

This is an array of pointers to all the animated cursor definitions we have above.

This is the only thing that is accessed directly from other files

Definition at line 85 of file animcursors.h.

◆ _build_signals_animcursor

const AnimCursor _build_signals_animcursor[]
static
Initial value:
= {
}

Animated cursor elements for the build signal icon.

Definition at line 74 of file animcursors.h.

◆ _demolish_animcursor

const AnimCursor _demolish_animcursor[]
static
Initial value:
= {
}

Animated cursor elements for demolition.

Definition at line 33 of file animcursors.h.

◆ _lower_land_animcursor

const AnimCursor _lower_land_animcursor[]
static
Initial value:
= {
}

Animated cursor elements for lower land.

Definition at line 44 of file animcursors.h.

◆ _order_goto_animcursor

const AnimCursor _order_goto_animcursor[]
static
Initial value:
= {
}

Animated cursor elements for the goto icon.

Definition at line 64 of file animcursors.h.

◆ _raise_land_animcursor

const AnimCursor _raise_land_animcursor[]
static
Initial value:
= {
}

Animated cursor elements for raise land.

Definition at line 54 of file animcursors.h.