📄 conditiontalkedby.h
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : ConditionTalkedBy.h// Written By : // Description :// NPC啊 PC肺何磐 措拳甫 罐疽阑 版快, 漂喊洒 捞 牧叼记捞 曼捞 酒匆 啊瓷己篮 绝促.//////////////////////////////////////////////////////////////////////////////#ifndef __TALKED_BY_H__#define __TALKED_BY_H__#include "Condition.h"#include "ConditionFactory.h"#include "Creature.h"//////////////////////////////////////////////////////////////////////////////// class ConditionTalkedBy;//////////////////////////////////////////////////////////////////////////////class ConditionTalkedBy : public Condition {public: virtual ConditionType_t getConditionType() const throw() { return CONDITION_TALKED_BY; } virtual bool isPassive() const throw() { return true; } virtual bool isSatisfied(Creature* pNPC, Creature* pPC = NULL, void* pParam = NULL) const throw() { return pNPC != NULL && pNPC->isNPC() && pPC != NULL && pPC->isPC(); } virtual void read(PropertyBuffer & propertyBuffer) throw(Error) { } virtual string toString() const throw() { return "ConditionTalkedBy"; }};//////////////////////////////////////////////////////////////////////////////// class ConditionTalkedByFactory;//////////////////////////////////////////////////////////////////////////////class ConditionTalkedByFactory : public ConditionFactory {public: virtual ConditionType_t getConditionType() const throw() { return Condition::CONDITION_TALKED_BY; } virtual Condition* createCondition() const throw() { return new ConditionTalkedBy(); } virtual string getConditionName() const throw() { return "TalkedBy"; }};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -