cocos2d-x  2.2.6
 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)
var setCString ( var key, var value)
int getInt (const char *key, int def=0) const
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
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)
local update ( local delta)
virtual bool isEnabled () const
var isEnabled ()
local isEnabled ()
virtual void setEnabled (bool b)
var setEnabled ( var b)
local setEnabled ( local b)
const char * getName () const
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)

Static Public Attributes

static
cocos2d::extension::ObjectFactory::TInfo 
Type

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
bool m_bEnabled
- Protected Attributes inherited from CCObject
unsigned int m_uReference
unsigned int m_uAutoReleaseCount

Constructor & Destructor Documentation

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

Member Function Documentation

static CCComAttribute* create ( void  )
static
var create (   )
static
static cocos2d::CCObject*
createInstance
( void  )
static
var createInstance (   )
static
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 ( )
virtual

Reimplemented from CCComponent.

var init ( )
virtual

Reimplemented from CCComponent.

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

Reimplemented from CCComponent.

var serialize ( var  r)
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 
)

Member Data Documentation

var Type
static

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