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

EaseElastic base action. More...

Inherits ActionEase.

Inherited by EaseElasticIn, EaseElasticInOut, and EaseElasticOut.

Public Member Functions

float getPeriod () const
 Get period of the curve in radians. More...
 
var getPeriod ()
 Get period of the curve in radians. More...
 
local getPeriod ()
 Get period of the curve in radians. More...
 
void setPeriod (float fPeriod)
 Set period of the wave in radians. More...
 
var setPeriod ( var fPeriod)
 Set period of the wave in radians. More...
 
local setPeriod ( local fPeriod)
 Set period of the wave in radians. More...
 
virtual EaseElasticclone () const override
 override Action.
 
virtual EaseElasticreverse () const override
 override Action.
 
var reverse ()
 override Action.
 
local reverse ()
 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.
 

Protected Member Functions

bool initWithAction (ActionInterval *action, float period=0.3f)
 Initializes the action with the inner action and the period in radians. 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

EaseElastic base action.

Member Function Documentation

float getPeriod ( ) const
inline

Get period of the curve in radians.

Default value is 0.3. Return the period of the wave in radians.

var getPeriod ( )
inline

Get period of the curve in radians.

Default value is 0.3. Return the period of the wave in radians.

local getPeriod ( )
inline

Get period of the curve in radians.

Default value is 0.3. Return the period of the wave in radians.

void setPeriod ( float  fPeriod)
inline

Set period of the wave in radians.

Period of the curve in radians.

var setPeriod ( var  fPeriod)
inline

Set period of the wave in radians.

Period of the curve in radians.

local setPeriod ( local  fPeriod)
inline

Set period of the wave in radians.

Period of the curve in radians.

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

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

The pointer of the inner action. Period of the curve in radians. Default is 0.3. Return true when the initialization success, otherwise return false.

var initWithAction ( var  action,
var  period = 0.3f 
)
protected

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

The pointer of the inner action. Period of the curve in radians. Default is 0.3. Return true when the initialization success, otherwise return false.

local initWithAction ( local  action,
local  period = 0.3f 
)
protected

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

The pointer of the inner action. Period of the curve in radians. Default is 0.3. Return true when the initialization success, otherwise return false.


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