📄 actionbuy.h
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : ActionBuy.h// Written By : excel96// Description : // NPC啊 敲饭捞绢肺何磐 酒捞袍阑 荤甸捞绰 咀记捞促. Sell 咀记苞 付蛮啊瘤肺 // 漂喊洒 窍绰 老篮 绝绊, 窜瘤 敲饭捞绢俊霸 泅犁 惑痢狼 滚傈阑 菩哦栏肺 // 焊郴林绰 开且阑 茄促.//////////////////////////////////////////////////////////////////////////////#ifndef __ACTION_BUY_H__#define __ACTION_BUY_H__#include "Types.h"#include "Exception.h"#include "Action.h"#include "ActionFactory.h"//////////////////////////////////////////////////////////////////////////////// class ActionBuy//////////////////////////////////////////////////////////////////////////////class ActionBuy : public Action {public: virtual ActionType_t getActionType() const throw() { return ACTION_BUY; } virtual void read(PropertyBuffer & propertyBuffer) throw(Error); virtual void execute(Creature* pCreature1, Creature* pCreature2 = NULL) throw(Error); virtual string toString() const throw();};//////////////////////////////////////////////////////////////////////////////// class AskFactory;//////////////////////////////////////////////////////////////////////////////class ActionBuyFactory : public ActionFactory {public: virtual ActionType_t getActionType() const throw() { return Action::ACTION_BUY; } virtual string getActionName() const throw() { return "Buy"; } virtual Action* createAction() const throw() { return new ActionBuy(); }};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -