darklightinfo.h

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

H
85
字号
//////////////////////////////////////////////////////////////////////////////// Filename    : DarkLightInfo.h// Written By  : Reiot// Description ://////////////////////////////////////////////////////////////////////////////#ifndef __DARK_LIGHT_INFO_H__#define __DARK_LIGHT_INFO_H__#include "Types.h"#include "Exception.h"class Zone;//////////////////////////////////////////////////////////////////////////////// class DarkLightInfo//////////////////////////////////////////////////////////////////////////////class DarkLightInfo {public:	DarkLightInfo() throw();	DarkLightInfo(const DarkLightInfo & dli) throw();public:	DarkLevel_t getDarkLevel() const throw() { return m_DarkLevel; }	void setDarkLevel(DarkLevel_t darkLevel) throw() { m_DarkLevel = darkLevel; }	LightLevel_t getLightLevel() const throw() { return m_LightLevel; }	void setLightLevel(LightLevel_t lightLevel) throw() { m_LightLevel = lightLevel; }	string toString() const throw();private:	// 绢涤扁 饭骇 	// 0 - 15 荤捞狼 蔼栏肺, 臭阑 荐废 拳搁捞 绢滴况柳促.	DarkLevel_t m_DarkLevel;	// 蝴狼 农扁	// 1 - 13 荤捞狼 蔼栏肺, 臭阑 荐废 蝴狼 裹困啊 目柳促.	LightLevel_t m_LightLevel;};////////////////////////////////////////////////////////////////////////////////// DLIM 狼 郴何 DLI 狼 硅凯狼 农扁////////////////////////////////////////////////////////////////////////////////const uint nDarkLightInfos = 12* 24* 6;////////////////////////////////////////////////////////////////////////////////// class DarkLightInfoManager////////////////////////////////////////////////////////////////////////////////class DarkLightInfoManager {public:	DarkLightInfoManager() throw();	~DarkLightInfoManager() throw();public:	void init() throw(Error);	void load() throw(Error);	DarkLightInfo* getDarkLightInfo(BYTE month, BYTE hour, BYTE minute) throw(OutOfBoundException, Error);	const DarkLightInfo* getDarkLightInfo(BYTE month, BYTE hour, BYTE minute) const throw(OutOfBoundException, Error);	DarkLightInfo* getCurrentDarkLightInfo( Zone* pZone ) throw(Error);	const DarkLightInfo* getCurrentDarkLightInfo( Zone* pZone ) const throw(Error);	string toString() const throw();private:	DarkLightInfo* m_DarkLightInfos[nDarkLightInfos];};// global variable declarationextern DarkLightInfoManager* g_pDarkLightInfoManager;#endif

⌨️ 快捷键说明

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