conditionhasquest.h
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 47 行
H
47 行
////////////////////////////////////////////////////////////////////////////////// Filename : ConditionHasQuest.h// Written By : // Description :////////////////////////////////////////////////////////////////////////////////#ifndef __HAS_QUEST_H__#define __HAS_QUEST_H__#include "Condition.h"#include "ConditionFactory.h"//////////////////////////////////////////////////////////////////////////////// class ConditionHasQuest;//////////////////////////////////////////////////////////////////////////////class ConditionHasQuest : public Condition {public: ConditionHasQuest() throw(); virtual ~ConditionHasQuest() throw();public: virtual ConditionType_t getConditionType() const throw() { return CONDITION_HAS_QUEST; } virtual bool isPassive() const throw() { return true; } virtual bool isSatisfied(Creature* pNPC, Creature* pPC = NULL, void* pParam = NULL) const throw(); virtual void read(PropertyBuffer & propertyBuffer) throw(Error); virtual string toString() const throw();private: QuestID_t m_QuestID;};//////////////////////////////////////////////////////////////////////////////// class ConditionHasQuestFactory;//////////////////////////////////////////////////////////////////////////////class ConditionHasQuestFactory : public ConditionFactory {public: virtual ConditionType_t getConditionType() const throw() { return Condition::CONDITION_HAS_QUEST; } virtual Condition* createCondition() const throw() { return new ConditionHasQuest(); } virtual string getConditionName() const throw() { return "HasQuest"; }};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?