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

Ease Elastic abstract class. More...

#include <ActionEase.h>

Inherits ActionEase.

Inherited by EaseElasticIn, EaseElasticInOut, and EaseElasticOut.

Public Member Functions

float getPeriod () const
 Get period of the wave in radians.
 
void setPeriod (float fPeriod)
 Set period of the wave in radians.
 
bool initWithAction (ActionInterval *action, float period=0.3f)
 Initializes the action with the inner action and the period in radians.
 
- Public Member Functions inherited from ActionEase
virtual ActionIntervalgetInnerAction ()
 Get the pointer of the inner action.
 
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.
 
virtual void step (float dt) override
 
bool initWithDuration (float d)
 initializes the action
 

Detailed Description

Ease Elastic abstract class.

Since
v0.8.2

Member Function Documentation

◆ getPeriod()

float getPeriod ( ) const
inline

Get period of the wave in radians.

Default value is 0.3.

Returns
Return the period of the wave in radians.

◆ setPeriod()

void setPeriod ( float fPeriod)
inline

Set period of the wave in radians.

Parameters
fPeriodThe value will be set.

◆ initWithAction()

bool initWithAction ( ActionInterval * action,
float period = 0.3f )

Initializes the action with the inner action and the period in radians.

Parameters
actionThe pointer of the inner action.
periodPeriod of the wave in radians. Default is 0.3.
Returns
Return true when the initialization success, otherwise return false.

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