TrinityCore
Weather Class Reference

Weather for one zone. More...

#include <Weather.h>

Public Member Functions

 Weather (uint32 zoneId, WeatherData const *weatherChances)
 Create the Weather object. More...
 
 ~Weather ()
 
bool Update (uint32 diff)
 Launch a weather update. More...
 
bool ReGenerate ()
 Calculate the new weather. More...
 
bool UpdateWeather ()
 Send the new weather to all players in the zone. More...
 
void SendWeatherUpdateToPlayer (Player *player)
 
void SetWeather (WeatherType type, float intensity)
 Set the weather. More...
 
WeatherState GetWeatherState () const
 Get the sound number associated with the current weather. More...
 
uint32 GetZone () const
 For which zone is this weather? More...
 
uint32 GetScriptId () const
 

Static Public Member Functions

static void SendFineWeatherUpdateToPlayer (Player *player)
 

Private Attributes

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

Detailed Description

Weather for one zone.

Definition at line 65 of file Weather.h.


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