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

Executes an action in reverse order, from time=duration to time=0. More...

Inherits ActionInterval.

Public Member Functions

virtual ReverseTimereverse () const override
 override ActionInterval.
 
virtual ReverseTimeclone () const override
 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 ReverseTimecreate (FiniteTimeAction *action)
 Creates the action with the inner action. More...
 

Additional Inherited Members

- 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

Executes an action in reverse order, from time=duration to time=0.

Use this action carefully. This action is not sequenceable. Use it as the default "reversed" method of your own actions, but using it outside the "reversed" scope is not recommended.

Member Function Documentation

static ReverseTime* create ( FiniteTimeAction *  action)
static

Creates the action with the inner action.

a certain action. An autoreleased ReverseTime object.

var create ( var  action)
static

Creates the action with the inner action.

a certain action. An autoreleased ReverseTime object.

local create ( local  action)
static

Creates the action with the inner action.

a certain action. An autoreleased ReverseTime object.


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