cocos2d-x  3.0
 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)
NodegetOwner () const
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void 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 ()

Static Public Member Functions

static Componentcreate (void)

Protected Member Functions

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

Protected Attributes

Node_owner
std::string _name
bool _enabled
ccScriptType _scriptType
 type of script binding, lua or javascript More...
 
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 

Constructor & Destructor Documentation

Component ( void  )
protected
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 ComController, ComAttribute, 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
ccScriptType _scriptType
protected

type of script binding, lua or javascript


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