wavelength 1.0.0
Loading...
Searching...
No Matches
animateaction.h
Go to the documentation of this file.
1#pragma once
2
4#include "rnd/rndanimatable.h"
5#include "script/dataarray.h"
6
15public:
22 ~AnimateAction() override = default;
23
31 explicit AnimateAction(DataArray *pAction);
32
39 void Exec() override;
40
48 bool Poll() override;
49
50private:
51 RndAnimatable *mAnim;
52 float mStart;
53 float mDuration;
54 float mStartTime;
55 int mHasStart;
56};
bool Poll() override
Move the animatable to the frame for the time on the clock.
AnimateAction(DataArray *pAction)
Read the action.
~AnimateAction() override=default
Destroy the object.
void Exec() override
Start playing, or move to the first frame at once when the length is 0.
Reference-counted array of script data nodes.
Definition dataarray.h:20
Mix-in for an object driven by a frame.
Definition rndanimatable.h:16
Something a trigger does when its conditions hold.
Definition triggeraction.h:15