Loading [MathJax]/extensions/tex2jax.js

⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.

Axmol Engine 3.0.0-dff292a
Loading...
Searching...
No Matches
Spawn Class Reference

Spawn a new action immediately. More...

#include <ActionInterval.h>

Inherits ActionInterval.

Public Member Functions

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.
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]

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
action1The first sequenceable action.
argsThe 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
arrayOfActionsAn array of spawned actions.
Returns
An autoreleased Spawn object.

◆ createWithTwoActions()

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.

◆ update()

void update ( float time)
override
Parameters
timeIn seconds.

The documentation for this class was generated from the following file:
  • ActionInterval.h