cocos2d-x  3.0-alpha0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ComController Class Reference

#include <CCComController.h>

Inheritance diagram for ComController:
Component InputDelegate Object

Public Member Functions

virtual ~ComController (void)
virtual bool init ()
virtual void onEnter ()
virtual void onExit ()
virtual void update (float delta)
virtual bool isEnabled () const
virtual void setEnabled (bool b)
var setEnabled ( var b)
local setEnabled ( local b)
- Public Member Functions inherited from Component
virtual ~Component (void)
virtual void serialize (void *r)
local serialize ( local r)
const char * getName () const
void setName (const char *pName)
void setOwner (Node *pOwner)
NodegetOwner () const
- Public Member Functions inherited from Object
 Object ()
 Constructor. More...
 
virtual ~Object ()
void release ()
 Release the ownership immediately. More...
 
void retain ()
 Retains the ownership. More...
 
Objectautorelease ()
 Release the ownership sometime soon automatically. More...
 
bool isSingleReference () const
 Returns a boolean value that indicates whether there is only one reference to the object. More...
 
unsigned int retainCount () const
 Returns the object's current reference count. More...
 
virtual bool isEqual (const Object *object)
 Returns a boolean value that indicates whether this object and a given object are equal. More...
 
virtual void acceptVisitor (DataVisitor &visitor)
- Public Member Functions inherited from InputDelegate
virtual bool isTouchEnabled () const
virtual void setTouchEnabled (bool value)
virtual bool isAccelerometerEnabled () const
virtual void setAccelerometerEnabled (bool value)
virtual bool isKeypadEnabled () const
virtual void setKeypadEnabled (bool value)
virtual void setTouchMode (Touch::DispatchMode mode)
virtual Touch::DispatchMode getTouchMode () const
virtual void setTouchPriority (int priority)
virtual int getTouchPriority () const
virtual
CC_DEPRECATED_ATTRIBUTE void 
didAccelerate (Acceleration *accelerationValue) final
local didAccelerate ( local accelerationValue)
virtual
CC_DEPRECATED_ATTRIBUTE bool 
ccTouchBegan (Touch *pTouch, Event *pEvent) final
virtual
CC_DEPRECATED_ATTRIBUTE void 
ccTouchMoved (Touch *pTouch, Event *pEvent) final
local ccTouchMoved ( local pTouch, local pEvent)
virtual
CC_DEPRECATED_ATTRIBUTE void 
ccTouchEnded (Touch *pTouch, Event *pEvent) final
var ccTouchEnded ( var pTouch, var pEvent)
local ccTouchEnded ( local pTouch, local pEvent)
virtual
CC_DEPRECATED_ATTRIBUTE void 
ccTouchCancelled (Touch *pTouch, Event *pEvent) final
local ccTouchCancelled ( local pTouch, local pEvent)
virtual
CC_DEPRECATED_ATTRIBUTE void 
ccTouchesBegan (Set *pTouches, Event *pEvent) final
local ccTouchesBegan ( local pTouches, local pEvent)
virtual
CC_DEPRECATED_ATTRIBUTE void 
ccTouchesMoved (Set *pTouches, Event *pEvent) final
local ccTouchesMoved ( local pTouches, local pEvent)
virtual
CC_DEPRECATED_ATTRIBUTE void 
ccTouchesEnded (Set *pTouches, Event *pEvent) final
local ccTouchesEnded ( local pTouches, local pEvent)
virtual
CC_DEPRECATED_ATTRIBUTE void 
ccTouchesCancelled (Set *pTouches, Event *pEvent) final
local ccTouchesCancelled ( local pTouches, local pEvent)
virtual void onAcceleration (Acceleration *acc, Event *event)
virtual void onKeyPressed (EventKeyboard::KeyCode keyCode, Event *event)
local onKeyPressed ( local keyCode, local event)
virtual void onKeyReleased (EventKeyboard::KeyCode keyCode, Event *event)
var onKeyReleased ( var keyCode, var event)
local onKeyReleased ( local keyCode, local event)
virtual bool onTouchBegan (Touch *touch, Event *event)
virtual void onTouchMoved (Touch *touch, Event *event)
var onTouchMoved ( var touch, var event)
local onTouchMoved ( local touch, local event)
virtual void onTouchEnded (Touch *touch, Event *event)
var onTouchEnded ( var touch, var event)
local onTouchEnded ( local touch, local event)
virtual void onTouchCancelled (Touch *touch, Event *event)
virtual void onTouchesBegan (const std::vector< Touch * > &touches, Event *event)
var onTouchesBegan ( var touches, var event)
local onTouchesBegan ( local touches, local event)
virtual void onTouchesMoved (const std::vector< Touch * > &touches, Event *event)
local onTouchesMoved ( local touches, local event)
virtual void onTouchesEnded (const std::vector< Touch * > &touches, Event *event)
local onTouchesEnded ( local touches, local event)
virtual void onTouchesCancelled (const std::vector< Touch * > &touches, Event *event)

Static Public Member Functions

static ComControllercreate (void)
var create ()
local create ()
- Static Public Member Functions inherited from Component
static Componentcreate (void)
var create ()
local create ()

Protected Member Functions

 ComController (void)
- Protected Member Functions inherited from Component
 Component (void)
- Protected Member Functions inherited from InputDelegate
 InputDelegate (void)
virtual ~InputDelegate (void)

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID More...
 
int _luaID
 Lua reference id. More...
 
- Protected Attributes inherited from Component
Node_owner
std::string _name
var _name
local _name
bool _enabled
- Protected Attributes inherited from InputDelegate
bool _touchEnabled
EventListener_touchListener
var _touchListener
local _touchListener
bool _accelerometerEnabled
var _accelerometerEnabled
local _accelerometerEnabled
EventListener_accelerometerListener
var _accelerometerListener
local _accelerometerListener
bool _keypadEnabled
EventListener_keyboardListener
var _keyboardListener
local _keyboardListener

Constructor & Destructor Documentation

ComController ( void  )
protected
var ComController (   )
protected
local ComController (   )
protected
virtual ~ComController ( void  )
virtual

Member Function Documentation

static ComController* create ( void  )
static
var create (   )
static
local create (   )
static
virtual bool init ( )
virtual

Reimplemented from Component.

var init ( )
virtual

Reimplemented from Component.

local init ( )
virtual

Reimplemented from Component.

virtual bool isEnabled ( ) const
virtual

Reimplemented from Component.

var isEnabled ( )
virtual

Reimplemented from Component.

local isEnabled ( )
virtual

Reimplemented from Component.

virtual void onEnter ( )
virtual

Reimplemented from Component.

virtual void onExit ( )
virtual

Reimplemented from Component.

virtual void setEnabled ( bool  b)
virtual

Reimplemented from Component.

var setEnabled ( var  b)
virtual

Reimplemented from Component.

local setEnabled ( local  b)
virtual

Reimplemented from Component.

virtual void update ( float  delta)
virtual

Reimplemented from Component.

var update ( var  delta)
virtual

Reimplemented from Component.

local update ( local  delta)
virtual

Reimplemented from Component.


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