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

SplitCols action. More...

Inherits TiledGrid3DAction.

Public Member Functions

virtual SplitColsclone () const override
 override Action.
 
local clone ()
 override Action.
 
virtual void update (float time) override
- Public Member Functions inherited from TiledGrid3DAction
Quad3 getTile (const Vec2 &position) const
 Get the tile that belongs to a certain position of the grid. More...
 
Quad3 tile (const Vec2 &position)
Quad3 getOriginalTile (const Vec2 &position) const
 Get the non-transformed tile that belongs to a certain position of the grid. More...
 
Quad3 originalTile (const Vec2 &position)
void setTile (const Vec2 &position, const Quad3 &coords)
 Set a new tile to a certain position of the grid. More...
 
var setTile ( var position, var coords)
 Set a new tile to a certain position of the grid. More...
 
virtual GridBasegetGrid () override
 returns the grid
 
var getGrid ()
 returns the grid
 
local getGrid ()
 returns the grid
 
- Public Member Functions inherited from GridAction
virtual GridActionreverse () const override
 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.
 

Static Public Member Functions

static SplitColscreate (float duration, unsigned int cols)
 Create the action with the number of columns and the duration. More...
 
- Static Public Member Functions inherited from TiledGrid3DAction
static TiledGrid3DActioncreate (float duration, const Size &gridSize)
 Create the action with size and duration. More...
 

Protected Member Functions

bool initWithDuration (float duration, unsigned int cols)
 Initializes the action with the number columns and the duration. More...
 
var initWithDuration ( var duration, var cols)
 Initializes the action with the number columns and the duration. More...
 
local initWithDuration ( local duration, local cols)
 Initializes the action with the number columns and the duration. More...
 
- Protected Member Functions inherited from GridAction
bool initWithDuration (float duration, const Size &gridSize)
 Initializes the action with size and duration. More...
 
var initWithDuration ( var duration, var gridSize)
 Initializes the action with size and duration. More...
 
local initWithDuration ( local duration, local gridSize)
 Initializes the action with size and duration. 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...
 

Detailed Description

SplitCols action.

Split the target node in many columns. Then move out some columns from top, move out the other columns from bottom.

Member Function Documentation

static SplitCols* create ( float  duration,
unsigned int  cols 
)
static

Create the action with the number of columns and the duration.

Specify the duration of the SplitCols action. It's a value in seconds. Specify the columns count should be splited. If the creation success, return a pointer of SplitCols action; otherwise, return nil.

var create ( var  duration,
var  cols 
)
static

Create the action with the number of columns and the duration.

Specify the duration of the SplitCols action. It's a value in seconds. Specify the columns count should be splited. If the creation success, return a pointer of SplitCols action; otherwise, return nil.

local create ( local  duration,
local  cols 
)
static

Create the action with the number of columns and the duration.

Specify the duration of the SplitCols action. It's a value in seconds. Specify the columns count should be splited. If the creation success, return a pointer of SplitCols action; otherwise, return nil.

virtual void update ( float  time)
overridevirtual
Parameters
timein seconds
var update ( var  time)
overridevirtual
Parameters
timein seconds
local update ( local  time)
overridevirtual
Parameters
timein seconds
bool initWithDuration ( float  duration,
unsigned int  cols 
)
protected

Initializes the action with the number columns and the duration.

Specify the duration of the SplitCols action. It's a value in seconds. Specify the columns count should be splited. If the creation success, return true; otherwise, return false.

var initWithDuration ( var  duration,
var  cols 
)
protected

Initializes the action with the number columns and the duration.

Specify the duration of the SplitCols action. It's a value in seconds. Specify the columns count should be splited. If the creation success, return true; otherwise, return false.

local initWithDuration ( local  duration,
local  cols 
)
protected

Initializes the action with the number columns and the duration.

Specify the duration of the SplitCols action. It's a value in seconds. Specify the columns count should be splited. If the creation success, return true; otherwise, return false.


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