⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-ff0e11a
|
Base class for TiledGrid3D actions. More...
#include <ActionGrid.h>
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. | |
| Quad3 | getOriginalTile (const Vec2 &position) const |
| Get the non-transformed tile that belongs to a certain position of the grid. | |
| void | setTile (const Vec2 &position, const Quad3 &coords) |
| Set a new tile to a certain position of the grid. | |
| GridBase * | getGrid () override |
| returns the grid | |
| Public Member Functions inherited from GridAction | |
| bool | initWithDuration (float duration, const Vec2 &gridSize) |
| Initializes the action with size and duration. | |
| Public Member Functions inherited from ActionInterval | |
| float | getElapsed () |
| How many seconds had elapsed since the actions started to run. | |
| void | setAmplitudeRate (float amp) |
| Sets the amplitude rate, extension in GridAction. | |
| float | getAmplitudeRate () |
| Gets the amplitude rate, extension in GridAction. | |
| void | step (float dt) override |
| bool | initWithDuration (float d) |
| initializes the action | |
Static Public Member Functions | |
| static TiledGrid3DAction * | create (float duration, const Vec2 &gridSize) |
| Create the action with size and duration. | |
Base class for TiledGrid3D actions.
|
static |
Create the action with size and duration.
| duration | The duration of the action. It's a value in seconds. |
| gridSize | Specify the grid size of the action. |
Get the tile that belongs to a certain position of the grid.
| position | The position of the tile want to get. |
Get the non-transformed tile that belongs to a certain position of the grid.
| position | The position of the tile want to get. |
Set a new tile to a certain position of the grid.
| position | The position of the tile. |
| coords | The quadrilateral of the new tile. @lua NA |