OpenTTD Source 20241224-master-gf74b0cf984
ObjectAnimationBase Struct Reference

Helper class for animation control. More...

Inheritance diagram for ObjectAnimationBase:
AnimationBase< ObjectAnimationBase, ObjectSpec, Object, int, StubGetObjectCallback, TileAnimationFrameAnimationHelper< Object > >

Static Public Attributes

static const CallbackID cb_animation_speed = CBID_OBJECT_ANIMATION_SPEED
 
static const CallbackID cb_animation_next_frame = CBID_OBJECT_ANIMATION_NEXT_FRAME
 
static const ObjectCallbackMask cbm_animation_speed = CBM_OBJ_ANIMATION_SPEED
 
static const ObjectCallbackMask cbm_animation_next_frame = CBM_OBJ_ANIMATION_NEXT_FRAME
 

Additional Inherited Members

- Static Public Member Functions inherited from AnimationBase< ObjectAnimationBase, ObjectSpec, Object, int, StubGetObjectCallback, TileAnimationFrameAnimationHelper< Object > >
static void AnimateTile (const ObjectSpec *spec, Object *obj, TileIndex tile, bool random_animation, int extra_data=0)
 Animate a single tile.
 
static void ChangeAnimationFrame (CallbackID cb, const ObjectSpec *spec, Object *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 530 of file newgrf_object.cpp.

Field Documentation

◆ cb_animation_next_frame

const CallbackID ObjectAnimationBase::cb_animation_next_frame = CBID_OBJECT_ANIMATION_NEXT_FRAME
static

Definition at line 532 of file newgrf_object.cpp.

◆ cb_animation_speed

const CallbackID ObjectAnimationBase::cb_animation_speed = CBID_OBJECT_ANIMATION_SPEED
static

Definition at line 531 of file newgrf_object.cpp.

◆ cbm_animation_next_frame

const ObjectCallbackMask ObjectAnimationBase::cbm_animation_next_frame = CBM_OBJ_ANIMATION_NEXT_FRAME
static

Definition at line 535 of file newgrf_object.cpp.

◆ cbm_animation_speed

const ObjectCallbackMask ObjectAnimationBase::cbm_animation_speed = CBM_OBJ_ANIMATION_SPEED
static

Definition at line 534 of file newgrf_object.cpp.


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