conditioneverytime.h

来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 59 行

H
59
字号
////////////////////////////////////////////////////////////////////////////////// Filename    : ConditionEveryTime.h// Written By  : // Description :// 概 林扁付促 漂沥 咀记阑 角青窍档废 茄促.////////////////////////////////////////////////////////////////////////////////#ifndef __EVERY_TIME_H__#define __EVERY_TIME_H__#include "Condition.h"#include "ConditionFactory.h"#include "Creature.h"//////////////////////////////////////////////////////////////////////////////// class ConditionEveryTime;//////////////////////////////////////////////////////////////////////////////class ConditionEveryTime : public Condition {public:	virtual ConditionType_t getConditionType() const throw() { return CONDITION_EVERY_TIME; }	virtual bool isActive() 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();public:	Turn_t getTurn() const throw() { return m_Turn; }	void setTurn(Turn_t turn) throw() { m_Turn = turn; }	Timeval & getNextTurn() throw() { return m_NextTurn; }	const Timeval & getNextTurn() const throw() { return m_NextTurn; }	void setNextTurn(Timeval tv) throw() { m_NextTurn = tv; }	private:	Turn_t m_Turn;	// 促澜 角青矫埃	// isSatisfied() 啊 const method 捞瘤父, 郴何俊辑 蔼阑 函版秦具	// 窍扁 锭巩俊 mutable 肺 汲沥沁促.	mutable Timeval m_NextTurn;	};//////////////////////////////////////////////////////////////////////////////// class ConditionEveryTimeFactory;//////////////////////////////////////////////////////////////////////////////class ConditionEveryTimeFactory : public ConditionFactory {public:    virtual ConditionType_t getConditionType() const throw() { return Condition::CONDITION_EVERY_TIME; }    virtual Condition* createCondition() const throw() { return new ConditionEveryTime(); }    virtual string getConditionName() const throw() { return "EveryTime"; }};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?