actionfactorymanager.h
来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 41 行
H
41 行
//////////////////////////////////////////////////////////////////////////////// Filename : ActionFactoryManager.h // Written By : excel96// Description ://////////////////////////////////////////////////////////////////////////////#ifndef __ACTION_FACTORY_MANAGER_H__#define __ACTION_FACTORY_MANAGER_H__#include "Types.h"#include "Exception.h"#include "Action.h"#include "ActionFactory.h"//////////////////////////////////////////////////////////////////////////////// class ActionFactoryManager//////////////////////////////////////////////////////////////////////////////class ActionFactoryManager {public: ActionFactoryManager() throw(); ~ActionFactoryManager() throw();public: void init() throw(Error); void addFactory(ActionFactory* pFactory) throw(Error); Action* createAction(ActionType_t conditionType) const throw(Error); string getActionName(ActionType_t conditionType) const throw(Error); ActionType_t getActionType(const string & actionname) const throw(Error); string toString() const throw();private: ActionFactory** m_Factories; ushort m_Size;};extern ActionFactoryManager* g_pActionFactoryManager;#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?