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

An action that moves the target with a cubic Bezier curve by a certain distance. More...

Inherits ActionInterval.

Inherited by BezierTo.

Public Member Functions

virtual BezierByclone () const override
 override ActionInterval.
 
local clone ()
 override ActionInterval.
 
virtual BezierByreverse (void) const override
 override ActionInterval.
 
local reverse ()
 override ActionInterval.
 
virtual void startWithTarget (Node *target) override
 override ActionInterval.
 
local startWithTarget ( local target)
 override ActionInterval.
 
virtual void update (float time) override
 override ActionInterval.
 
var update ( var time)
 override ActionInterval.
 
local update ( local time)
 override ActionInterval.
 
- 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 BezierBycreate (float t, const ccBezierConfig &c)
 Creates the action with a duration and a bezier configuration. More...
 
var create ( var t, var c)
 Creates the action with a duration and a bezier configuration. More...
 
local create ( local t, local c)
 Creates the action with a duration and a bezier configuration. More...
 

Protected Member Functions

bool initWithDuration (float t, const ccBezierConfig &c)
 initializes the action with a duration and a bezier configuration Duration time, in seconds. More...
 
var initWithDuration ( var t, var c)
 initializes the action with a duration and a bezier configuration Duration time, in seconds. More...
 
local initWithDuration ( local t, local c)
 initializes the action with a duration and a bezier configuration Duration time, in seconds. 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

An action that moves the target with a cubic Bezier curve by a certain distance.

Member Function Documentation

static BezierBy* create ( float  t,
const ccBezierConfig c 
)
static

Creates the action with a duration and a bezier configuration.

Duration time, in seconds. Bezier config. An autoreleased BezierBy object.

var create ( var  t,
var  c 
)
static

Creates the action with a duration and a bezier configuration.

Duration time, in seconds. Bezier config. An autoreleased BezierBy object.

local create ( local  t,
local  c 
)
static

Creates the action with a duration and a bezier configuration.

Duration time, in seconds. Bezier config. An autoreleased BezierBy object.

bool initWithDuration ( float  t,
const ccBezierConfig c 
)
protected

initializes the action with a duration and a bezier configuration Duration time, in seconds.

Bezier config. Return true if successfully initialized, otherwise return false

var initWithDuration ( var  t,
var  c 
)
protected

initializes the action with a duration and a bezier configuration Duration time, in seconds.

Bezier config. Return true if successfully initialized, otherwise return false

local initWithDuration ( local  t,
local  c 
)
protected

initializes the action with a duration and a bezier configuration Duration time, in seconds.

Bezier config. Return true if successfully initialized, otherwise return false


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