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

Base class for Grid actions. More...

Inherits ActionInterval.

Inherited by Grid3DAction, and TiledGrid3DAction.

Public Member Functions

virtual GridBasegetGrid ()
 Get the pointer of GridBase. More...
 
var getGrid ()
 Get the pointer of GridBase. More...
 
local getGrid ()
 Get the pointer of GridBase. More...
 
virtual GridActionclone () const override
 override Action.
 
var clone ()
 override Action.
 
local clone ()
 override Action.
 
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.
 

Protected Member Functions

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

Base class for Grid actions.

Grid actions are the actions take effect on GridBase.

Member Function Documentation

virtual GridBase* getGrid ( )
virtual

Get the pointer of GridBase.

The pointer of GridBase.

Reimplemented in TiledGrid3DAction, Grid3DAction, and PageTurn3D.

var getGrid ( )
virtual

Get the pointer of GridBase.

The pointer of GridBase.

Reimplemented in TiledGrid3DAction, Grid3DAction, and PageTurn3D.

local getGrid ( )
virtual

Get the pointer of GridBase.

The pointer of GridBase.

Reimplemented in TiledGrid3DAction, Grid3DAction, and PageTurn3D.

bool initWithDuration ( float  duration,
const Size gridSize 
)
protected

Initializes the action with size and duration.

The duration of the GridAction. It's a value in seconds. The size of the GridAction should be. Return true when the initialization success, otherwise return false.

var initWithDuration ( var  duration,
var  gridSize 
)
protected

Initializes the action with size and duration.

The duration of the GridAction. It's a value in seconds. The size of the GridAction should be. Return true when the initialization success, otherwise return false.

local initWithDuration ( local  duration,
local  gridSize 
)
protected

Initializes the action with size and duration.

The duration of the GridAction. It's a value in seconds. The size of the GridAction should be. Return true when the initialization success, otherwise return false.


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