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

📄 weatherinfo.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
////////////////////////////////////////////////////////////////////////////////// Filename    : WeatherInfo.h// Written By  : Reiot// Description : ////////////////////////////////////////////////////////////////////////////////#ifndef __WEATHER_INFO_H__#define __WEATHER_INFO_H__#include "Types.h"#include "Exception.h"////////////////////////////////////////////////////////////////////////////////// class WeatherInfo;////////////////////////////////////////////////////////////////////////////////class WeatherInfo {public:	// 犬伏蔼阑 颇扼固磐肺 逞败林搁, 坷疵狼 朝揪甫 府畔茄促.	Weather getWeather(uint probability) const throw();	// 漂沥 朝揪狼 犬伏阑 府畔茄促.	uint getProbability(Weather weather) const throw() { return m_Probabilities[weather]; }	// 漂沥 朝揪狼 犬伏阑 瘤沥茄促.	void setProbability(Weather weather, uint prob) throw() { m_Probabilities[weather] = prob; }	// get debug string	string toString() const throw();private:	uint m_Probabilities[WEATHER_MAX];};////////////////////////////////////////////////////////////////////////////////// class WeatherInfoManager;//// 岿喊 朝揪 沥焊甫 包府窍绰 概聪历 努贰胶捞促.////////////////////////////////////////////////////////////////////////////////class WeatherInfoManager {public:	// init vision info	void init() throw(Error) { load(); }	// load from database	void load() throw(Error);	// save to database	void save() throw(Error) { throw UnsupportedError(); }	// get vision info	const WeatherInfo & getWeatherInfo(int month) const throw(OutOfBoundException)	{		if(month > 12) throw OutOfBoundException("too large month value");		return m_WeatherInfos[ month - 1 ];	}	// get debug string	string toString() const throw();private:	// WeatherInfo狼 捞瞒盔 硅凯	WeatherInfo m_WeatherInfos[12];};// global variable declarationextern WeatherInfoManager* g_pWeatherInfoManager;#endif

⌨️ 快捷键说明

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