#include <ObjectFactory.h>
Classes | |
| struct | TInfo |
Public Types | |
| typedef cocos2d::Ref *(* | Instance )(void) |
| typedef std::unordered_map < std::string, TInfo > | FactoryMap |
Public Member Functions | |
| cocos2d::Ref * | createObject (const std::string &name) |
| local | createObject ( local name) |
| cocos2d::Component * | createComponent (const std::string &name) |
| cocos2d::ui::Widget * | createGUI (std::string name) |
| local | createGUI ( local name) |
| WidgetReaderProtocol * | createWidgetReaderProtocol (std::string name) |
| local | createWidgetReaderProtocol ( local name) |
| void | registerType (const TInfo &t) |
| void | removeAll () |
Static Public Member Functions | |
| static ObjectFactory * | getInstance () |
| static void | destroyInstance () |
Protected Member Functions | |
| ObjectFactory (void) | |
| virtual | ~ObjectFactory (void) |
| typedef std::unordered_map <std::string, TInfo> FactoryMap |
| var FactoryMap |
| local FactoryMap |
| typedef cocos2d::Ref*(* Instance)(void) |
| typedef cocos2d::Ref*(* Instance)(void) |
| typedef cocos2d::Ref*(* Instance)(void) |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
| cocos2d::Component* createComponent | ( | const std::string & | name) |
| var createComponent | ( | var | name) |
| local createComponent | ( | local | name) |
| cocos2d::ui::Widget* createGUI | ( | std::string | name) |
| var createGUI | ( | var | name) |
| local createGUI | ( | local | name) |
| cocos2d::Ref* createObject | ( | const std::string & | name) |
| var createObject | ( | var | name) |
| local createObject | ( | local | name) |
| WidgetReaderProtocol* createWidgetReaderProtocol |
( | std::string | name) |
| var createWidgetReaderProtocol | ( | var | name) |
| local createWidgetReaderProtocol | ( | local | name) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| void registerType | ( | const TInfo & | t) |
| var registerType | ( | var | t) |
| local registerType | ( | local | t) |
| void removeAll | ( | ) |
| var removeAll | ( | ) |
| local removeAll | ( | ) |