cocos2d-x  3.0-beta2
 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)
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)
local serialize ( local r)
const std::string & getName () const
var getName ()
local getName ()
void setName (const std::string &name)
var setName ( var name)
local setName ( local name)
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...
 
unsigned int getReferenceCount () const
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 cocos2d::ObjectcreateInstance (void)
local createInstance ()
static ComControllercreate (void)
var create ()
local create ()
- Static Public Member Functions inherited from Component
static Componentcreate (void)
var create ()
local create ()

Static Public Attributes

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

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
static cocos2d::Object*
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: