cocos2d-x  v3.6
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Core

Classes

class  AudioEngine
 Offers a interface to play audio. More...
 
class  SimpleAudioEngine
 Offers a very simple interface to play background music & sound effects. More...
 
class  HttpClient
 Singleton that handles asynchrounous http requests. More...
 
class  HttpRequest
 Defines the object which users must packed for HttpClient::send(HttpRequest*) method. More...
 
class  HttpRequest::_prxy
 This sub class is just for migration SEL_CallFuncND to SEL_HttpResponse,someday this way will be removed. More...
 
class  HttpResponse
 defines the object which users will receive at onHttpCompleted(sender, HttpResponse) callback. More...
 
class  SocketIO
 Singleton and wrapper class to provide static creation method as well as registry of all sockets. More...
 
class  SocketIO::SIODelegate
 The delegate class to process socket.io events. More...
 
class  SIOClient
 A single connection to a socket.io endpoint. More...
 
class  WebSocket
 WebSocket is wrapper of the libwebsockets-protocol, let the develop could call the websocket easily. More...
 
struct  WebSocket::Data
 Data structure for message. More...
 
class  WebSocket::Delegate
 The delegate class is used to process websocket events. More...
 
class  PhysicsBody
 A body affect by physics. More...
 
class  PhysicsContact
 Contact infomation. More...
 
class  PhysicsContactPreSolve
 Presolve value generated when onContactPreSolve called. More...
 
class  PhysicsContactPostSolve
 Postsolve value generated when onContactPostSolve called. More...
 
class  EventListenerPhysicsContact
 Contact listener. More...
 
class  EventListenerPhysicsContactWithBodies
 This event listener only be called when bodyA and bodyB have contacts. More...
 
class  EventListenerPhysicsContactWithShapes
 This event listener only be called when shapeA and shapeB have contacts. More...
 
class  EventListenerPhysicsContactWithGroup
 This event listener only be called when shapeA or shapeB is in the group your specified. More...
 
class  PhysicsHelper
 A physics helper class. More...
 
class  PhysicsJoint
 An PhysicsJoint object connects two physics bodies together. More...
 
class  PhysicsJointFixed
 A fixed joint fuses the two bodies together at a reference point. More...
 
class  PhysicsJointLimit
 A limit joint imposes a maximum distance between the two bodies, as if they were connected by a rope. More...
 
class  PhysicsJointPin
 A pin joint allows the two bodies to independently rotate around the anchor point as if pinned together. More...
 
class  PhysicsJointDistance
 Set the fixed distance with two bodies. More...
 
class  PhysicsJointSpring
 Connecting two physics bodies together with a spring. More...
 
class  PhysicsJointGroove
 Attach body a to a line, and attach body b to a dot. More...
 
class  PhysicsJointRotarySpring
 Likes a spring joint, but works with rotary. More...
 
class  PhysicsJointRotaryLimit
 Likes a limit joint, but works with rotary. More...
 
class  PhysicsJointRatchet
 Works like a socket wrench. More...
 
class  PhysicsJointGear
 Keeps the angular velocity ratio of a pair of bodies constant. More...
 
class  PhysicsJointMotor
 Keeps the relative angular velocity of a pair of bodies constant. More...
 
class  PhysicsShape
 A shape for body. More...
 
class  PhysicsShapeCircle
 A circle shape. More...
 
class  PhysicsShapePolygon
 A polygon shape. More...
 
class  PhysicsShapeBox
 A box shape. More...
 
class  PhysicsShapeEdgeSegment
 A segment shape. More...
 
class  PhysicsShapeEdgePolygon
 An edge polygon shape. More...
 
class  PhysicsShapeEdgeBox
 An edge box shape. More...
 
class  PhysicsShapeEdgeChain
 A chain shape. More...
 
class  PhysicsWorld
 An PhysicsWorld object simulates collisions and other physical properties. More...
 
class  PhysicsDebugDraw
 A physics helper class. More...
 
class  GLView
 By GLView you can operate the frame information of EGL view through some function. More...
 

Enumerations

enum  AudioState
 AudioState enum,all possible states of an audio instance. More...
 
enum  Type
 The HttpRequest type enum used in the HttpRequest::setRequestType.
 
enum  ErrorCode { , CONNECTION_FAILURE, UNKNOWN }
 ErrorCode enum used to represent the error in the websocket. More...
 
enum  State { , OPEN, CLOSING, CLOSED }
 State enum used to represent the Websocket state. More...
 
enum  Platform { ,
  OS_LINUX, OS_MAC, OS_ANDROID, OS_IPHONE,
  OS_IPAD, OS_BLACKBERRY, OS_NACL, OS_EMSCRIPTEN,
  OS_TIZEN, OS_WINRT, OS_WP8
}
 Since WINDOWS and ANDROID are defined as macros, we could not just use these keywords in enumeration(Platform). More...
 

Functions

void  (const std::string &fullpath="")
 Local Storage support for the JS Bindings. More...
 
void  ()
 Frees the allocated resources. More...
 
void  (const std::string &key, const std::string &value)
 Sets an item in the JS. More...
 

Detailed Description

Enumeration Type Documentation

enum AudioState
strong

AudioState enum,all possible states of an audio instance.

var AudioState
strong

AudioState enum,all possible states of an audio instance.

local AudioState
strong

AudioState enum,all possible states of an audio instance.

enum ErrorCode
strong

ErrorCode enum used to represent the error in the websocket.

Enumerator
CONNECTION_FAILURE 

< value 0

UNKNOWN 

< value 1

var ErrorCode
strong

ErrorCode enum used to represent the error in the websocket.

Enumerator
CONNECTION_FAILURE 

< value 0

UNKNOWN 

< value 1

local ErrorCode
strong

ErrorCode enum used to represent the error in the websocket.

Enumerator
CONNECTION_FAILURE 

< value 0

UNKNOWN 

< value 1

enum State
strong

State enum used to represent the Websocket state.

Enumerator
OPEN 

< value 0

CLOSING 

< value 1

CLOSED 

< value 2

var State
strong

State enum used to represent the Websocket state.

Enumerator
OPEN 

< value 0

CLOSING 

< value 1

CLOSED 

< value 2

local State
strong

State enum used to represent the Websocket state.

Enumerator
OPEN 

< value 0

CLOSING 

< value 1

CLOSED 

< value 2

enum Platform
strong

Since WINDOWS and ANDROID are defined as macros, we could not just use these keywords in enumeration(Platform).

Therefore, 'OS_' prefix is added to avoid conflicts with the definitions of system macros.

Enumerator
OS_LINUX 

Windows.

OS_MAC 

Linux.

OS_ANDROID 

Mac.

OS_IPHONE 

Android.

OS_IPAD 

Iphone.

OS_BLACKBERRY 

Ipad.

OS_NACL 

BLACKBERRY.

OS_EMSCRIPTEN 

Nacl.

OS_TIZEN 

Emscripten.

OS_WINRT 

Tizen.

OS_WP8 

Winrt.

WP8

var Platform
strong

Since WINDOWS and ANDROID are defined as macros, we could not just use these keywords in enumeration(Platform).

Therefore, 'OS_' prefix is added to avoid conflicts with the definitions of system macros.

Enumerator
OS_LINUX 

Windows.

OS_MAC 

Linux.

OS_ANDROID 

Mac.

OS_IPHONE 

Android.

OS_IPAD 

Iphone.

OS_BLACKBERRY 

Ipad.

OS_NACL 

BLACKBERRY.

OS_EMSCRIPTEN 

Nacl.

OS_TIZEN 

Emscripten.

OS_WINRT 

Tizen.

OS_WP8 

Winrt.

WP8

local Platform
strong

Since WINDOWS and ANDROID are defined as macros, we could not just use these keywords in enumeration(Platform).

Therefore, 'OS_' prefix is added to avoid conflicts with the definitions of system macros.

Enumerator
OS_LINUX 

Windows.

OS_MAC 

Linux.

OS_ANDROID 

Mac.

OS_IPHONE 

Android.

OS_IPAD 

Iphone.

OS_BLACKBERRY 

Ipad.

OS_NACL 

BLACKBERRY.

OS_EMSCRIPTEN 

Nacl.

OS_TIZEN 

Emscripten.

OS_WINRT 

Tizen.

OS_WP8 

Winrt.

WP8

Function Documentation

void localStorageInit ( const std::string &  fullpath = "")

Local Storage support for the JS Bindings.

Initializes the database. If path is null, it will create an in-memory DB.

var localStorageInit ( var  fullpath = "")

Local Storage support for the JS Bindings.

Initializes the database. If path is null, it will create an in-memory DB.

local localStorageInit ( local  fullpath = "")

Local Storage support for the JS Bindings.

Initializes the database. If path is null, it will create an in-memory DB.

void localStorageFree ( )

Frees the allocated resources.

var localStorageFree ( )

Frees the allocated resources.

local localStorageFree ( )

Frees the allocated resources.

void localStorageSetItem ( const std::string &  key,
const std::string &  value 
)

Sets an item in the JS.

var localStorageSetItem ( var  key,
var  value 
)

Sets an item in the JS.

local localStorageSetItem ( local  key,
local  value 
)

Sets an item in the JS.