⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 warscheduler.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
///////////////////////////////////////////////////////////////////// WarScheduler.h//// Zone俊 嘿绢辑 倒酒埃促.///////////////////////////////////////////////////////////////////#ifndef __WAR_SCHEDULER_H__#define __WAR_SCHEDULER_H__#include "Types.h"#include "Work.h"#include "Scheduler.h"#include "War.h"#include "Mutex.h"const int MaxWarSchedule = 10;class Zone;class GCWarScheduleList;class WarScheduler : public Scheduler{public:	WarScheduler( Zone* pZone ) throw (Error);	virtual ~WarScheduler() throw (Error);public:	void load() throw(Error);	void tinysave( WarID_t warID, const string& query ) throw(Error);	bool addWar( War* pWar ) throw(Error);	bool canAddWar( WarType_t warType ) throw(Error);	Zone* getZone() const { return m_pZone; }	void	cancelGuildSchedules() throw (Error);	bool	hasSchedule( GuildID_t gID ) throw(Error);	int 	getWarTypeCount(WarType_t warType) throw(Error);	virtual Work* heartbeat() throw(Error);protected :	VSDateTime	 			getLastWarDateTime( WarType_t warType ) const;	VSDateTime 				getNextWarDateTime( WarType_t warType ) const;public :	static VSDateTime 		getNextWarDateTime( WarType_t warType, const VSDateTime& dt );	bool 	makeGCWarScheduleList(GCWarScheduleList* pGCWarScheduleList) const throw (Error);public :	void	lock() throw (Error)		{ m_Mutex.lock(); }	void	unlock() throw (Error)		{ m_Mutex.unlock(); }private:	Zone*	m_pZone;	mutable Mutex	m_Mutex;};#endif // __WAR_SCHEDULER_H__

⌨️ 快捷键说明

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