#include <CCComAttribute.h>
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) |
Object * | getObject (const char *key) const |
local | getObject ( local key) |
cs::JsonDictionary * | getDict () 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) |
Node * | getOwner () 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... | |
Object * | autorelease () |
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 ComAttribute * | create (void) |
local | create () |
Static Public Member Functions inherited from Component | |
static Component * | create (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 |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
static |
|
static |
|
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 |
Reimplemented from Component.
|
virtual |
Reimplemented from Component.
|
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 | ||
) |