OpenTTD Source 20250205-master-gfd85ab1e2c
StationAnimationBase Struct Reference

Helper class for animation control. More...

Inheritance diagram for StationAnimationBase:
AnimationBase< StationAnimationBase, StationSpec, BaseStation, int, GetAnimStationCallback, TileAnimationFrameAnimationHelper< BaseStation > >

Static Public Attributes

static constexpr CallbackID cb_animation_speed = CBID_STATION_ANIMATION_SPEED
 
static constexpr CallbackID cb_animation_next_frame = CBID_STATION_ANIM_NEXT_FRAME
 
static constexpr StationCallbackMask cbm_animation_speed = StationCallbackMask::AnimationSpeed
 
static constexpr StationCallbackMask cbm_animation_next_frame = StationCallbackMask::AnimationNextFrame
 

Additional Inherited Members

- Static Public Member Functions inherited from AnimationBase< StationAnimationBase, StationSpec, BaseStation, int, GetAnimStationCallback, TileAnimationFrameAnimationHelper< BaseStation > >
static void AnimateTile (const StationSpec *spec, BaseStation *obj, TileIndex tile, bool random_animation, int extra_data=0)
 Animate a single tile.
 
static void ChangeAnimationFrame (CallbackID cb, const StationSpec *spec, BaseStation *obj, TileIndex tile, uint32_t random_bits, uint32_t trigger, int extra_data=0)
 Check a callback to determine what the next animation step is and execute that step.
 

Detailed Description

Helper class for animation control.

Definition at line 865 of file newgrf_station.cpp.

Field Documentation

◆ cb_animation_next_frame

constexpr CallbackID StationAnimationBase::cb_animation_next_frame = CBID_STATION_ANIM_NEXT_FRAME
staticconstexpr

Definition at line 867 of file newgrf_station.cpp.

◆ cb_animation_speed

constexpr CallbackID StationAnimationBase::cb_animation_speed = CBID_STATION_ANIMATION_SPEED
staticconstexpr

Definition at line 866 of file newgrf_station.cpp.

◆ cbm_animation_next_frame

constexpr StationCallbackMask StationAnimationBase::cbm_animation_next_frame = StationCallbackMask::AnimationNextFrame
staticconstexpr

Definition at line 870 of file newgrf_station.cpp.

◆ cbm_animation_speed

constexpr StationCallbackMask StationAnimationBase::cbm_animation_speed = StationCallbackMask::AnimationSpeed
staticconstexpr

Definition at line 869 of file newgrf_station.cpp.


The documentation for this struct was generated from the following file: