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

Runs actions sequentially, one after another. More...

#include <ActionInterval.h>

Inherits ActionInterval.

Public Member Functions

virtual void update (float t) override
 
bool initWithTwoActions (FiniteTimeAction *pActionOne, FiniteTimeAction *pActionTwo)
 initializes the action
 
- 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 Sequencecreate (FiniteTimeAction *action1,...) AX_REQUIRES_NULL_TERMINATION
 Helper constructor to create an array of sequenceable actions.
 
static Sequencecreate (const Vector< FiniteTimeAction * > &arrayOfActions)
 Helper constructor to create an array of sequenceable actions given an array.
 
static SequencecreateWithVariableList (FiniteTimeAction *action1, va_list args)
 Helper constructor to create an array of sequence-able actions.
 
static SequencecreateWithTwoActions (FiniteTimeAction *actionOne, FiniteTimeAction *actionTwo)
 Creates the action.
 

Detailed Description

Runs actions sequentially, one after another.

Member Function Documentation

◆ create() [1/2]

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

static 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
arrayOfActionsAn array of sequenceable actions.
Returns
An autoreleased Sequence object.

◆ createWithVariableList()

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

Helper constructor to create an array of sequence-able actions.

Parameters
action1The first sequenceable action.
argsThe va_list variable.
Returns
An autoreleased Sequence object. @js NA
Note
ATTENTION! Last entry must be a 'nullptr' to correctly terminate the list.

◆ createWithTwoActions()

static Sequence * createWithTwoActions ( FiniteTimeAction * actionOne,
FiniteTimeAction * actionTwo )
static

Creates the action.

Parameters
actionOneThe first sequenceable action.
actionTwoThe second sequenceable action.
Returns
An autoreleased Sequence object. @js NA

◆ update()

virtual void update ( float t)
overridevirtual
Parameters
tIn seconds.

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