⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
Axmol Engine 2.4.0-ce063c5
|
Base class for Grid actions. More...
#include <ActionGrid.h>
Inherits ActionInterval.
Inherited by Grid3DAction, and TiledGrid3DAction.
Public Member Functions | |
virtual GridBase * | getGrid () |
Get the pointer of GridBase. | |
bool | initWithDuration (float duration, const Vec2 &gridSize) |
Initializes the action with size and duration. | |
![]() | |
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. | |
virtual void | step (float dt) override |
bool | initWithDuration (float d) |
initializes the action | |
Base class for Grid actions.
Grid actions are the actions take effect on GridBase.
|
virtual |
Get the pointer of GridBase.
Reimplemented in Grid3DAction, PageTurn3D, and TiledGrid3DAction.
bool initWithDuration | ( | float | duration, |
const Vec2 & | gridSize ) |
Initializes the action with size and duration.
duration | The duration of the GridAction. It's a value in seconds. |
gridSize | The size of the GridAction should be. |