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

AccelAmplitude 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 AccelAmplitudeclone () const override
 override Action.
 
local clone ()
 override Action.
 
virtual AccelAmplitudereverse () const override
 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 AccelAmplitudecreate (Action *action, float duration)
 Create the action with an inner action that has the amplitude property, and a duration time. More...
 
local create ( local action, local duration)
 Create the action with an inner action that has the amplitude property, and a duration time. More...
 

Additional Inherited Members

- 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 AccelAmplitude* create ( Action *  action,
float  duration 
)
static

Create 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 AccelAmplitude action. Return a pointer of AccelAmplitude action. When the creation failed, return nil.

local create ( local  action,
local  duration 
)
static

Create 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 AccelAmplitude action. Return a pointer of AccelAmplitude action. 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 of amplitude rate.

local setRate ( local  rate)
inline

Set the value of amplitude rate.

Specify the value of amplitude rate.


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