EaseElastic base action. More...
Inherits ActionEase.
Inherited by EaseElasticIn, EaseElasticInOut, and EaseElasticOut.
Public Member Functions | |
float | getPeriod () const |
Get period of the curve in radians. More... | |
void | setPeriod (float fPeriod) |
Set period of the wave in radians. More... | |
virtual EaseElastic * | clone () const override |
override Action . | |
virtual EaseElastic * | reverse () const override |
override Action . | |
![]() | |
virtual ActionInterval * | getInnerAction () |
Get the pointer of the inner action. More... | |
![]() | |
float | getElapsed (void) |
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 . | |
Protected Member Functions | |
bool | initWithAction (ActionInterval *action, float period=0.3f) |
Initializes the action with the inner action and the period in radians. More... | |
![]() | |
bool | initWithAction (ActionInterval *action) |
Initializes the action with the inner action. More... | |
![]() | |
bool | initWithDuration (float d) |
initializes the action with the duration. More... | |
EaseElastic base action.
|
inline |
Get period of the curve in radians.
Default value is 0.3. Return the period of the wave in radians.
|
inline |
Set period of the wave in radians.
Period of the curve in radians.
|
protected |
Initializes the action with the inner action and the period in radians.
The pointer of the inner action. Period of the curve in radians. Default is 0.3. Return true when the initialization success, otherwise return false.