⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-dff292a
|
Action used to animate any value in range [from,to] over specified time interval. More...
#include <ActionInterval.h>
Inherits ActionInterval.
Public Types | |
| typedef std::function< void(float value)> | ActionFloatCallback |
| Callback function used to report back result. | |
Public Member Functions | |
| void | startWithTarget (Node *target) override |
| Overridden ActionInterval methods. | |
| Public Member Functions inherited from ActionInterval | |
| float | getElapsed () |
| How many seconds had elapsed since the actions started to run. | |
| void | setAmplitudeRate (float amp) |
| Sets the amplitude rate, extension in GridAction. | |
| float | getAmplitudeRate () |
| Gets the amplitude rate, extension in GridAction. | |
| void | step (float dt) override |
| bool | initWithDuration (float d) |
| initializes the action | |
Static Public Member Functions | |
| static ActionFloat * | create (float duration, float from, float to, ActionFloatCallback callback) |
| Creates FloatAction with specified duration, from value, to value and callback to report back results. | |
Action used to animate any value in range [from,to] over specified time interval.
|
static |
Creates FloatAction with specified duration, from value, to value and callback to report back results.
| duration | of the action |
| from | value to start from |
| to | value to be at the end of the action |
| callback | to report back result |