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

Base class for TiledGrid3D actions. More...

Inherits GridAction.

Inherited by FadeOutTRTiles, JumpTiles3D, ShakyTiles3D, ShatteredTiles3D, ShuffleTiles, SplitCols, SplitRows, TurnOffTiles, and WavesTiles3D.

Public Member Functions

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
 
virtual TiledGrid3DActionclone () const override
 override Action.
 
- 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 TiledGrid3DActioncreate (float duration, const Size &gridSize)
 Create the action with size and duration. More...
 

Additional Inherited Members

- 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

Base class for TiledGrid3D actions.

Member Function Documentation

static TiledGrid3DAction* create ( float  duration,
const Size gridSize 
)
static

Create the action with size and duration.

The duration of the action. It's a value in seconds. Specify the grid size of the action. A pointer of TiledGrid3DAction. If creation failed, return nil.

var create ( var  duration,
var  gridSize 
)
static

Create the action with size and duration.

The duration of the action. It's a value in seconds. Specify the grid size of the action. A pointer of TiledGrid3DAction. If creation failed, return nil.

Quad3 getTile ( const Vec2 position) const

Get the tile that belongs to a certain position of the grid.

The position of the tile want to get. A quadrilateral of the tile.

var tile ( var  position)

Get the tile that belongs to a certain position of the grid.

The position of the tile want to get. A quadrilateral of the tile.

Quad3 tile ( const Vec2 position)
inline
Quad3 getOriginalTile ( const Vec2 position) const

Get the non-transformed tile that belongs to a certain position of the grid.

The position of the tile want to get. A quadrilateral of the tile.

var originalTile ( var  position)

Get the non-transformed tile that belongs to a certain position of the grid.

The position of the tile want to get. A quadrilateral of the tile.

Quad3 originalTile ( const Vec2 position)
inline
See also
getOriginalTile
void setTile ( const Vec2 position,
const Quad3 coords 
)

Set a new tile to a certain position of the grid.

The position of the tile. The quadrilateral of the new tile.

var setTile ( var  position,
var  coords 
)

Set a new tile to a certain position of the grid.

The position of the tile. The quadrilateral of the new tile.


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