cocos2d-x  3.2rc0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Component Class Reference

#include <CCComponent.h>

Inheritance diagram for Component:
Ref ComAttribute ComAudio ComController ComRender

Public Member Functions

virtual ~Component (void)
virtual bool init ()
virtual void onEnter ()
virtual void onExit ()
virtual void update (float delta)
virtual bool serialize (void *r)
virtual bool isEnabled () const
virtual void setEnabled (bool b)
const std::string & getName () const
void setName (const std::string &name)
void setOwner (Node *pOwner)
Node * getOwner () const
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Ref * autorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()

Static Public Member Functions

static Component * create (void)

Protected Attributes

Node * _owner
std::string _name
bool _enabled
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
var _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Additional Inherited Members

- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 

Constructor & Destructor Documentation

virtual ~Component ( void  )
virtual

Member Function Documentation

static Component* create ( void  )
static
const std::string& getName ( ) const
Node* getOwner ( ) const
virtual bool init ( )
virtual

Reimplemented in ComAttribute, ComController, and ComAudio.

virtual bool isEnabled ( ) const
virtual

Reimplemented in ComController, and ComAudio.

virtual void onEnter ( )
virtual

Reimplemented in ComController, ComAudio, and ComRender.

virtual void onExit ( )
virtual

Reimplemented in ComController, ComAudio, and ComRender.

virtual bool serialize ( void *  r)
virtual

Reimplemented in ComAudio, ComRender, and ComAttribute.

virtual void setEnabled ( bool  b)
virtual

Reimplemented in ComController, and ComAudio.

void setName ( const std::string &  name)
void setOwner ( Node *  pOwner)
virtual void update ( float  delta)
virtual

Reimplemented in ComController.

Member Data Documentation

bool _enabled
protected
std::string _name
protected
Node* _owner
protected

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