![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Weather.h"
Public Member Functions | |
| Weather (Map *map, uint32 zone, WeatherData const *weatherChances) | |
| Create the Weather object. | |
| ~Weather ()=default | |
| bool | Update (uint32 diff) |
| Launch a weather update. | |
| bool | ReGenerate () |
| Calculate the new weather. | |
| bool | UpdateWeather () |
| Send the new weather to all players in the zone. | |
| void | SendWeatherUpdateToPlayer (Player *player) |
| void | SetWeather (WeatherType type, float grade) |
| Set the weather. | |
| uint32 | GetZone () const |
| For which zone is this weather? | |
| uint32 | GetScriptId () const |
Static Public Member Functions | |
| static void | SendFineWeatherUpdateToPlayer (Player *player) |
Private Member Functions | |
| WeatherState | GetWeatherState () const |
| Get the sound number associated with the current weather. | |
Private Attributes | |
| Map * | m_map |
| uint32 | m_zone |
| WeatherType | m_type |
| float | m_grade |
| IntervalTimer | m_timer |
| WeatherData const * | m_weatherChances |
Weather for one zone.