actionprepareshop.h

来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 61 行

H
61
字号
//////////////////////////////////////////////////////////////////////////////// Filename    : ActionPrepareShop.h// Written By  : // Description : // 惑痢 NPC甫 力老 贸澜 肺爹且 锭, 惑痢 NPC啊 迫霸 瞪 酒捞袍阑// 霖厚窍绰 咀记捞促. ShopTemplate 努贰胶客 概聪历甫 曼绊且 巴.//////////////////////////////////////////////////////////////////////////////#ifndef __ACTION_PREPARE_SHOP_H__#define __ACTION_PREPARE_SHOP_H__#include "Types.h"#include "Exception.h"#include "Action.h"#include "ActionFactory.h"//////////////////////////////////////////////////////////////////////////////// class ActionPrepareShop//////////////////////////////////////////////////////////////////////////////class ActionPrepareShop : public Action {public:	ActionPrepareShop() throw();	virtual ~ActionPrepareShop() throw();	public:	virtual ActionType_t getActionType() const throw() { return ACTION_PREPARE_SHOP; }	virtual void read(PropertyBuffer & propertyBuffer) throw(Error);	virtual void execute(Creature* pCreature1, Creature* pCreature2 = NULL) throw(Error);	virtual string toString() const throw();public:	BYTE getListNum() const throw() { return m_ListNum;}	void setListNum(BYTE num) throw() { m_ListNum = num;}	void addListElement(ShopTemplateID_t id) throw();	void clearList() throw() { m_List.clear(); m_ListNum = 0; }private :	BYTE                   m_ListNum;	list<ShopTemplateID_t> m_List;	MarketCond_t           m_MarketCondBuy;	MarketCond_t           m_MarketCondSell;};//////////////////////////////////////////////////////////////////////////////// class ActionPrepareShopFactory;//////////////////////////////////////////////////////////////////////////////class ActionPrepareShopFactory : public ActionFactory {public:	virtual ActionType_t getActionType() const throw() { return Action::ACTION_PREPARE_SHOP; }	virtual string getActionName() const throw() { return "PrepareShop"; }	virtual Action* createAction() const throw() { return new ActionPrepareShop(); }};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?