Runs actions sequentially, one after another.
More...
#include <ActionInterval.h>
Inherits ActionInterval.
|
| void | update (float t) override |
|
bool | initWithTwoActions (FiniteTimeAction *pActionOne, FiniteTimeAction *pActionTwo) |
| | initializes the action
|
| 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 Sequence * | create (FiniteTimeAction *action1,...) AX_REQUIRES_NULL_TERMINATION |
| | Helper constructor to create an array of sequenceable actions.
|
| static Sequence * | create (const Vector< FiniteTimeAction * > &arrayOfActions) |
| | Helper constructor to create an array of sequenceable actions given an array.
|
| static Sequence * | createWithVariableList (FiniteTimeAction *action1, va_list args) |
| | Helper constructor to create an array of sequence-able actions.
|
| static Sequence * | createWithTwoActions (FiniteTimeAction *actionOne, FiniteTimeAction *actionTwo) |
| | Creates the action.
|
Runs actions sequentially, one after another.
◆ create() [1/2]
| Sequence * create |
( |
FiniteTimeAction * | action1, |
|
|
| ... ) |
|
static |
Helper constructor to create an array of sequenceable actions.
- Returns
- An autoreleased Sequence object.
- Note
- ATTENTION! Last entry must be a 'nullptr' to correctly terminate the list.
◆ create() [2/2]
| Sequence * create |
( |
const Vector< FiniteTimeAction * > & | arrayOfActions | ) |
|
|
static |
Helper constructor to create an array of sequenceable actions given an array.
When this function bound to the js or lua,the input params changed
in js :var
create(var object1,var object2, ...)
in lua :local
create(local object1,local object2, ...)
static Sequence * create(FiniteTimeAction *action1,...) AX_REQUIRES_NULL_TERMINATION
Helper constructor to create an array of sequenceable actions.
- Parameters
-
| arrayOfActions | An array of sequenceable actions. |
- Returns
- An autoreleased Sequence object.
◆ createWithVariableList()
| Sequence * createWithVariableList |
( |
FiniteTimeAction * | action1, |
|
|
va_list | args ) |
|
static |
Helper constructor to create an array of sequence-able actions.
- Parameters
-
| action1 | The first sequenceable action. |
| args | The va_list variable. |
- Returns
- An autoreleased Sequence object.
- Note
- ATTENTION! Last entry must be a 'nullptr' to correctly terminate the list.
◆ createWithTwoActions()
| Sequence * createWithTwoActions |
( |
FiniteTimeAction * | actionOne, |
|
|
FiniteTimeAction * | actionTwo ) |
|
static |
Creates the action.
- Parameters
-
| actionOne | The first sequenceable action. |
| actionTwo | The second sequenceable action. |
- Returns
- An autoreleased Sequence object.
◆ update()
The documentation for this class was generated from the following file: