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

Rotates a Node object clockwise a number of degrees by modifying it's rotation attribute. More...

Inherits ActionInterval.

Public Member Functions

virtual RotateByclone () const override
 override ActionInterval.
 
virtual RotateByreverse (void) const override
 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 RotateBycreate (float duration, float deltaAngle)
 Creates the action with duration and delta angle to rotate. More...
 
var create ( var duration, var deltaAngle)
 Creates the action with duration and delta angle to rotate. More...
 
local create ( local duration, local deltaAngle)
 Creates the action with duration and delta angle to rotate. More...
 
static RotateBycreate (float duration, float deltaAngleZ_X, float deltaAngleZ_Y)
 Creates the action with separate rotation angles. More...
 
var create ( var duration, var deltaAngleZ_X, var deltaAngleZ_Y)
 Creates the action with separate rotation angles. More...
 
static RotateBycreate (float duration, const Vec3 &deltaAngle3D)
 Creates the action with 3D rotation angles. More...
 
local create ( local duration, local deltaAngle3D)
 Creates the action with 3D rotation angles. More...
 

Protected Member Functions

bool initWithDuration (float duration, float deltaAngle)
 initializes the action Duration time, in seconds. More...
 
var initWithDuration ( var duration, var deltaAngle)
 initializes the action Duration time, in seconds. More...
 
local initWithDuration ( local duration, local deltaAngle)
 initializes the action Duration time, in seconds. More...
 
bool initWithDuration (float duration, float deltaAngleZ_X, float deltaAngleZ_Y)
bool initWithDuration (float duration, const Vec3 &deltaAngle3D)
- 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

Rotates a Node object clockwise a number of degrees by modifying it's rotation attribute.

Member Function Documentation

static RotateBy* create ( float  duration,
float  deltaAngle 
)
static

Creates the action with duration and delta angle to rotate.

Duration time, in seconds. Delta angle in degrees. An autoreleased RotateBy object.

var create ( var  duration,
var  deltaAngle 
)
static

Creates the action with duration and delta angle to rotate.

Duration time, in seconds. Delta angle in degrees. An autoreleased RotateBy object.

local create ( local  duration,
local  deltaAngle 
)
static

Creates the action with duration and delta angle to rotate.

Duration time, in seconds. Delta angle in degrees. An autoreleased RotateBy object.

static RotateBy* create ( float  duration,
float  deltaAngleZ_X,
float  deltaAngleZ_Y 
)
static

Creates the action with separate rotation angles.

Duration time, in seconds. Delta angle x in degrees. Delta angle y n degreesCW. An autoreleased RotateBy object. The physics body contained in Node doesn't support rotate with different x and y angle.

var create ( var  duration,
var  deltaAngleZ_X,
var  deltaAngleZ_Y 
)
static

Creates the action with separate rotation angles.

Duration time, in seconds. Delta angle x in degrees. Delta angle y n degreesCW. An autoreleased RotateBy object. The physics body contained in Node doesn't support rotate with different x and y angle.

local create ( local  duration,
local  deltaAngleZ_X,
local  deltaAngleZ_Y 
)
static

Creates the action with separate rotation angles.

Duration time, in seconds. Delta angle x in degrees. Delta angle y n degreesCW. An autoreleased RotateBy object. The physics body contained in Node doesn't support rotate with different x and y angle.

static RotateBy* create ( float  duration,
const Vec3 deltaAngle3D 
)
static

Creates the action with 3D rotation angles.

Duration time, in seconds. A Vec3 angle. An autoreleased RotateBy object.

var create ( var  duration,
var  deltaAngle3D 
)
static

Creates the action with 3D rotation angles.

Duration time, in seconds. A Vec3 angle. An autoreleased RotateBy object.

local create ( local  duration,
local  deltaAngle3D 
)
static

Creates the action with 3D rotation angles.

Duration time, in seconds. A Vec3 angle. An autoreleased RotateBy object.

bool initWithDuration ( float  duration,
float  deltaAngle 
)
protected

initializes the action Duration time, in seconds.

Delta angle in degrees. Return true if initialized successfully, otherwise return false.

var initWithDuration ( var  duration,
var  deltaAngle 
)
protected

initializes the action Duration time, in seconds.

Delta angle in degrees. Return true if initialized successfully, otherwise return false.

local initWithDuration ( local  duration,
local  deltaAngle 
)
protected

initializes the action Duration time, in seconds.

Delta angle in degrees. Return true if initialized successfully, otherwise return false.

bool initWithDuration ( float  duration,
float  deltaAngleZ_X,
float  deltaAngleZ_Y 
)
protected
Warning
The physics body contained in Node doesn't support rotate with different x and y angle. Duration time, in seconds. Delta angle x in degrees. Delta angle y n degreesCW. Return true if initialized successfully, otherwise return false.
var initWithDuration ( var  duration,
var  deltaAngleZ_X,
var  deltaAngleZ_Y 
)
protected
Warning
The physics body contained in Node doesn't support rotate with different x and y angle. Duration time, in seconds. Delta angle x in degrees. Delta angle y n degreesCW. Return true if initialized successfully, otherwise return false.
local initWithDuration ( local  duration,
local  deltaAngleZ_X,
local  deltaAngleZ_Y 
)
protected
Warning
The physics body contained in Node doesn't support rotate with different x and y angle. Duration time, in seconds. Delta angle x in degrees. Delta angle y n degreesCW. Return true if initialized successfully, otherwise return false.
bool initWithDuration ( float  duration,
const Vec3 deltaAngle3D 
)
protected
Parameters
durationDuration time, in seconds. A Vec3 angle. Return true if initialized successfully, otherwise return false.
var initWithDuration ( var  duration,
var  deltaAngle3D 
)
protected
Parameters
durationDuration time, in seconds. A Vec3 angle. Return true if initialized successfully, otherwise return false.
local initWithDuration ( local  duration,
local  deltaAngle3D 
)
protected
Parameters
durationDuration time, in seconds. A Vec3 angle. Return true if initialized successfully, otherwise return false.

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