cocos2d-x  2.2.3-gd2.113-rev1ec524e
Loading...
Searching...
No Matches
CCComponent Class Reference

#include <CCComponent.h>

Inheritance diagram for CCComponent:
[legend]
Collaboration diagram for CCComponent:
[legend]

Public Member Functions

virtual ~CCComponent (void)
 NA NA. More...
 
virtual bool init ()
 
virtual void onEnter ()
 NA NA. More...
 
virtual void onExit ()
 NA NA. More...
 
virtual void update (float delta)
 
virtual bool serialize (void *r)
 
virtual bool isEnabled () const
 
virtual void setEnabled (bool 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)
 NA. More...
 
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)
 
virtual void update (float dt)
 
 CCObject (const CCObject &)
 
CCObjectoperator= (const CCObject &)
 
virtual void encodeWithCoder (DS_Dictionary *)
 
virtual bool canEncode ()
 
CCObjectType getObjType () const
 
virtual int getTag () const
 
virtual void setTag (int nTag)
 
void setObjType (CCObjectType)
 
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)
 

Static Public Member Functions

static CCComponentcreate (void)
 
- Static Public Member Functions inherited from CCObject
static CCObjectcreateWithCoder (DS_Dictionary *)
 

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
 
int m_nTag
 
int m_eObjType
 
unsigned int m_uObjectIdxInArray
 

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
 
int m_nLuaID
 

Constructor & Destructor Documentation

◆ CCComponent()

CCComponent ( void  )
protected

◆ ~CCComponent()

virtual ~CCComponent ( void  )
virtual

NA NA.

Member Function Documentation

◆ create()

static CCComponent * create ( void  )
static

◆ getName()

const char * getName ( ) const

◆ getOwner()

CCNode * getOwner ( ) const

◆ init()

virtual bool init ( )
virtual

◆ isEnabled()

virtual bool isEnabled ( ) const
virtual

◆ onEnter()

virtual void onEnter ( )
virtual

NA NA.

◆ onExit()

virtual void onExit ( )
virtual

NA NA.

◆ serialize()

virtual bool serialize ( void *  r)
virtual

◆ setEnabled()

virtual void setEnabled ( bool  b)
virtual

◆ setName()

void setName ( const char *  pName)

◆ setOwner()

void setOwner ( CCNode pOwner)

◆ update()

virtual void update ( float  delta)
virtual

Reimplemented from CCObject.

Member Data Documentation

◆ m_bEnabled

bool m_bEnabled
protected

◆ m_pOwner

CCNode* m_pOwner
protected

◆ m_strName

std::string m_strName
protected

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