cocos2d-x  2.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCComponent Class Reference

#include <CCComponent.h>

Inheritance diagram for CCComponent:
CCObject CCCopying CCComAttribute CCComAudio CCComController CCComRender

Public Member Functions

virtual ~CCComponent (void)
virtual bool init ()
virtual void onEnter ()
virtual void onExit ()
virtual void update (float delta)
local update ( local delta)
virtual bool serialize (void *r)
local serialize ( local r)
virtual bool isEnabled () const
var isEnabled ()
local isEnabled ()
virtual void setEnabled (bool b)
var setEnabled ( var b)
local setEnabled ( local b)
const char * getName () const
void setName (const char *pName)
void setOwner (CCNode *pOwner)
CCNodegetOwner () const
- Public Member Functions inherited from CCObject
 CCObject (void)
virtual ~CCObject (void)
void release (void)
void retain (void)
CCObjectautorelease (void)
CCObjectcopy (void)
bool isSingleReference (void) const
unsigned int retainCount (void) const
virtual bool isEqual (const CCObject *pObject)
virtual void acceptVisitor (CCDataVisitor &visitor)
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)

Static Public Member Functions

static CCComponentcreate (void)

Protected Member Functions

 CCComponent (void)

Protected Attributes

CCNodem_pOwner
std::string m_strName
bool m_bEnabled
- Protected Attributes inherited from CCObject
unsigned int m_uReference
unsigned int m_uAutoReleaseCount

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID

Constructor & Destructor Documentation

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

Member Function Documentation

static CCComponent* create ( void  )
static
var create (   )
static
local create (   )
static
const char* getName ( ) const
var getName ( )
local getName ( )
CCNode* getOwner ( ) const
var getOwner ( )
local getOwner ( )
virtual bool init ( )
virtual

Reimplemented in CCComAttribute, CCComController, and CCComAudio.

var init ( )
virtual

Reimplemented in CCComAttribute, CCComController, and CCComAudio.

local init ( )
virtual

Reimplemented in CCComAttribute, CCComController, and CCComAudio.

virtual bool isEnabled ( ) const
virtual

Reimplemented in CCComController, and CCComAudio.

var isEnabled ( )
virtual

Reimplemented in CCComController, and CCComAudio.

local isEnabled ( )
virtual

Reimplemented in CCComController, and CCComAudio.

virtual void onEnter ( )
virtual

Reimplemented in CCComRender, CCComController, and CCComAudio.

virtual void onExit ( )
virtual

Reimplemented in CCComRender, CCComController, and CCComAudio.

virtual bool serialize ( void *  r)
virtual

Reimplemented in CCComRender, CCComAttribute, and CCComAudio.

var serialize ( var  r)
virtual

Reimplemented in CCComRender, CCComAttribute, and CCComAudio.

local serialize ( local  r)
virtual

Reimplemented in CCComRender, CCComAttribute, and CCComAudio.

virtual void setEnabled ( bool  b)
virtual

Reimplemented in CCComController, and CCComAudio.

var setEnabled ( var  b)
virtual

Reimplemented in CCComController, and CCComAudio.

local setEnabled ( local  b)
virtual

Reimplemented in CCComController, and CCComAudio.

void setName ( const char *  pName)
var setName ( var  pName)
local setName ( local  pName)
void setOwner ( CCNode pOwner)
var setOwner ( var  pOwner)
local setOwner ( local  pOwner)
virtual void update ( float  delta)
virtual

Reimplemented from CCObject.

Reimplemented in CCComController.

var update ( var  delta)
virtual

Reimplemented from CCObject.

Reimplemented in CCComController.

local update ( local  delta)
virtual

Reimplemented from CCObject.

Reimplemented in CCComController.

Member Data Documentation

bool m_bEnabled
protected
var m_bEnabled
protected
local m_bEnabled
protected
CCNode* m_pOwner
protected
var m_pOwner
protected
std::string m_strName
protected
var m_strName
protected
local m_strName
protected

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