#ifndef MABINOGIWEATHER_H #define MABINOGIWEATHER_H #include "Glass_global.h" #include class CMabiWeather; class GLASSSHARED_EXPORT Weather : public QObject { Q_OBJECT Q_ENUMS(WeatherType) public: enum WeatherType { Storm, Rain, Cloud, Clear, }; explicit Weather(int region, QObject *parent = 0); ~Weather(); int region() const; qreal weather(uint timespan) const; WeatherType weatherType(qreal weather) const; qreal rainAmount(qreal weather) const; static int weatherTypeToInt(WeatherType weatherType); static QString weatherTypeToString(WeatherType weatherType); static int compareWeatherType(WeatherType a, WeatherType b); private: int pRegion; CMabiWeather *pWeather; }; #endif // MABINOGIWEATHER_H