cocos2d-x  2.2.3
 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 ()
virtual bool serialize (void *r)
void setInt (const char *key, int value)
var setInt ( var key, var value)
void setFloat (const char *key, float value)
var setFloat ( var key, var value)
void setBool (const char *key, bool value)
var setBool ( var key, var value)
void setCString (const char *key, const char *value)
int getInt (const char *key, int def=0) const
var getInt ( var key, var 0)
float getFloat (const char *key, float def=0.0f) const
var getFloat ( var key, var 0f)
bool getBool (const char *key, bool def=false) const
var getBool ( var key, var false)
const char * getCString (const char *key, const char *def=NULL) const
bool parse (const std::string &jsonPath)
- 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 bool isEnabled () const
var isEnabled ()
local isEnabled ()
virtual void setEnabled (bool b)
local setEnabled ( local b)
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 cocos2d::CCObjectcreateInstance (void)
static CCComAttributecreate (void)
- Static Public Member Functions inherited from CCComponent
static CCComponentcreate (void)
var create ()
local create ()

Static Public Attributes


Protected Member Functions

 CCComAttribute (void)
 ctor ()
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
std::string m_strName
var m_strName
local m_strName
bool m_bEnabled

Constructor & Destructor Documentation

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

Member Function Documentation

static CCComAttribute* create ( void  )
var create (   )
static cocos2d::CCObject*
( void  )
var createInstance (   )
bool getBool ( const char *  key,
bool  def = false 
) const
var getBool ( var  key,
var  def = false 
const char* getCString ( const char *  key,
const char *  def = NULL 
) const
var getCString ( var  key,
var  def = NULL 
float getFloat ( const char *  key,
float  def = 0.0f 
) const
var getFloat ( var  key,
var  def = 0.0f 
int getInt ( const char *  key,
int  def = 0 
) const
var getInt ( var  key,
var  def = 0 
virtual bool init ( )

Reimplemented from CCComponent.

var init ( )

Reimplemented from CCComponent.

bool parse ( const std::string &  jsonPath)
var parse ( var  jsonPath)
virtual bool serialize ( void *  r)

Reimplemented from CCComponent.

var serialize ( var  r)

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 

Member Data Documentation

var Type

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