cocos2d-x  3.0Beta0
 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 () override
virtual bool serialize (void *r) override
void setInt (const std::string &key, int value)
var setInt ( var key, var value)
local setInt ( local key, local value)
void setFloat (const std::string &key, float value)
void setBool (const std::string &key, bool value)
void setString (const std::string &key, const std::string &value)
int getInt (const std::string &key, int def=0) const
float getFloat (const std::string &key, float def=0.0f) const
bool getBool (const std::string &key, bool def=false) const
std::string getString (const std::string &key, const std::string &def="") const
local getString ( local key)
bool parse (const std::string &jsonFile)
- 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 bool isEnabled () const
var isEnabled ()
local isEnabled ()
virtual void setEnabled (bool b)
const std::string & getName () const
var getName ()
local getName ()
void setName (const std::string &name)
var setName ( var name)
local setName ( local name)
void setOwner (Node *pOwner)
var setOwner ( var pOwner)
local setOwner ( local pOwner)
NodegetOwner () const
- Public Member Functions inherited from Object
 Object ()
 Constructor. More...
 
 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...
 
local retainCount ()
 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 cocos2d::ObjectcreateInstance (void)
local createInstance ()
static ComAttributecreate (void)
var create ()
local create ()
- Static Public Member Functions inherited from Component
static Componentcreate (void)
var create ()
local create ()

Static Public Attributes

static
cocostudio::ObjectFactory::TInfo 
Type
var Type
local Type

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...
 
var _luaID
 Lua reference id. More...
 
local _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
static cocos2d::Object*
createInstance
( void  )
static
var createInstance (   )
static
local createInstance (   )
static
bool getBool ( const std::string &  key,
bool  def = false 
) const
var getBool ( var  key,
var  def = false 
)
local getBool ( local  key,
local  def = false 
)
float getFloat ( const std::string &  key,
float  def = 0.0f 
) const
var getFloat ( var  key,
var  def = 0.0f 
)
local getFloat ( local  key,
local  def = 0.0f 
)
int getInt ( const std::string &  key,
int  def = 0 
) const
var getInt ( var  key,
var  def = 0 
)
local getInt ( local  key,
local  def = 0 
)
std::string getString ( const std::string &  key,
const std::string &  def = "" 
) const
var getString ( var  key,
var  def = "" 
)
local getString ( local  key,
local  def = "" 
)
virtual bool init ( )
overridevirtual

Reimplemented from Component.

var init ( )
overridevirtual

Reimplemented from Component.

local init ( )
overridevirtual

Reimplemented from Component.

bool parse ( const std::string &  jsonFile)
var parse ( var  jsonFile)
local parse ( local  jsonFile)
virtual bool serialize ( void *  r)
overridevirtual

Reimplemented from Component.

var serialize ( var  r)
overridevirtual

Reimplemented from Component.

local serialize ( local  r)
overridevirtual

Reimplemented from Component.

void setBool ( const std::string &  key,
bool  value 
)
var setBool ( var  key,
var  value 
)
local setBool ( local  key,
local  value 
)
void setFloat ( const std::string &  key,
float  value 
)
var setFloat ( var  key,
var  value 
)
local setFloat ( local  key,
local  value 
)
void setInt ( const std::string &  key,
int  value 
)
var setInt ( var  key,
var  value 
)
local setInt ( local  key,
local  value 
)
void setString ( const std::string &  key,
const std::string &  value 
)
var setString ( var  key,
var  value 
)
local setString ( local  key,
local  value 
)

Member Data Documentation

var Type
static
local Type
static

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