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

Moves a Node object to a parabolic position simulating a jump movement by modifying it's position attribute. More...

Inherits JumpBy.

Public Member Functions

virtual void startWithTarget (Node *target) override
 override ActionInterval.
 
local startWithTarget ( local target)
 override ActionInterval.
 
virtual JumpToclone () const override
 override ActionInterval.
 
local clone ()
 override ActionInterval.
 
virtual JumpToreverse (void) const override
 override ActionInterval.
 
var reverse ()
 override ActionInterval.
 
local reverse ()
 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 JumpTocreate (float duration, const Vec2 &position, float height, int jumps)
 Creates the JumpTo action with duration, destination position, jumping height and number of jumps. More...
 
- Static Public Member Functions inherited from JumpBy
static JumpBycreate (float duration, const Vec2 &position, float height, int jumps)
 Creates the JumpBy action with duration, jumping distance, jumping height and number of jumps. 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

Moves a Node object to a parabolic position simulating a jump movement by modifying it's position attribute.

Member Function Documentation

static JumpTo* create ( float  duration,
const Vec2 position,
float  height,
int  jumps 
)
static

Creates the JumpTo action with duration, destination position, jumping height and number of jumps.

Duration time, in seconds. The jumping destination position. The jumping height. The jumping times. An autoreleased JumpTo object.

var create ( var  duration,
var  position,
var  height,
var  jumps 
)
static

Creates the JumpTo action with duration, destination position, jumping height and number of jumps.

Duration time, in seconds. The jumping destination position. The jumping height. The jumping times. An autoreleased JumpTo object.

local create ( local  duration,
local  position,
local  height,
local  jumps 
)
static

Creates the JumpTo action with duration, destination position, jumping height and number of jumps.

Duration time, in seconds. The jumping destination position. The jumping height. The jumping times. An autoreleased JumpTo object.


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