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

Axmol Engine 3.0.0-dff292a
Loading...
Searching...
No Matches
AccelDeccelAmplitude Class Reference

AccelDeccelAmplitude action. More...

#include <ActionGrid.h>

Inherits ActionInterval.

Public Member Functions

float getRate () const
 Get the value of amplitude rate.
void setRate (float rate)
 Set the value of amplitude rate.
bool initWithAction (Action *action, float duration)
 Initializes the action with an inner action that has the amplitude property, and a duration time.
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 AccelDeccelAmplitudecreate (Action *action, float duration)
 Create the action with an inner action that has the amplitude property, and a duration time.

Detailed Description

Member Function Documentation

◆ create()

AccelDeccelAmplitude * create ( Action * action,
float duration )
static

Create the action with an inner action that has the amplitude property, and a duration time.

Parameters
actionA pointer of the inner action.
durationSpecify the duration of the AccelDeccelAmplitude action.
Returns
Return a pointer of AccelDeccelAmplitude action. When the creation failed, return nil.

◆ getRate()

float getRate ( ) const
inline

Get the value of amplitude rate.

Returns
the value of amplitude rate.

◆ setRate()

void setRate ( float rate)
inline

Set the value of amplitude rate.

Parameters
rateSpecify the value of amplitude rate.

◆ initWithAction()

bool initWithAction ( Action * action,
float duration )

Initializes the action with an inner action that has the amplitude property, and a duration time.

Parameters
actionA pointer of the inner action.
durationSpecify the duration of the AccelDeccelAmplitude action.
Returns
If the initialization success, return true; otherwise, return false.

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