Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
ProgressTo Class Reference

Progress to percentage. More...

#include <ActionProgressTimer.h>

Inherits ActionInterval.

Public Member Functions

bool initWithDuration (float duration, float percent)
 Initializes with a duration and destination 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.
 
virtual void step (float dt) override
 
bool initWithDuration (float d)
 initializes the action
 

Static Public Member Functions

static ProgressTocreate (float duration, float percent)
 Create and initializes with a duration and a destination percentage.
 

Detailed Description

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.

Since
v0.99.1

Member Function Documentation

◆ create()

static ProgressTo * create ( float duration,
float percent )
static

Create and initializes with a duration and a destination percentage.

Parameters
durationSpecify the duration of the ProgressTo action. It's a value in seconds.
percentSpecify the destination percentage.
Returns
If the creation success, return a pointer of ProgressTo action; otherwise, return nil.

◆ initWithDuration()

bool initWithDuration ( float duration,
float percent )

Initializes with a duration and destination percentage.

Parameters
durationSpecify the duration of the ProgressTo action. It's a value in seconds.
percentSpecify the destination percentage.
Returns
If the creation success, return true; otherwise, return false.

The documentation for this class was generated from the following file: