cocos2d-x  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCComAttribute Class Reference

#include <CCComAttribute.h>

Inheritance diagram for CCComAttribute:
CCComponent CCObject CCCopying

Public Member Functions

virtual bool init ()
void setInt (const char *key, int value)
void setFloat (const char *key, float value)
void setBool (const char *key, bool value)
var setBool ( var key, var value)
void setCString (const char *key, const char *value)
var setCString ( var key, var value)
int getInt (const char *key) const
float getFloat (const char *key) const
var getFloat ( var key)
bool getBool (const char *key) const
var getBool ( var key)
const char * getCString (const char *key) const
cs::CSJsonDictionarygetDict ()
- Public Member Functions inherited from CCComponent
virtual ~CCComponent (void)
virtual void onEnter ()
virtual void onExit ()
virtual void update (float delta)
var update ( var delta)
local update ( local delta)
virtual void serialize (void *r)
local serialize ( local r)
virtual bool isEnabled () const
var isEnabled ()
local isEnabled ()
virtual void setEnabled (bool b)
local setEnabled ( local b)
virtual CCNodegetNode ()
virtual void setNode (CCNode *pNode)
local setNode ( local pNode)
const char * getName () const
var getName ()
local getName ()
void setName (const char *pName)
void setOwner (CCNode *pOwner)
CCNodegetOwner () const
- Public Member Functions inherited from CCObject
 CCObject (void)
virtual ~CCObject (void)
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)
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)

Static Public Member Functions

static CCComAttributecreate (void)
- Static Public Member Functions inherited from CCComponent
static CCComponentcreate (void)
var create ()
local create ()

Protected Member Functions

 CCComAttribute (void)
virtual ~CCComAttribute (void)
- Protected Member Functions inherited from CCComponent
 CCComponent (void)

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID
- Protected Attributes inherited from CCComponent
CCNodem_pOwner
std::string m_strName
var m_strName
local m_strName
bool m_bEnabled

Constructor & Destructor Documentation

CCComAttribute ( void  )
protected
var ctor (   )
protected
virtual ~CCComAttribute ( void  )
protectedvirtual

Member Function Documentation

static CCComAttribute* create ( void  )
static
var create (   )
static
bool getBool ( const char *  key) const
var getBool ( var  key)
const char* getCString ( const char *  key) const
var getCString ( var  key)
cs::CSJsonDictionary* getDict ( )
float getFloat ( const char *  key) const
var getFloat ( var  key)
int getInt ( const char *  key) const
var getInt ( var  key)
virtual bool init ( )
virtual

Reimplemented from CCComponent.

var init ( )
virtual

Reimplemented from CCComponent.

void setBool ( const char *  key,
bool  value 
)
var setBool ( var  key,
var  value 
)
void setCString ( const char *  key,
const char *  value 
)
var setCString ( var  key,
var  value 
)
void setFloat ( const char *  key,
float  value 
)
var setFloat ( var  key,
var  value 
)
void setInt ( const char *  key,
int  value 
)
var setInt ( var  key,
var  value 
)

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