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

📄 timemanager.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////// Filename   : TimeManager.h// Written By : Reiot//////////////////////////////////////////////////////////////////////////////#ifndef __TIME_MANAGER_H__#define __TIME_MANAGER_H__#include "Types.h"#include "GameTime.h"#define DAWN_START_HOUR    4#define DAWN_END_HOUR      8#define DAY_START_HOUR     8#define DAY_END_HOUR      16#define DUSK_START_HOUR   16#define DUSK_END_HOUR     20#define NIGHT_START_HOUR  20#define NIGHT_END_HOUR     4enum Timeband{	TIME_DAWN = 0, // 货寒	TIME_DAY,      // 撤	TIME_DUSK,     // 历翅	TIME_NIGHT,    // 广	TIME_MAX};//////////////////////////////////////////////////////////////////////////////// class TimeManager;//// 泅犁 霸烙 矫埃阑 拌魂秦林绰 概聪历 努贰胶捞促.(荤角 概聪历扼绊 且 巴档 绝促.// 捞 寇俊档 购啊 促弗 开且阑 且 巴档 鞍促...//////////////////////////////////////////////////////////////////////////////class TimeManager {public:	void init() throw(Error);	GameTime getGameTime() const throw();		time_t getgametime() const throw();	time_t getBaseGameTime() const throw() { return m_BaseGameTime; }	time_t getBaseRealTime() const throw() { return m_BaseRealTime; }	bool isDawnTime(void) const throw();	bool isDayTime(void) const throw();	bool isDuskTime(void) const throw();	bool isNightTime(void) const throw();	uint getTimeband(void) const throw();	// get debug string	string toString() const throw();private:	time_t m_BaseGameTime;	time_t m_BaseRealTime;	};// global variable declarationextern TimeManager* g_pTimeManager;#endif

⌨️ 快捷键说明

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