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

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

Inherits ActionInterval.

Inherited by JumpTo.

Public Member Functions

virtual JumpByclone () const override
 override ActionInterval.
 
local clone ()
 override ActionInterval.
 
virtual JumpByreverse (void) const override
 override Action.
 
var reverse ()
 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 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 simulating a parabolic jump movement by modifying it's position attribute.

Member Function Documentation

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

Creates the JumpBy action with duration, jumping distance, jumping height and number of jumps.

Duration time, in seconds. The jumping distance. The jumping height. The jumping times. An autoreleased JumpBy object.

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

Creates the JumpBy action with duration, jumping distance, jumping height and number of jumps.

Duration time, in seconds. The jumping distance. The jumping height. The jumping times. An autoreleased JumpBy object.

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

Creates the JumpBy action with duration, jumping distance, jumping height and number of jumps.

Duration time, in seconds. The jumping distance. The jumping height. The jumping times. An autoreleased JumpBy object.


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