Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
JumpTo Class Reference

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

#include <ActionInterval.h>

Inherits JumpBy.

Public Member Functions

bool initWithDuration (float duration, const Vec2 &position, float height, int jumps)
 initializes the action
 
- Public Member Functions inherited from JumpBy
virtual void update (float time) override
 
bool initWithDuration (float duration, const Vec2 &position, float height, int jumps)
 initializes the action
 
- Public Member Functions inherited from ActionInterval
float getElapsed ()
 How many seconds had elapsed since the actions started to run.
 
void setAmplitudeRate (float amp)
 Sets the amplitude rate, extension in GridAction.
 
float getAmplitudeRate ()
 Gets the amplitude rate, extension in GridAction.
 
virtual void step (float dt) override
 
bool initWithDuration (float d)
 initializes the action
 

Static Public Member Functions

static JumpTocreate (float duration, const Vec2 &position, float height, int jumps)
 Creates the action.
 
- Static Public Member Functions inherited from JumpBy
static JumpBycreate (float duration, const Vec2 &position, float height, int jumps)
 Creates the action.
 

Detailed Description

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

Member Function Documentation

◆ create()

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

Creates the action.

Parameters
durationDuration time, in seconds.
positionThe jumping destination position.
heightThe jumping height.
jumpsThe jumping times.
Returns
An autoreleased JumpTo object.

◆ initWithDuration()

bool initWithDuration ( float duration,
const Vec2 & position,
float height,
int jumps )

initializes the action

Parameters
durationIn seconds.

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