cocos2d-x  3.0rc1
 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 Ref

Public Member Functions

 ComController (void)
virtual ~ComController (void)
virtual bool init () override
virtual void onEnter () override
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 bool serialize (void *r)
const std::string & getName () const
void setName (const std::string &name)
void setOwner (Node *pOwner)
NodegetOwner () const
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Release the ownership immediately. More...
 
local release ()
 Release the ownership immediately. More...
 
Refautorelease ()
 Release the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
- 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 cocos2d::RefcreateInstance (void)
local createInstance ()
static ComControllercreate (void)
var create ()
local create ()
- Static Public Member Functions inherited from Component
static Componentcreate (void)

Static Public Attributes

static
cocostudio::ObjectFactory::TInfo 
Type
var Type
local Type

Additional Inherited Members

- Protected Member Functions inherited from Component
 Component (void)
- Protected Member Functions inherited from InputDelegate
 InputDelegate (void)
virtual ~InputDelegate (void)
- Protected Attributes inherited from Component
Node_owner
std::string _name
bool _enabled
ccScriptType _scriptType
 type of script binding, lua or javascript More...
 
- 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
static cocos2d::Ref* createInstance ( void  )
static
var createInstance (   )
static
local createInstance (   )
static
virtual bool init ( )
overridevirtual

Reimplemented from Component.

var init ( )
overridevirtual

Reimplemented from Component.

local init ( )
overridevirtual

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 ( )
overridevirtual

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.

Member Data Documentation

var Type
static
local Type
static

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