cocos2d-x  3.0-alpha0
 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 setDouble (const char *key, double value)
void setFloat (const char *key, float value)
var setFloat ( var key, var value)
local setFloat ( local key, local value)
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 setObject (const char *key, Object *value)
var setObject ( var key, var value)
local setObject ( local key, local value)
int getInt (const char *key) const
double getDouble (const char *key) const
var getDouble ( var key)
local getDouble ( local key)
float getFloat (const char *key) const
var getFloat ( var key)
local getFloat ( local key)
bool getBool (const char *key) const
var getBool ( var key)
local getBool ( local key)
const char * getCString (const char *key) const
local getCString ( local key)
ObjectgetObject (const char *key) const
local getObject ( local key)
cs::JsonDictionarygetDict () const
var getDict ()
local getDict ()
- Public Member Functions inherited from Component
virtual ~Component (void)
virtual void onEnter ()
virtual void onExit ()
virtual void update (float delta)
virtual void serialize (void *r)
local serialize ( local r)
virtual bool isEnabled () const
local isEnabled ()
virtual void setEnabled (bool b)
local setEnabled ( local b)
const char * getName () const
void setName (const char *pName)
void setOwner (Node *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)
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)

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

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)
cs::JsonDictionary* getDict ( ) const
var getDict ( )
local getDict ( )
double getDouble ( const char *  key) const
var getDouble ( var  key)
local getDouble ( local  key)
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)
Object* getObject ( const char *  key) const
var getObject ( var  key)
local getObject ( 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 setDouble ( const char *  key,
double  value 
)
var setDouble ( var  key,
var  value 
)
local setDouble ( 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 
)
void setObject ( const char *  key,
Object value 
)
var setObject ( var  key,
var  value 
)
local setObject ( local  key,
local  value 
)

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