Progress to percentage. More...
Inherits ActionInterval.
Public Member Functions | |
virtual ProgressTo * | clone () const override |
override Action . | |
virtual ProgressTo * | 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 ProgressTo * | create (float duration, float percent) |
Create and initializes with a duration and a destination percentage. More... | |
Protected Member Functions | |
bool | initWithDuration (float duration, float percent) |
Initializes with a duration and destination percentage. More... | |
var | initWithDuration ( var duration, var percent) |
Initializes with a duration and destination percentage. More... | |
local | initWithDuration ( local duration, local percent) |
Initializes with a duration and destination percentage. 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... | |
Progress to percentage.
This action show the target node from current percentage to the specified percentage. You should specify the destination percentage when creating the action.
|
static |
Create and initializes with a duration and a destination percentage.
Specify the duration of the ProgressTo action. It's a value in seconds. Specify the destination percentage. If the creation sucess, return a pointer of ProgressTo action; otherwise, return nil.
|
static |
Create and initializes with a duration and a destination percentage.
Specify the duration of the ProgressTo action. It's a value in seconds. Specify the destination percentage. If the creation sucess, return a pointer of ProgressTo action; otherwise, return nil.
|
static |
Create and initializes with a duration and a destination percentage.
Specify the duration of the ProgressTo action. It's a value in seconds. Specify the destination percentage. If the creation sucess, return a pointer of ProgressTo action; otherwise, return nil.
|
protected |
Initializes with a duration and destination percentage.
Specify the duration of the ProgressTo action. It's a value in seconds. Specify the destination percentage. If the creation sucess, return true; otherwise, return false.
|
protected |
Initializes with a duration and destination percentage.
Specify the duration of the ProgressTo action. It's a value in seconds. Specify the destination percentage. If the creation sucess, return true; otherwise, return false.
|
protected |
Initializes with a duration and destination percentage.
Specify the duration of the ProgressTo action. It's a value in seconds. Specify the destination percentage. If the creation sucess, return true; otherwise, return false.