Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
Spawn Class Reference

Spawn a new action immediately. More...

#include <ActionInterval.h>

Inherits ActionInterval.

Public Member Functions

virtual void update (float time) override
 
bool initWithTwoActions (FiniteTimeAction *action1, FiniteTimeAction *action2)
 initializes the Spawn action with the 2 actions to spawn
 
- 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.
 
virtual void step (float dt) override
 
bool initWithDuration (float d)
 initializes the action
 

Static Public Member Functions

static Spawncreate (FiniteTimeAction *action1,...) AX_REQUIRES_NULL_TERMINATION
 Helper constructor to create an array of spawned actions.
 
static SpawncreateWithVariableList (FiniteTimeAction *action1, va_list args)
 Helper constructor to create an array of spawned actions.
 
static Spawncreate (const Vector< FiniteTimeAction * > &arrayOfActions)
 Helper constructor to create an array of spawned actions given an array.
 
static SpawncreateWithTwoActions (FiniteTimeAction *action1, FiniteTimeAction *action2)
 Creates the Spawn action.
 

Detailed Description

Spawn a new action immediately.

Member Function Documentation

◆ create() [1/2]

static 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()

static Spawn * createWithVariableList ( FiniteTimeAction * action1,
va_list args )
static

Helper constructor to create an array of spawned actions.

Parameters
action1The first sequenceable action.
argsThe va_list variable.
Returns
An autoreleased Spawn object. @js NA

◆ create() [2/2]

static Spawn * create ( const Vector< FiniteTimeAction * > & arrayOfActions)
static

Helper constructor to create an array of spawned actions given an array.

Parameters
arrayOfActionsAn array of spawned actions.
Returns
An autoreleased Spawn object.

◆ createWithTwoActions()

static Spawn * createWithTwoActions ( FiniteTimeAction * action1,
FiniteTimeAction * action2 )
static

Creates the Spawn action.

Parameters
action1The first spawned action.
action2The second spawned action.
Returns
An autoreleased Spawn object. @js NA

◆ update()

virtual void update ( float time)
overridevirtual
Parameters
timeIn seconds.

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