Cocos2d-x  v3.11
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...
 
virtual GridActionclone () const override
 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...
 
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.
 

Protected Member Functions

bool initWithDuration (float duration, const Size &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...
 

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.

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.


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