actionregeneventshop.h
来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 58 行
H
58 行
//////////////////////////////////////////////////////////////////////////////// Filename : ActionRegenEventShop.h// Written By : excel96// Description : // 农府胶付胶 捞亥飘侩 惑痢阑 盎脚窍绰 咀记//////////////////////////////////////////////////////////////////////////////#ifndef __ACTION_REGEN_EVENT_SHOP_H__#define __ACTION_REGEN_EVENT_SHOP_H__#include "Types.h"#include "Exception.h"#include "Action.h"#include "ActionFactory.h"#include "Timeval.h"//////////////////////////////////////////////////////////////////////////////// class ActionRegenEventShop//////////////////////////////////////////////////////////////////////////////class ActionRegenEventShop : public Action {public: ActionRegenEventShop() throw(); virtual ~ActionRegenEventShop() throw(); public: virtual ActionType_t getActionType() const throw() { return ACTION_REGEN_EVENT_SHOP; } virtual void read(PropertyBuffer & propertyBuffer) throw(Error); virtual void execute(Creature* pCreature1, Creature* pCreature2 = NULL) throw(Error); virtual string toString() const throw();public: void addListElement(ShopTemplateID_t id) throw() { m_List.push_back(id); } void clearList() throw() { m_List.clear(); }private : list<ShopTemplateID_t> m_List; // Shop template ID list Timeval m_Period; // 惑痢阑 府哩且 林扁 Timeval m_NextRegen; // 促澜 惑痢 府哩 矫埃};////////////////////////////////////////////////////////////////////////////////// class ActionRegenEventShopFactory;////////////////////////////////////////////////////////////////////////////////class ActionRegenEventShopFactory : public ActionFactory {public: virtual ActionType_t getActionType() const throw() { return Action::ACTION_REGEN_EVENT_SHOP; } virtual string getActionName() const throw() { return "RegenEventShop"; } virtual Action* createAction() const throw() { return new ActionRegenEventShop(); }};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?