cocos2d-x  3.0-rc0
 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)
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)
const std::string & getName () const
var getName ()
local getName ()
void setName (const std::string &name)
var setName ( var name)
local setName ( local name)
void setOwner (Node *pOwner)
var setOwner ( var pOwner)
local setOwner ( local 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)
var create ()
local create ()

Protected Member Functions

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

Protected Attributes

Node_owner
var _owner
local _owner
std::string _name
var _name
local _name
bool _enabled
var _enabled
local _enabled
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references 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 std::string& getName ( ) const
var getName ( )
local getName ( )
Node* getOwner ( ) const
var getOwner ( )
local getOwner ( )
virtual bool init ( )
virtual

Reimplemented in ComController, ComAttribute, and ComAudio.

var init ( )
virtual

Reimplemented in ComController, ComAttribute, and ComAudio.

local init ( )
virtual

Reimplemented in ComController, ComAttribute, 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 bool serialize ( void *  r)
virtual

Reimplemented in ComAudio, ComRender, and ComAttribute.

var serialize ( var  r)
virtual

Reimplemented in ComAudio, ComRender, and ComAttribute.

local serialize ( local  r)
virtual

Reimplemented in ComAudio, ComRender, and ComAttribute.

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 std::string &  name)
var setName ( var  name)
local setName ( local  name)
void setOwner ( Node pOwner)
var setOwner ( var  pOwner)
local setOwner ( local  pOwner)
virtual void update ( float  delta)
virtual

Reimplemented in ComController.

var update ( var  delta)
virtual

Reimplemented in ComController.

local update ( local  delta)
virtual

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: