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

Repeats an action for ever. More...

#include <ActionInterval.h>

Inherits ActionInterval.

Public Member Functions

void setInnerAction (ActionInterval *action)
 Sets the inner action.
 
ActionIntervalgetInnerAction ()
 Gets the inner action.
 
virtual void step (float dt) override
 
bool initWithAction (ActionInterval *action)
 initializes the action
 
- 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.
 
bool initWithDuration (float d)
 initializes the action
 

Static Public Member Functions

static RepeatForevercreate (ActionInterval *action)
 Creates the action.
 

Detailed Description

Repeats an action for ever.

To repeat the an action for a limited number of times use the Repeat action.

Warning
This action can't be Sequenceable because it is not an IntervalAction.

Member Function Documentation

◆ create()

static RepeatForever * create ( ActionInterval * action)
static

Creates the action.

Parameters
actionThe action need to repeat forever.
Returns
An autoreleased RepeatForever object.

◆ setInnerAction()

void setInnerAction ( ActionInterval * action)
inline

Sets the inner action.

Parameters
actionThe inner action.

◆ getInnerAction()

ActionInterval * getInnerAction ( )
inline

Gets the inner action.

Returns
The inner action.

◆ step()

virtual void step ( float dt)
overridevirtual
Parameters
dtIn seconds.

Reimplemented from ActionInterval.


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