Cocos2d-x  v3.12
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
ProgressTo Class Reference

Progress to percentage. More...

Inherits ActionInterval.

Public Member Functions

virtual ProgressToclone () const override
 override Action.
 
virtual ProgressToreverse () 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 ProgressTocreate (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...
 

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.

Member Function Documentation

static ProgressTo* create ( float  duration,
float  percent 
)
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.

var create ( var  duration,
var  percent 
)
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.

local create ( local  duration,
local  percent 
)
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.

bool initWithDuration ( float  duration,
float  percent 
)
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.

var initWithDuration ( var  duration,
var  percent 
)
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.

local initWithDuration ( local  duration,
local  percent 
)
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.


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