📄 conditionatfirst.h
字号:
///////////////////////////////////////////////////////////////////////////////// Filename : ConditionAtFirst.h// Written By : // Description :// NPC 啊 肺爹等 流饶俊 弥檬肺 茄锅父 角青登绢具 窍绰 咀记甸阑// 捞 牧叼记苞 楷包矫难林搁 磊悼栏肺 角青等促.//////////////////////////////////////////////////////////////////////////////#ifndef __AT_FIRST_H__#define __AT_FIRST_H__#include "Condition.h"#include "ConditionFactory.h"//////////////////////////////////////////////////////////////////////////////// class ConditionAtFirst;//////////////////////////////////////////////////////////////////////////////class ConditionAtFirst : public Condition {public: virtual ConditionType_t getConditionType() const throw() { return CONDITION_AT_FIRST; } virtual bool isActive() const throw() { return true; } virtual bool isSatisfied(Creature* pCreature1, Creature* pCreature2 = NULL, void* pParam = NULL) const throw() { return true; } virtual void read(PropertyBuffer & propertyBuffer) throw(Error) {} virtual string toString() const throw() { return "AtFirst"; }};//////////////////////////////////////////////////////////////////////////////// class ConditionAtFirstFactory;//////////////////////////////////////////////////////////////////////////////class ConditionAtFirstFactory : public ConditionFactory {public: virtual ConditionType_t getConditionType() const throw() { return Condition::CONDITION_AT_FIRST; } virtual Condition* createCondition() const throw() { return new ConditionAtFirst(); } virtual string getConditionName() const throw() { return "AtFirst"; }};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -