Cocos2d-x  4.0.0
Public Member Functions | Static Public Member Functions | List of all members
FlipY3D Class Reference

FlipY3D action. More...

Inherits FlipX3D.

Public Member Functions

virtual void update (float time) override
 Called once per frame.
 
virtual FlipY3Dclone () const override
 Returns a clone of action.
 

Static Public Member Functions

static FlipY3Dcreate (float duration)
 Create the action with duration.
 
- Static Public Member Functions inherited from FlipX3D
static FlipX3Dcreate (float duration)
 Create the action with duration.
 

Additional Inherited Members

- Public Attributes inherited from Ref
unsigned int _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 
void * _scriptObject
 scriptObject, support for swift
 
bool _rooted
 When true, it means that the object was already rooted.
 
- Static Public Attributes inherited from Action
static const int INVALID_TAG = -1
 Default tag used for all the actions.
 
- Protected Member Functions inherited from FlipX3D
bool initWithDuration (float duration)
 Initializes an action with duration.
 
virtual bool initWithSize (const Size &gridSize, float duration)
 Initializes an action with duration and grid size.
 

Detailed Description

FlipY3D action.

This action is used for flipping the target node on the y axis.

Member Function Documentation

static FlipY3D* create ( float  duration)
static

Create the action with duration.

Parameters
durationSpecify the duration of the FlipY3D action. It's a value in seconds.
Returns
If the creation success, return a pointer of FlipY3D action; otherwise, return nil.
virtual void update ( float  time)
overridevirtual

Called once per frame.

time a value between 0 and 1.

For example:

  • 0 Means that the action just started.
  • 0.5 Means that the action is in the middle.
  • 1 Means that the action is over.
Parameters
timeA value between 0 and 1.

Reimplemented from FlipX3D.

virtual FlipY3D* clone ( ) const
overridevirtual

Returns a clone of action.

Returns
A clone action.

Reimplemented from FlipX3D.


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