⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-dff292a
|
Progress from a percentage to another percentage. More...
#include <ActionProgressTimer.h>
Inherits ActionInterval.
Public Member Functions | |
| bool | initWithDuration (float duration, float fromPercentage, float toPercentage) |
| Initializes the action with a duration, a "from" percentage and a "to" percentage. | |
| Public Member Functions inherited from ActionInterval | |
| 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. | |
| void | step (float dt) override |
| bool | initWithDuration (float d) |
| initializes the action | |
Static Public Member Functions | |
| static ProgressFromTo * | create (float duration, float fromPercentage, float toPercentage) |
| Create and initializes the action with a duration, a "from" percentage and a "to" percentage. | |
Progress from a percentage to another percentage.
|
static |
Create and initializes the action with a duration, a "from" percentage and a "to" percentage.
| duration | Specify the duration of the ProgressFromTo action. It's a value in seconds. |
| fromPercentage | Specify the source percentage. |
| toPercentage | Specify the destination percentage. |
| bool initWithDuration | ( | float | duration, |
| float | fromPercentage, | ||
| float | toPercentage ) |
Initializes the action with a duration, a "from" percentage and a "to" percentage.
| duration | Specify the duration of the ProgressFromTo action. It's a value in seconds. |
| fromPercentage | Specify the source percentage. |
| toPercentage | Specify the destination percentage. |