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

#include <CCComponent.h>

Inheritance diagram for Component:
Object ComAttribute ComAudio ComController ComRender

Public Member Functions

virtual ~Component (void)
virtual bool init ()
virtual void onEnter ()
virtual void onExit ()
virtual void update (float delta)
local update ( local delta)
virtual void serialize (void *r)
local serialize ( local r)
virtual bool isEnabled () const
local isEnabled ()
virtual void setEnabled (bool b)
const char * getName () const
void setName (const char *pName)
var setName ( var pName)
local setName ( local pName)
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...
 
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)

Static Public Member Functions

static Componentcreate (void)
var create ()
local create ()

Protected Member Functions

 Component (void)
 ctor ()
 Component ()

Protected Attributes

Node_owner
std::string _name
var _name
local _name
bool _enabled
var _enabled
local _enabled
- Protected Attributes inherited from Object
unsigned int _reference
 count of references More...
 
unsigned int _autoReleaseCount
 count of autorelease More...
 

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID More...
 
int _luaID
 Lua reference id. More...
 

Constructor & Destructor Documentation

Component ( void  )
protected
var ctor (   )
protected
local Component (   )
protected
virtual ~Component ( void  )
virtual

Member Function Documentation

static Component* create ( void  )
static
var create (   )
static
local create (   )
static
const char* getName ( ) const
var getName ( )
local getName ( )
Node* getOwner ( ) const
var getOwner ( )
local getOwner ( )
virtual bool init ( )
virtual

Reimplemented in ComAttribute, ComController, and ComAudio.

var init ( )
virtual

Reimplemented in ComAttribute, ComController, and ComAudio.

local init ( )
virtual

Reimplemented in ComAttribute, ComController, and ComAudio.

virtual bool isEnabled ( ) const
virtual

Reimplemented in ComController, and ComAudio.

var isEnabled ( )
virtual

Reimplemented in ComController, and ComAudio.

local isEnabled ( )
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 void serialize ( void *  r)
virtual
var serialize ( var  r)
virtual
local serialize ( local  r)
virtual
virtual void setEnabled ( bool  b)
virtual

Reimplemented in ComController, and ComAudio.

var setEnabled ( var  b)
virtual

Reimplemented in ComController, and ComAudio.

local setEnabled ( local  b)
virtual

Reimplemented in ComController, and ComAudio.

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

Reimplemented from Object.

Reimplemented in ComController.

var update ( var  delta)
virtual

Reimplemented from Object.

Reimplemented in ComController.

local update ( local  delta)
virtual

Reimplemented from Object.

Reimplemented in ComController.

Member Data Documentation

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

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