OpenTTD Source 20260206-master-g4d4e37dbf1
RoadStopAnimationBase Struct Reference

Helper class for animation control. More...

Inheritance diagram for RoadStopAnimationBase:
AnimationBase< RoadStopAnimationBase, RoadStopSpec, BaseStation, int, GetAnimRoadStopCallback, RoadStopAnimationFrameAnimationHelper >

Static Public Attributes

static constexpr CallbackID cb_animation_speed = CBID_STATION_ANIMATION_SPEED
static constexpr CallbackID cb_animation_next_frame = CBID_STATION_ANIMATION_NEXT_FRAME
static constexpr RoadStopCallbackMask cbm_animation_speed = RoadStopCallbackMask::AnimationSpeed
static constexpr RoadStopCallbackMask cbm_animation_next_frame = RoadStopCallbackMask::AnimationNextFrame

Additional Inherited Members

Static Public Member Functions inherited from AnimationBase< RoadStopAnimationBase, RoadStopSpec, BaseStation, int, GetAnimRoadStopCallback, RoadStopAnimationFrameAnimationHelper >
static void AnimateTile (const RoadStopSpec *spec, BaseStation *obj, TileIndex tile, bool random_animation, int extra_data=0)
 Animate a single tile.
static void ChangeAnimationFrame (CallbackID cb, const RoadStopSpec *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 373 of file newgrf_roadstop.cpp.

Field Documentation

◆ cb_animation_next_frame

CallbackID RoadStopAnimationBase::cb_animation_next_frame = CBID_STATION_ANIMATION_NEXT_FRAME
staticconstexpr

Definition at line 375 of file newgrf_roadstop.cpp.

◆ cb_animation_speed

CallbackID RoadStopAnimationBase::cb_animation_speed = CBID_STATION_ANIMATION_SPEED
staticconstexpr

Definition at line 374 of file newgrf_roadstop.cpp.

◆ cbm_animation_next_frame

RoadStopCallbackMask RoadStopAnimationBase::cbm_animation_next_frame = RoadStopCallbackMask::AnimationNextFrame
staticconstexpr

Definition at line 378 of file newgrf_roadstop.cpp.

◆ cbm_animation_speed

RoadStopCallbackMask RoadStopAnimationBase::cbm_animation_speed = RoadStopCallbackMask::AnimationSpeed
staticconstexpr

Definition at line 377 of file newgrf_roadstop.cpp.


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