#pragma once #include "Action.h" #include "public/ShopDefine.h" #include "CShopActtion.hpp" class CShopActionFactory { public: CShopActionFactory() { m_pAction = new CShopAction; }; ~CShopActionFactory() { if(m_pAction) delete m_pAction, m_pAction = NULL; }; CShopAction* GetShopActionObj() { return m_pAction; }; private: CShopAction* m_pAction; };