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

DeccelAmplitude action. More...

Inherits ActionInterval.

Public Member Functions

float getRate () const
 Get the value of amplitude rate. More...
 
void setRate (float rate)
 Set the value of amplitude rate. More...
 
local setRate ( local rate)
 Set the value of amplitude rate. More...
 
virtual DeccelAmplitudeclone () const override
 override Action.
 
local clone ()
 override Action.
 
virtual DeccelAmplitudereverse () const override
 override Action.
 
local reverse ()
 override Action.
 
- 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 DeccelAmplitudecreate (Action *action, float duration)
 Creates the action with an inner action that has the amplitude property, and a duration time. More...
 
local create ( local action, local duration)
 Creates the action with an inner action that has the amplitude property, and a duration time. More...
 

Protected Member Functions

bool initWithAction (Action *action, float duration)
 Initializes the action with an inner action that has the amplitude property, and a duration time. 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

Member Function Documentation

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

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

A pointer of the inner action. Specify the duration of the DeccelAmplitude action. Return a pointer of DeccelAmplitude. When the creation failed, return nil.

local create ( local  action,
local  duration 
)
static

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

A pointer of the inner action. Specify the duration of the DeccelAmplitude action. Return a pointer of DeccelAmplitude. When the creation failed, return nil.

float getRate ( ) const
inline

Get the value of amplitude rate.

The value of amplitude rate.

local getRate ( )
inline

Get the value of amplitude rate.

The value of amplitude rate.

void setRate ( float  rate)
inline

Set the value of amplitude rate.

Specify the value.

local setRate ( local  rate)
inline

Set the value of amplitude rate.

Specify the value.

bool initWithAction ( Action *  action,
float  duration 
)
protected

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

The pointer of inner action. The duration of the DeccelAmplitude action. If the initilization sucess, return true; otherwise, return false.

local initWithAction ( local  action,
local  duration 
)
protected

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

The pointer of inner action. The duration of the DeccelAmplitude action. If the initilization sucess, return true; otherwise, return false.


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