AccelAmplitude action. More...
Inherits ActionInterval.
Public Member Functions | |
| float | getRate () const |
| 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 AccelAmplitude * | clone () const override |
override Action. | |
| local | clone () |
override Action. | |
| virtual AccelAmplitude * | 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 AccelAmplitude * | 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... | |
Additional Inherited Members | |
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... | |
AccelAmplitude 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 AccelAmplitude action. Return a pointer of AccelAmplitude 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 AccelAmplitude action. Return a pointer of AccelAmplitude 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.