Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Weather Class Reference

Weather for one zone. More...

#include <Weather.h>

Collaboration diagram for Weather:

Public Member Functions

uint32 GetScriptId () const
uint32 GetZone () const
 For which zone is this weather?
bool ReGenerate ()
 Calculate the new weather.
void SendWeatherUpdateToPlayer (Player *player)
void SetWeather (WeatherType type, float grade)
 Set the weather.
bool Update (uint32 diff)
 Launch a weather update.
bool UpdateWeather ()
 Send the new weather to all players in the zone.
 Weather (uint32 zone, WeatherData const *weatherChances)
 Create the Weather object.
 ~Weather ()

Private Member Functions

WeatherState GetWeatherState () const
 Get the sound number associated with the current weather.

Private Attributes

float m_grade
IntervalTimer m_timer
WeatherType m_type
WeatherData const * m_weatherChances
uint32 m_zone

Detailed Description

Weather for one zone.

Definition at line 52 of file Weather.h.


The documentation for this class was generated from the following files: