actionwander.h

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

H
66
字号
//////////////////////////////////////////////////////////////////////////////// Filename    : ActionWander.h// Written By  : // Description :// 泅犁 困摹俊辑 吭促艾促 规炔窍绰 农府贸甫 钎泅且锭 荤侩窍绰 咀记捞促.// 农府贸啊 泅犁 困摹甫 吝缴栏肺 馆版 r 救狼 荤阿 康开俊辑 // M 欺季飘狼 犬伏肺 捞悼窍霸 等促.//////////////////////////////////////////////////////////////////////////////#ifndef __ACTION_WANDER_H__#define __ACTION_WANDER_H__#include "Types.h"#include "Exception.h"#include "Action.h"#include "ActionFactory.h"//////////////////////////////////////////////////////////////////////////////// class ActionWander;//////////////////////////////////////////////////////////////////////////////class ActionWander : public Action {public:	virtual ActionType_t getActionType() const throw() { return ACTION_WANDER; }	virtual void read(PropertyBuffer & propertyBuffer) throw(Error);	virtual void execute(Creature* pCreature1, Creature* pCreature2 = NULL) throw(Error);	virtual string toString() const throw();public :	ZoneCoord_t getX() const throw() { return m_X; }	void setX(ZoneCoord_t x) throw() { m_X = x; }	ZoneCoord_t getY() const throw() { return m_Y; }	void setY(ZoneCoord_t y) throw() { m_Y = y; }	BYTE getRadius() const throw() { return m_Radius; }	void setRadius(BYTE radius) throw() { m_Radius = radius; }	BYTE getMovePercentage() const throw() { return m_MovePercentage; }	void setMovePercentage(BYTE movePercentage) throw() { m_MovePercentage = movePercentage; }private :	ZoneCoord_t m_X;	ZoneCoord_t m_Y;	BYTE        m_Radius;	BYTE        m_MovePercentage;		};//////////////////////////////////////////////////////////////////////////////// class ActionWanderFactory;//////////////////////////////////////////////////////////////////////////////class ActionWanderFactory : public ActionFactory {public:	virtual ActionType_t getActionType() const throw() { return Action::ACTION_WANDER; }	virtual string getActionName() const throw() { return "Wander"; }	virtual Action* createAction() const throw() { return new ActionWander(); }};#endif

⌨️ 快捷键说明

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