📄 actionteachskill.h
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : ActionTeachSkill.h// Written By : // Description : // NPC啊 敲饭捞绢俊霸 扁贱阑 啊福媚 临 锭 静捞绰 咀记捞促.// 角力利栏肺绰 NPC啊 啊福媚 临 荐 乐绰 扁贱阑 菩哦栏肺// 傈价秦 临 挥捞绊, 唱赣瘤 累诀甸篮 菩哦捞 空汗窍绰 荤捞俊 贸府等促.//////////////////////////////////////////////////////////////////////////////#ifndef __ACTION_TEACH_SKILL_H__#define __ACTION_TEACH_SKILL_H__#include "Types.h"#include "Exception.h"#include "Action.h"#include "ActionFactory.h"#define TEACH_SKILL_SLAYER 0#define TEACH_SKILL_VAMPIRE 1//////////////////////////////////////////////////////////////////////////////// class ActionTeachSkill;//////////////////////////////////////////////////////////////////////////////class ActionTeachSkill : public Action {public: virtual ActionType_t getActionType() const throw() { return ACTION_TEACH_SKILL; } virtual void read(PropertyBuffer & propertyBuffer) throw(Error); virtual void execute(Creature* pCreature1, Creature* pCreature2 = NULL) throw(Error); virtual string toString() const throw();public: virtual void executeSlayer(Creature* pCreature1, Creature* pCreature2 = NULL) throw(Error); virtual void executeVampire(Creature* pCreature1, Creature* pCreature2 = NULL) throw(Error); SkillDomainType_t getDomainType(void) const throw() { return m_DomainType;} void setDomainType(SkillDomainType_t domain) throw() { m_DomainType = domain;}private: SkillDomainType_t m_DomainType; // 啊福媚 临 胶懦狼 档皋牢};////////////////////////////////////////////////////////////////////////////////// class ActionTeachSkillFactory;////////////////////////////////////////////////////////////////////////////////class ActionTeachSkillFactory : public ActionFactory {public : virtual ActionType_t getActionType() const throw() { return Action::ACTION_TEACH_SKILL; } virtual string getActionName() const throw() { return "TeachSkill"; } virtual Action* createAction() const throw() { return new ActionTeachSkill(); }};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -