⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.

Axmol Engine 3.0.0-ff0e11a
Loading...
Searching...
No Matches
ReverseTime Class Reference

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

#include <ActionInterval.h>

Inherits ActionInterval.

Public Member Functions

void update (float time) override
bool initWithAction (FiniteTimeAction *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 ReverseTimecreate (FiniteTimeAction *action)
 Creates the action.

Detailed Description

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

Warning
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

◆ create()

ReverseTime * create ( FiniteTimeAction * action)
static

Creates the action.

Parameters
actiona certain action.
Returns
An autoreleased ReverseTime object.

◆ update()

void update ( float time)
override
Parameters
timeIn seconds.

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