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

SplitRows action. More...

Inherits TiledGrid3DAction.

Public Member Functions

virtual SplitRowsclone () const override
 override Action.
 
local clone ()
 override Action.
 
- 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 SplitRowscreate (float duration, unsigned int rows)
 Create the action with the number of rows 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 rows)
 Initializes the action with the number rows and the duration. More...
 
var initWithDuration ( var duration, var rows)
 Initializes the action with the number rows and the duration. More...
 
local initWithDuration ( local duration, local rows)
 Initializes the action with the number rows 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

SplitRows action.

Split the target node in many rows. Then move out some rows from left, move out the other rows from right.

Member Function Documentation

static SplitRows* create ( float  duration,
unsigned int  rows 
)
static

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

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

var create ( var  duration,
var  rows 
)
static

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

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

local create ( local  duration,
local  rows 
)
static

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

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

bool initWithDuration ( float  duration,
unsigned int  rows 
)
protected

Initializes the action with the number rows and the duration.

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

var initWithDuration ( var  duration,
var  rows 
)
protected

Initializes the action with the number rows and the duration.

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

local initWithDuration ( local  duration,
local  rows 
)
protected

Initializes the action with the number rows and the duration.

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


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