Axmol 3.0.0-89d6d9a
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.
ActionInterval * getInnerAction ()
 Gets the inner action.
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.
void step (float dt) override
bool initWithDuration (float d)
 initializes the action

Static Public Member Functions

static RepeatForever * create (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()

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()

void step ( float dt)
override
Parameters
dtIn seconds.

The documentation for this class was generated from the following file:
  • ActionInterval.h