AccelDeccelAmplitude action. More...
Inherits ActionInterval.
Public Member Functions | |
float | getRate (void) const |
Get the value of amplitude rate. More... | |
local | getRate () |
Get the value of amplitude rate. More... | |
void | setRate (float rate) |
Set the value of amplitude rate. More... | |
local | setRate ( local rate) |
Set the value of amplitude rate. More... | |
virtual AccelDeccelAmplitude * | clone () const override |
override Action . | |
local | clone () |
override Action . | |
virtual AccelDeccelAmplitude * | reverse () const override |
override Action . | |
local | reverse () |
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 AccelDeccelAmplitude * | create (Action *action, float duration) |
Create the action with an inner action that has the amplitude property, and a duration time. More... | |
local | create ( local action, local duration) |
Create the action with an inner action that has the amplitude property, and a duration time. More... | |
Protected Member Functions | |
bool | initWithAction (Action *action, float duration) |
Initializes the action with an inner action that has the amplitude property, and a duration time. More... | |
local | initWithAction ( local action, local duration) |
Initializes the action with an inner action that has the amplitude property, and a duration time. 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... | |
AccelDeccelAmplitude action.
|
static |
Create the action with an inner action that has the amplitude property, and a duration time.
A pointer of the inner action. Specify the duration of the AccelDeccelAmplitude action. Return a pointer of AccelDeccelAmplitude action. When the creation failed, return nil.
|
static |
Create the action with an inner action that has the amplitude property, and a duration time.
A pointer of the inner action. Specify the duration of the AccelDeccelAmplitude action. Return a pointer of AccelDeccelAmplitude action. When the creation failed, return nil.
|
inline |
Get the value of amplitude rate.
the value of amplitude rate.
|
inline |
Get the value of amplitude rate.
the value of amplitude rate.
|
inline |
Set the value of amplitude rate.
Specify the value of amplitude rate.
|
inline |
Set the value of amplitude rate.
Specify the value of amplitude rate.
|
protected |
Initializes the action with an inner action that has the amplitude property, and a duration time.
A pointer of the inner action. Specify the duration of the AccelDeccelAmplitude action. If the initialization success, return true; otherwise, return false.
|
protected |
Initializes the action with an inner action that has the amplitude property, and a duration time.
A pointer of the inner action. Specify the duration of the AccelDeccelAmplitude action. If the initialization success, return true; otherwise, return false.