Weather.hh
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef WEATHER_HH_
00018 # define WEATHER_HH_
00019
00020 # include "Constants.hh"
00021 # include "rules/PacketHandler.hh"
00022
00029 DECLARE_PACKET(MSG_WEATHER, MsgWeather)
00030 int weather;
00031 END_PACKET;
00032
00037 class Weather
00038 {
00039 public:
00040 Weather();
00041 virtual ~Weather() {}
00042
00043 virtual void serialize(std::ostream& os) const;
00044 virtual void unserialize(std::istream& is);
00045
00048 int getWeather() const;
00051 const char* getWeatherStr() const;
00052
00054 void setWeather(const MsgWeather* m);
00055
00056 protected:
00057
00058 int weather_;
00059 };
00060
00061 inline int Weather::getWeather() const
00062 {
00063 return weather_;
00064 }
00065
00066 #endif