Cocos2d-x  v3.11
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
Spawn Class Reference

Spawn a group of actions. More...

Inherits ActionInterval.

Public Member Functions

virtual Spawnclone () const override
 override ActionInterval.
 
virtual Spawnreverse (void) const override
 override Action.
 
local reverse ()
 override Action.
 
- Public Member Functions inherited from ActionInterval
float getElapsed (void)
 How many seconds had elapsed since the actions started to run. More...
 
var getElapsed ()
 How many seconds had elapsed since the actions started to run. More...
 
local getElapsed ()
 How many seconds had elapsed since the actions started to run. More...
 
void setAmplitudeRate (float amp)
 Sets the amplitude rate, extension in GridAction. More...
 
float getAmplitudeRate (void)
 Gets the ampliture rate, extension in GridAction. More...
 
virtual bool isDone (void) const override
 override Action.
 
local isDone ()
 override Action.
 

Protected Member Functions

bool initWithTwoActions (FiniteTimeAction *action1, FiniteTimeAction *action2)
 initializes the Spawn action with the 2 actions to spawn The first spawned action. More...
 
var initWithTwoActions ( var action1, var action2)
 initializes the Spawn action with the 2 actions to spawn The first spawned action. More...
 
local initWithTwoActions ( local action1, local action2)
 initializes the Spawn action with the 2 actions to spawn The first spawned action. More...
 
- Protected Member Functions inherited from ActionInterval
bool initWithDuration (float d)
 initializes the action with the duration. More...
 
var initWithDuration ( var d)
 initializes the action with the duration. More...
 
local initWithDuration ( local d)
 initializes the action with the duration. More...
 
typedef FiniteTimeAction * M
 Helper constructor to create an array of spawned actions. More...
 
static SpawncreateWithVariableList (FiniteTimeAction *action1, va_list args)
 Helper constructor to create an array of spawned actions. More...
 
static Spawncreate (const Vector< FiniteTimeAction * > &arrayOfActions)
 Helper constructor to create an array of spawned actions given an array. More...
 
static SpawncreateWithTwoActions (FiniteTimeAction *action1, FiniteTimeAction *action2)
 Creates the Spawn action with two spawned actions. More...
 
local createWithTwoActions ( local action1, local action2)
 Creates the Spawn action with two spawned actions. More...
 

Detailed Description

Spawn a group of actions.

Member Typedef Documentation

typedef FiniteTimeAction* M

Helper constructor to create an array of spawned actions.

Constructor functions When this funtion bound to the js or lua, the input params changed. An autoreleased Spawn object.

var M

Helper constructor to create an array of spawned actions.

Constructor functions When this funtion bound to the js or lua, the input params changed. An autoreleased Spawn object.

local M

Helper constructor to create an array of spawned actions.

Constructor functions When this funtion bound to the js or lua, the input params changed. An autoreleased Spawn object.

Member Function Documentation

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

Helper constructor to create an array of spawned actions.

The first inner action. The va_list variable. An autoreleased Spawn object.

local createWithVariableList ( local  action1,
local  args 
)
static

Helper constructor to create an array of spawned actions.

The first inner action. The va_list variable. An autoreleased Spawn object.

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

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

An array of spawned actions. An autoreleased Spawn object.

var create ( var  arrayOfActions)
static

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

An array of spawned actions. An autoreleased Spawn object.

local create ( local  arrayOfActions)
static

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

An array of spawned actions. An autoreleased Spawn object.

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

Creates the Spawn action with two spawned actions.

The first spawned action. THe second spawned action. An autoreleased Spawn object.

local createWithTwoActions ( local  action1,
local  action2 
)
static

Creates the Spawn action with two spawned actions.

The first spawned action. THe second spawned action. An autoreleased Spawn object.

bool initWithTwoActions ( FiniteTimeAction *  action1,
FiniteTimeAction *  action2 
)
protected

initializes the Spawn action with the 2 actions to spawn The first spawned action.

THe second spawned action. Return true if initialized successfully, otherwise return false.

var initWithTwoActions ( var  action1,
var  action2 
)
protected

initializes the Spawn action with the 2 actions to spawn The first spawned action.

THe second spawned action. Return true if initialized successfully, otherwise return false.

local initWithTwoActions ( local  action1,
local  action2 
)
protected

initializes the Spawn action with the 2 actions to spawn The first spawned action.

THe second spawned action. Return true if initialized successfully, otherwise return false.


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