ShuffleTiles action. More...
Inherits TiledGrid3DAction.
Public Member Functions | |
virtual ShuffleTiles * | clone () const override |
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 GridBase * | getGrid () override |
returns the grid | |
var | getGrid () |
returns the grid | |
local | getGrid () |
returns the grid | |
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 ShuffleTiles * | create (float duration, const Size &gridSize, unsigned int seed) |
Create the action with grid size, random seed and duration. More... | |
var | create ( var duration, var gridSize, var seed) |
Create the action with grid size, random seed and duration. More... | |
local | create ( local duration, local gridSize, local seed) |
Create the action with grid size, random seed and duration. More... | |
Static Public Member Functions inherited from TiledGrid3DAction | |
static TiledGrid3DAction * | create (float duration, const Size &gridSize) |
Create the action with size and duration. More... | |
Protected Member Functions | |
bool | initWithDuration (float duration, const Size &gridSize, unsigned int seed) |
Initializes the action with grid size, random seed and duration. More... | |
var | initWithDuration ( var duration, var gridSize, var seed) |
Initializes the action with grid size, random seed and duration. More... | |
local | initWithDuration ( local duration, local gridSize, local seed) |
Initializes the action with grid size, random seed and 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... | |
ShuffleTiles action.
This action make the target node shuffle with many tiles in random order. You can create the action by these parameters: duration, grid size, the random seed.
|
static |
Create the action with grid size, random seed and duration.
Specify the duration of the ShuffleTiles action. It's a value in seconds. Specify the size of the grid. Specify the random seed. If the creation success, return a pointer of ShuffleTiles action; otherwise, return nil.
|
static |
Create the action with grid size, random seed and duration.
Specify the duration of the ShuffleTiles action. It's a value in seconds. Specify the size of the grid. Specify the random seed. If the creation success, return a pointer of ShuffleTiles action; otherwise, return nil.
|
static |
Create the action with grid size, random seed and duration.
Specify the duration of the ShuffleTiles action. It's a value in seconds. Specify the size of the grid. Specify the random seed. If the creation success, return a pointer of ShuffleTiles action; otherwise, return nil.
|
protected |
Initializes the action with grid size, random seed and duration.
Specify the duration of the ShuffleTiles action. It's a value in seconds. Specify the size of the grid. Specify the random seed. If the Initialization success, return true; otherwise, return false.
|
protected |
Initializes the action with grid size, random seed and duration.
Specify the duration of the ShuffleTiles action. It's a value in seconds. Specify the size of the grid. Specify the random seed. If the Initialization success, return true; otherwise, return false.
|
protected |
Initializes the action with grid size, random seed and duration.
Specify the duration of the ShuffleTiles action. It's a value in seconds. Specify the size of the grid. Specify the random seed. If the Initialization success, return true; otherwise, return false.