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 GridBase * | getGrid () override |
returns the grid | |
var | getGrid () |
returns the grid | |
local | getGrid () |
returns the grid | |
virtual TiledGrid3DAction * | clone () const override |
override Action . | |
Public Member Functions inherited from GridAction | |
virtual GridAction * | reverse () 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 TiledGrid3DAction * | create (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... | |
Base class for TiledGrid3D actions.
|
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.
|
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.
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.
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.
getOriginalTile
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.