Spawn a new action immediately.
More...
#include <ActionInterval.h>
Inherits ActionInterval.
|
| void | update (float time) override |
|
bool | initWithTwoActions (FiniteTimeAction *action1, FiniteTimeAction *action2) |
| | initializes the Spawn action with the 2 actions to spawn
|
| 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 Spawn * | create (FiniteTimeAction *action1,...) AX_REQUIRES_NULL_TERMINATION |
| | Helper constructor to create an array of spawned actions.
|
| static Spawn * | createWithVariableList (FiniteTimeAction *action1, va_list args) |
| | Helper constructor to create an array of spawned actions.
|
| static Spawn * | create (const Vector< FiniteTimeAction * > &arrayOfActions) |
| | Helper constructor to create an array of spawned actions given an array.
|
| static Spawn * | createWithTwoActions (FiniteTimeAction *action1, FiniteTimeAction *action2) |
| | Creates the Spawn action.
|
Spawn a new action immediately.
◆ create() [1/2]
| Spawn * create |
( |
FiniteTimeAction * | action1, |
|
|
| ... ) |
|
static |
Helper constructor to create an array of spawned actions.
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 Spawn * create(FiniteTimeAction *action1,...) AX_REQUIRES_NULL_TERMINATION
Helper constructor to create an array of spawned actions.
- Returns
- An autoreleased Spawn object.
◆ createWithVariableList()
| Spawn * createWithVariableList |
( |
FiniteTimeAction * | action1, |
|
|
va_list | args ) |
|
static |
Helper constructor to create an array of spawned actions.
- Parameters
-
| action1 | The first sequenceable action. |
| args | The va_list variable. |
- Returns
- An autoreleased Spawn object.
◆ create() [2/2]
| Spawn * create |
( |
const Vector< FiniteTimeAction * > & | arrayOfActions | ) |
|
|
static |
Helper constructor to create an array of spawned actions given an array.
- Parameters
-
| arrayOfActions | An array of spawned actions. |
- Returns
- An autoreleased Spawn object.
◆ createWithTwoActions()
| Spawn * createWithTwoActions |
( |
FiniteTimeAction * | action1, |
|
|
FiniteTimeAction * | action2 ) |
|
static |
Creates the Spawn action.
- Parameters
-
| action1 | The first spawned action. |
| action2 | The second spawned action. |
- Returns
- An autoreleased Spawn object.
◆ update()
| void update |
( |
float | time | ) |
|
|
override |
The documentation for this class was generated from the following file: