Cocos2d-x  v3.12
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
EaseRateAction Class Reference

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

Inherits ActionEase.

Inherited by EaseIn, EaseInOut, and EaseOut.

Public Member Functions

void setRate (float rate)
 Set the rate value for the ease rate action. More...
 
float getRate () const
 Get the rate value of the ease rate action. More...
 
var getRate ()
 Get the rate value of the ease rate action. More...
 
local getRate ()
 Get the rate value of the ease rate action. More...
 
virtual EaseRateActionclone () const override
 override Action.
 
virtual EaseRateActionreverse () const override
 override Action.
 
- Public Member Functions inherited from ActionEase
virtual ActionIntervalgetInnerAction ()
 Get the pointer of the inner action. More...
 
- Public Member Functions inherited from ActionInterval
float getElapsed (void)
 How many seconds had elapsed since the actions started to run. More...
 
var getElapsed ()
 How many seconds had elapsed since the actions started to run. More...
 
local getElapsed ()
 How many seconds had elapsed since the actions started to run. More...
 
void setAmplitudeRate (float amp)
 Sets the amplitude rate, extension in GridAction. More...
 
float getAmplitudeRate (void)
 Gets the ampliture rate, extension in GridAction. More...
 
virtual bool isDone (void) const override
 override Action.
 
local isDone ()
 override Action.
 

Static Public Member Functions

static EaseRateActioncreate (ActionInterval *action, float rate)
 Creates the action with the inner action and the rate parameter. More...
 
local create ( local action, local rate)
 Creates the action with the inner action and the rate parameter. More...
 

Protected Member Functions

bool initWithAction (ActionInterval *pAction, float fRate)
 Initializes the action with the inner action and the rate parameter. More...
 
- Protected Member Functions inherited from ActionEase
bool initWithAction (ActionInterval *action)
 Initializes the action with the inner action. More...
 
var initWithAction ( var action)
 Initializes the action with the inner action. More...
 
local initWithAction ( local action)
 Initializes the action with the inner action. More...
 
- Protected Member Functions inherited from ActionInterval
bool initWithDuration (float d)
 initializes the action with the duration. More...
 
var initWithDuration ( var d)
 initializes the action with the duration. More...
 
local initWithDuration ( local d)
 initializes the action with the duration. More...
 

Detailed Description

Base class for Easing actions with rate parameters.

Ease the inner action with specified rate.

Member Function Documentation

static EaseRateAction* create ( ActionInterval action,
float  rate 
)
static

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

A given ActionInterval A given rate An autoreleased EaseRateAction object.

var create ( var  action,
var  rate 
)
static

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

A given ActionInterval A given rate An autoreleased EaseRateAction object.

local create ( local  action,
local  rate 
)
static

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

A given ActionInterval A given rate An autoreleased EaseRateAction object.

void setRate ( float  rate)
inline

Set the rate value for the ease rate action.

The rate value.

var setRate ( var  rate)
inline

Set the rate value for the ease rate action.

The rate value.

local setRate ( local  rate)
inline

Set the rate value for the ease rate action.

The rate value.

float getRate ( ) const
inline

Get the rate value of the ease rate action.

Return the rate value of the ease rate action.

var getRate ( )
inline

Get the rate value of the ease rate action.

Return the rate value of the ease rate action.

local getRate ( )
inline

Get the rate value of the ease rate action.

Return the rate value of the ease rate action.

bool initWithAction ( ActionInterval pAction,
float  fRate 
)
protected

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

The pointer of the inner action. The value of the rate parameter. Return true when the initialization success, otherwise return false.

var initWithAction ( var  pAction,
var  fRate 
)
protected

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

The pointer of the inner action. The value of the rate parameter. Return true when the initialization success, otherwise return false.

local initWithAction ( local  pAction,
local  fRate 
)
protected

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

The pointer of the inner action. The value of the rate parameter. Return true when the initialization success, otherwise return false.


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