| cocos2d-x 3.0 |
)- 类列表 - 类索引 - 类继承关系 - 类成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
Public 成员函数 | 静态 Public 成员函数 | 静态 Public 属性 | Protected 成员函数 | 所有成员列表
ComAttribute类 参考
#include
类 ComAttribute 继承关系图:
| ## Public 成员函数 | |
| virtual bool | init () override |
| virtual bool | serialize (void r) override |
| void | setInt (const std::string &key, int 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 |
| bool | parse (const std::string &jsonFile) |
Public 成员函数 继承自 Component | |
| virtual | ~Component (void) |
| NA NA 更多… | |
| virtual void | onEnter () |
| virtual void | onExit () |
| virtual void | update (float delta) |
| virtual bool | isEnabled () const |
| virtual void | setEnabled (bool b) |
| const std::string & | getName () const |
| void | setName (const std::string &name) |
| void | setOwner (Node pOwner) |
| Node | getOwner () const |
Public 成员函数 继承自 Ref | |
| void | retain () |
| 保留所有权. 更多… | |
| void | release () |
| 立即释放所有权. 更多… | |
| Ref | autorelease () |
| 自动释放所有权在不久的将来. 更多… | |
| unsigned int | getReferenceCount () const |
| 返回Ref对象当前的引用计数. 更多… | |
| virtual | ~Ref () |
| NA NA 更多… | |
| ## 静态 Public 成员函数 | |
| static cocos2d::Ref | createInstance (void) |
| static ComAttribute | create (void) |
静态 Public 成员函数 继承自 Component | |
| static Component * | create (void) |
| ## 静态 Public 属性 | |
| static cocostudio::ObjectFactory::TInfo | Type |
| ## Protected 成员函数 | |
| ComAttribute (void) | |
| ctor 更多… | |
| virtual | ~ComAttribute (void) |
| NA NA 更多… | |
Protected 成员函数 继承自 Ref | |
| Ref () | |
| 构造函数 更多… | |
| ## 额外继承的成员函数 | |
Protected 属性 继承自 Component | |
| Node * | _owner |
| std::string | _name |
| bool | _enabled |
Protected 属性 继承自 Ref | |
| unsigned int | _referenceCount |
| 引用计数 更多… | |
构造及析构函数说明
| protected |
ctor
| protectedvirtual |
NA NA
成员函数说明
| static |
| static |
| bool getBool | ( | const std::string & | key, |
| bool | def = false | ||
| ) | const |
| float getFloat | ( | const std::string & | key, |
| float | def = 0.0f | ||
| ) | const |
| int getInt | ( | const std::string & | key, |
| int | def = 0 | ||
| ) | const |
| std::string getString | ( | const std::string & | key, |
| const std::string & | def = "" | ||
| ) | const |
| overridevirtual |
重载 Component .
| bool parse | ( | const std::string & | jsonFile | ) |
| overridevirtual |
重载 Component .
| void setBool | ( | const std::string & | key, |
| bool | value | ||
| ) |
| void setFloat | ( | const std::string & | key, |
| float | value | ||
| ) |
| void setInt | ( | const std::string & | key, |
| int | value | ||
| ) |
| void setString | ( | const std::string & | key, |
| const std::string & | value | ||
| ) |
类成员变量说明
| static |
该类的文档由以下文件生成:
- /Users/zeroyang/Documents/github/cocos2d-x/cocos/editor-support/cocostudio/CCComAttribute.h
- cocostudio
- ComAttribute
- 生成于 2014年 五月 29日 星期四 09:41:59 , 为 cocos2d-x使用
1.8.6
Public 成员函数 继承自 