cocos2d-x  3.0alpha1
 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

 ComController (void)
 ComController ()
virtual ~ComController (void)
virtual bool init ()
virtual void onEnter ()
virtual void onExit () override
virtual void update (float delta) override
local update ( local delta)
virtual bool isEnabled () const override
local isEnabled ()
virtual void setEnabled (bool b) override
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)
var setName ( var pName)
local setName ( local pName)
void setOwner (Node *pOwner)
var setOwner ( var pOwner)
local setOwner ( local 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
var isKeypadEnabled ()
virtual void setKeypadEnabled (bool value)
virtual void setTouchMode (cocos2d::Touch::DispatchMode mode)
virtual
cocos2d::Touch::DispatchMode 
getTouchMode () const
virtual void setTouchPriority (int priority)
virtual int getTouchPriority () const
var getTouchPriority ()
virtual
CC_DEPRECATED_ATTRIBUTE void 
didAccelerate (cocos2d::Acceleration *accelerationValue) final
virtual
CC_DEPRECATED_ATTRIBUTE bool 
ccTouchBegan (cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final
virtual
CC_DEPRECATED_ATTRIBUTE void 
ccTouchMoved (cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final
virtual
CC_DEPRECATED_ATTRIBUTE void 
ccTouchEnded (cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final
virtual
CC_DEPRECATED_ATTRIBUTE void 
ccTouchCancelled (cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final
virtual
CC_DEPRECATED_ATTRIBUTE void 
ccTouchesBegan (cocos2d::Set *pTouches, cocos2d::Event *pEvent) final
virtual
CC_DEPRECATED_ATTRIBUTE void 
ccTouchesMoved (cocos2d::Set *pTouches, cocos2d::Event *pEvent) final
virtual
CC_DEPRECATED_ATTRIBUTE void 
ccTouchesEnded (cocos2d::Set *pTouches, cocos2d::Event *pEvent) final
virtual
CC_DEPRECATED_ATTRIBUTE void 
ccTouchesCancelled (cocos2d::Set *pTouches, cocos2d::Event *pEvent) final
virtual void onAcceleration (cocos2d::Acceleration *acc, cocos2d::Event *event)
virtual void onKeyPressed (cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event *event)
virtual void onKeyReleased (cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event *event)
virtual bool onTouchBegan (cocos2d::Touch *touch, cocos2d::Event *event)
virtual void onTouchMoved (cocos2d::Touch *touch, cocos2d::Event *event)
virtual void onTouchEnded (cocos2d::Touch *touch, cocos2d::Event *event)
virtual void onTouchCancelled (cocos2d::Touch *touch, cocos2d::Event *event)
virtual void onTouchesBegan (const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *event)
virtual void onTouchesMoved (const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *event)
virtual void onTouchesEnded (const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *event)
virtual void onTouchesCancelled (const std::vector< cocos2d::Touch * > &touches, cocos2d::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 ()

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 Member Functions inherited from Component
 Component (void)
 ctor ()
 Component ()
- Protected Member Functions inherited from InputDelegate
 InputDelegate (void)
virtual ~InputDelegate (void)
- Protected Attributes inherited from Component
Node_owner
std::string _name
var _name
local _name
bool _enabled
var _enabled
local _enabled
- Protected Attributes inherited from InputDelegate
bool _touchEnabled
var _touchEnabled
cocos2d::EventListener_touchListener
var _touchListener
bool _accelerometerEnabled
var _accelerometerEnabled
cocos2d::EventListener_accelerometerListener
var _accelerometerListener
bool _keypadEnabled
cocos2d::EventListener_keyboardListener
var _keyboardListener

Constructor & Destructor Documentation

ComController ( void  )
var ctor (   )
local ComController (   )
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
overridevirtual

Reimplemented from Component.

var isEnabled ( )
overridevirtual

Reimplemented from Component.

local isEnabled ( )
overridevirtual

Reimplemented from Component.

virtual void onEnter ( )
virtual

Reimplemented from Component.

virtual void onExit ( )
overridevirtual

Reimplemented from Component.

virtual void setEnabled ( bool  b)
overridevirtual

Reimplemented from Component.

var setEnabled ( var  b)
overridevirtual

Reimplemented from Component.

local setEnabled ( local  b)
overridevirtual

Reimplemented from Component.

virtual void update ( float  delta)
overridevirtual

Reimplemented from Component.

var update ( var  delta)
overridevirtual

Reimplemented from Component.

local update ( local  delta)
overridevirtual

Reimplemented from Component.


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