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

#include <CCComAttribute.h>

Inheritance diagram for ComAttribute:
Component Object

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)
void setCString (const char *key, const char *value)
var setCString ( var key, var value)
local setCString ( local key, local value)
int getInt (const char *key) const
float getFloat (const char *key) const
bool getBool (const char *key) const
const char * getCString (const char *key) const
local getCString ( local key)
JsonDictionarygetDict () const
local getDict ()
- Public Member Functions inherited from Component
virtual ~Component (void)
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 ComAttributecreate (void)
var create ()
local create ()
- Static Public Member Functions inherited from Component
static Componentcreate (void)
var create ()
local create ()

Protected Member Functions

 ComAttribute (void)
virtual ~ComAttribute (void)
- Protected Member Functions inherited from Component
 Component (void)
 ctor ()
 Component ()

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID More...
 
int _luaID
 Lua reference id. More...
 
- Protected Attributes inherited from Component
Node_owner
std::string _name
var _name
local _name
bool _enabled
var _enabled
local _enabled

Constructor & Destructor Documentation

ComAttribute ( void  )
protected
var ctor (   )
protected
local ComAttribute (   )
protected
virtual ~ComAttribute ( void  )
protectedvirtual

Member Function Documentation

static ComAttribute* create ( void  )
static
var create (   )
static
local create (   )
static
bool getBool ( const char *  key) const
var getBool ( var  key)
local getBool ( local  key)
const char* getCString ( const char *  key) const
var getCString ( var  key)
local getCString ( local  key)
JsonDictionary* getDict ( ) const
local getDict ( )
float getFloat ( const char *  key) const
var getFloat ( var  key)
local getFloat ( local  key)
int getInt ( const char *  key) const
var getInt ( var  key)
local getInt ( local  key)
virtual bool init ( )
virtual

Reimplemented from Component.

var init ( )
virtual

Reimplemented from Component.

local init ( )
virtual

Reimplemented from Component.

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

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