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

A Transition that supports orientation like. More...

Inherits TransitionScene.

Inherited by TransitionFlipAngular, TransitionFlipX, TransitionFlipY, TransitionZoomFlipAngular, TransitionZoomFlipX, and TransitionZoomFlipY.

Static Public Member Functions

static TransitionSceneOrientedcreate (float t, Scene *scene, Orientation orientation)
 Creates a transition with duration, incoming scene and orientation.
 
- Static Public Member Functions inherited from TransitionScene
static TransitionScenecreate (float t, Scene *scene)
 Creates a base transition with duration and incoming scene.
 
- Static Public Member Functions inherited from Scene
static Scenecreate ()
 Creates a new Scene object.
 
static ScenecreateWithSize (const Size &size)
 Creates a new Scene object with a predefined Size.
 
static ScenecreateWithPhysics ()
 Create a scene with physics.
 
- Static Public Member Functions inherited from Node
static Nodecreate ()
 Allocates and initializes a node.
 
static int getAttachedNodeCount ()
 Gets count of nodes those are attached to scene graph.
 
template<typename _T >
static void sortNodes (cocos2d::Vector< _T * > &nodes)
 Sorts helper function.
 

Protected Member Functions

bool initWithDuration (float t, Scene *scene, Orientation orientation)
 initializes a transition with duration and incoming scene
 
- Protected Member Functions inherited from TransitionScene
bool initWithDuration (float t, Scene *scene)
 initializes a transition with duration and incoming scene
 

Additional Inherited Members

- Public Types inherited from TransitionScene
enum  Orientation { LEFT_OVER = 0, RIGHT_OVER = 1, UP_OVER = 0, DOWN_OVER = 1 }
 Orientation Type used by some transitions. More...
 
- Public Member Functions inherited from TransitionScene
void finish ()
 Called after the transition finishes.
 
void hideOutShowIn ()
 Used by some transitions to hide the outer scene.
 
virtual void draw (Renderer *renderer, const Mat4 &transform, uint32_t flags) override
 Override this method to draw your own node.
 
virtual void onEnter () override
 Event callback that is invoked every time when Node enters the 'stage'.
 
virtual void onExit () override
 Event callback that is invoked every time the Node leaves the 'stage'.
 
virtual void cleanup () override
 Stops all running actions and schedulers.
 
- 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 Node
static const int INVALID_TAG = -1
 Default tag used for all the nodes.
 

Detailed Description

A Transition that supports orientation like.

Possible orientation: LeftOver, RightOver, UpOver, DownOver

Member Function Documentation

static TransitionSceneOriented* create ( float  t,
Scene scene,
Orientation  orientation 
)
static

Creates a transition with duration, incoming scene and orientation.

Parameters
tDuration time, in seconds.
sceneA given scene.
orientationA given orientation: LeftOver, RightOver, UpOver, DownOver.
Returns
A autoreleased TransitionSceneOriented object.

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