actiontakedonation.h
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 51 行
H
51 行
//////////////////////////////////////////////////////////////////////////////// Filename : ActionTakeDonation.h// Written By : // Description :// Creature啊 林绢柳 措荤甫 富茄促. 捞 措荤绰 农府贸狼 赣府 困狼 富浅急栏肺// 免仿等促.//////////////////////////////////////////////////////////////////////////////#ifndef __ACTION_TAKE_DONATION_H__#define __ACTION_TAKE_DONATION_H__#include "Types.h"#include "Exception.h"#include "Action.h"#include "ActionFactory.h"//////////////////////////////////////////////////////////////////////////////// class ActionTakeDonation;//////////////////////////////////////////////////////////////////////////////class ActionTakeDonation : public Action {public: virtual ActionType_t getActionType() const throw() { return ACTION_TAKE_DONATION; } virtual void read(PropertyBuffer & propertyBuffer) throw(Error); virtual void execute(Creature* pCreature1, Creature* pCreature2 = NULL) throw(Error); virtual string toString() const throw();public: Gold_t getAmount(void) const { return m_Amount; } void setAmount(Gold_t amount) { m_Amount = amount; }private: Gold_t m_Amount; // 罐阑 捣狼 剧};//////////////////////////////////////////////////////////////////////////////// class ActionTakeDonationFactory;//////////////////////////////////////////////////////////////////////////////class ActionTakeDonationFactory : public ActionFactory {public: virtual ActionType_t getActionType() const throw() { return Action::ACTION_TAKE_DONATION; } virtual string getActionName() const throw() { return "TakeDonation"; } virtual Action* createAction() const throw() { return new ActionTakeDonation(); }};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?