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

Progress from a percentage to another percentage. More...

Inherits ActionInterval.

Public Member Functions

virtual ProgressFromToclone () const override
 override Action.
 
local clone ()
 override Action.
 
virtual ProgressFromToreverse () 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 ProgressFromTocreate (float duration, float fromPercentage, float toPercentage)
 Create and initializes the action with a duration, a "from" percentage and a "to" percentage. More...
 
local create ( local duration, local fromPercentage, local toPercentage)
 Create and initializes the action with a duration, a "from" percentage and a "to" percentage. More...
 

Protected Member Functions

bool initWithDuration (float duration, float fromPercentage, float toPercentage)
 Initializes the action with a duration, a "from" percentage and a "to" percentage. More...
 
var initWithDuration ( var duration, var fromPercentage, var toPercentage)
 Initializes the action with a duration, a "from" percentage and a "to" percentage. More...
 
local initWithDuration ( local duration, local fromPercentage, local toPercentage)
 Initializes the action with a duration, a "from" percentage and a "to" 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 from a percentage to another percentage.

Member Function Documentation

static ProgressFromTo* create ( float  duration,
float  fromPercentage,
float  toPercentage 
)
static

Create and initializes the action with a duration, a "from" percentage and a "to" percentage.

Specify the duration of the ProgressFromTo action. It's a value in seconds. Specify the source percentage. Specify the destination percentage. If the creation sucess, return a pointer of ProgressFromTo action; otherwise, return nil.

var create ( var  duration,
var  fromPercentage,
var  toPercentage 
)
static

Create and initializes the action with a duration, a "from" percentage and a "to" percentage.

Specify the duration of the ProgressFromTo action. It's a value in seconds. Specify the source percentage. Specify the destination percentage. If the creation sucess, return a pointer of ProgressFromTo action; otherwise, return nil.

local create ( local  duration,
local  fromPercentage,
local  toPercentage 
)
static

Create and initializes the action with a duration, a "from" percentage and a "to" percentage.

Specify the duration of the ProgressFromTo action. It's a value in seconds. Specify the source percentage. Specify the destination percentage. If the creation sucess, return a pointer of ProgressFromTo action; otherwise, return nil.

bool initWithDuration ( float  duration,
float  fromPercentage,
float  toPercentage 
)
protected

Initializes the action with a duration, a "from" percentage and a "to" percentage.

Specify the duration of the ProgressFromTo action. It's a value in seconds. Specify the source percentage. Specify the destination percentage. If the creation sucess, return true; otherwise, return false.

var initWithDuration ( var  duration,
var  fromPercentage,
var  toPercentage 
)
protected

Initializes the action with a duration, a "from" percentage and a "to" percentage.

Specify the duration of the ProgressFromTo action. It's a value in seconds. Specify the source percentage. Specify the destination percentage. If the creation sucess, return true; otherwise, return false.

local initWithDuration ( local  duration,
local  fromPercentage,
local  toPercentage 
)
protected

Initializes the action with a duration, a "from" percentage and a "to" percentage.

Specify the duration of the ProgressFromTo action. It's a value in seconds. Specify the source percentage. Specify the destination percentage. If the creation sucess, return true; otherwise, return false.


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