Weather Class Reference
[Rules]

Base class for storing current match weather. More...

#include <Weather.hh>

Inheritance diagram for Weather:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void serialize (std::ostream &os) const
virtual void unserialize (std::istream &is)
int getWeather () const
 Get the current weather (between 2 and 12).
const char * getWeatherStr () const
 Get the current weather as a string, eg: Pouring rain.
void setWeather (const MsgWeather *m)
 Set the current weather.

Protected Attributes

int weather_
 The current weather [| 2, 12 |].

Detailed Description

Base class for storing current match weather.


Member Function Documentation

int Weather::getWeather (  )  const [inline]

Get the current weather (between 2 and 12).

Returns:
The current weather.
const char * Weather::getWeatherStr (  )  const

Get the current weather as a string, eg: Pouring rain.

Returns:
A static string describing the current weather.

References weather_.


The documentation for this class was generated from the following files:
Generated on Mon Apr 5 21:17:53 2010 for Stechec/TBT by  doxygen 1.6.3