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

An action that moves the target with a cubic Bezier curve to a destination point. More...

Inherits BezierBy.

Public Member Functions

virtual void startWithTarget (Node *target) override
 override BezierBy.
 
var startWithTarget ( var target)
 override BezierBy.
 
local startWithTarget ( local target)
 override BezierBy.
 
virtual BezierToclone () const override
 override BezierBy.
 
local clone ()
 override BezierBy.
 
virtual BezierToreverse (void) const override
 override BezierBy.
 
var reverse ()
 override BezierBy.
 
local reverse ()
 override BezierBy.
 
- Public Member Functions inherited from BezierBy
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 BezierTocreate (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...
 
- Static Public Member Functions inherited from BezierBy
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 BezierBy
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 to a destination point.

Member Function Documentation

static BezierTo* 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 BezierTo 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 BezierTo 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 BezierTo 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: