conditionatfirst.h
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 43 行
H
43 行
///////////////////////////////////////////////////////////////////////////////// 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 + =
减小字号Ctrl + -
显示快捷键?