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

Base class for Easing actions with rate parameters. More...

#include <ActionEase.h>

Inherits ActionEase.

Inherited by EaseIn, EaseInOut, and EaseOut.

Public Member Functions

void setRate (float rate)
 Set the rate value for the ease rate action.
 
float getRate () const
 Get the rate value of the ease rate action.
 
bool initWithAction (ActionInterval *pAction, float fRate)
 Initializes the action with the inner action and the rate parameter.
 
- 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

Base class for Easing actions with rate parameters.

Ease the inner action with specified rate.

Member Function Documentation

◆ setRate()

void setRate ( float rate)
inline

Set the rate value for the ease rate action.

Parameters
rateThe value will be set.

◆ getRate()

float getRate ( ) const
inline

Get the rate value of the ease rate action.

Returns
Return the rate value of the ease rate action.

◆ initWithAction()

bool initWithAction ( ActionInterval * pAction,
float fRate )

Initializes the action with the inner action and the rate parameter.

Parameters
pActionThe pointer of the inner action.
fRateThe value of the rate parameter.
Returns
Return true when the initialization success, otherwise return false.

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