actiontradeeventitem.h

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

H
49
字号
//////////////////////////////////////////////////////////////////////////////// Filename    : ActionTradeEventItem.h// Written By  : excel96// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __ACTION_TRADE_EVENT_ITEM_H__#define __ACTION_TRADE_EVENT_ITEM_H__#include "Types.h"#include "Exception.h"#include "Action.h"#include "ActionFactory.h"//////////////////////////////////////////////////////////////////////////////// class ActionTradeEventItem//////////////////////////////////////////////////////////////////////////////class ActionTradeEventItem : public Action {public:	virtual ActionType_t getActionType() const throw() { return ACTION_TRADE_EVENT_ITEM; }	virtual void read(PropertyBuffer & propertyBuffer) throw(Error);	virtual void execute(Creature* pCreature1, Creature* pCreature2 = NULL) throw(Error);	virtual string toString() const throw();public:	int getAmount(void) const { return m_GoalAmount; }	void setAmount(int amount) { m_GoalAmount = amount; }private:	int m_GoalAmount; // 罐阑 绵备傍狼 荐};//////////////////////////////////////////////////////////////////////////////// class ActionTradeEventItemFactory;//////////////////////////////////////////////////////////////////////////////class ActionTradeEventItemFactory : public ActionFactory {public:	virtual ActionType_t getActionType() const throw() { return Action::ACTION_TRADE_EVENT_ITEM; }	virtual string getActionName() const throw() { return "TradeEventItem"; }	virtual Action* createAction() const throw() { return new ActionTradeEventItem(); }};#endif

⌨️ 快捷键说明

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