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

Repeats an action forever. More...

Inherits ActionInterval.

Public Member Functions

void setInnerAction (ActionInterval *action)
 Sets the inner action. More...
 
ActionIntervalgetInnerAction ()
 Gets the inner action. More...
 
local getInnerAction ()
 Gets the inner action. More...
 
virtual RepeatForeverclone () const override
 override Action.
 
virtual RepeatForeverreverse (void) const override
 override Action.
 
local reverse ()
 override Action.
 
virtual bool isDone (void) const override
 override Action.
 
local isDone ()
 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...
 

Static Public Member Functions

static RepeatForevercreate (ActionInterval *action)
 Creates the action with an inner action. More...
 
var create ( var action)
 Creates the action with an inner action. More...
 
local create ( local action)
 Creates the action with an inner action. More...
 

Protected Member Functions

bool initWithAction (ActionInterval *action)
 initializes the action
 
var initWithAction ( var action)
 initializes the action
 
local initWithAction ( local action)
 initializes the action
 
- 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

Repeats an action forever.

To repeat the an action for a limited number of times use the Repeat action. This action can't be Sequenceable because it is not an finite time action.

Member Function Documentation

static RepeatForever* create ( ActionInterval action)
static

Creates the action with an inner action.

The action need to repeat forever. An autoreleased RepeatForever object.

var create ( var  action)
static

Creates the action with an inner action.

The action need to repeat forever. An autoreleased RepeatForever object.

local create ( local  action)
static

Creates the action with an inner action.

The action need to repeat forever. An autoreleased RepeatForever object.

void setInnerAction ( ActionInterval action)
inline

Sets the inner action.

The inner action.

var setInnerAction ( var  action)
inline

Sets the inner action.

The inner action.

local setInnerAction ( local  action)
inline

Sets the inner action.

The inner action.

ActionInterval* getInnerAction ( )
inline

Gets the inner action.

The inner action.

var getInnerAction ( )
inline

Gets the inner action.

The inner action.

local getInnerAction ( )
inline

Gets the inner action.

The inner action.


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