AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Files | |
file | Weather.cpp |
file | Weather.h |
file | WeatherMgr.cpp |
file | WeatherMgr.h |
file | World.cpp |
file | World.h |
Namespaces | |
namespace | WeatherMgr |
Classes | |
struct | WeatherSeasonChances |
struct | WeatherData |
class | Weather |
Weather for one zone. More... | |
struct | PetitionData |
class | World |
The World. More... | |
Macros | |
#define | WEATHER_SEASONS 4 |
#define | sWorld getWorldInstance() |
Functions | |
Weather::Weather (uint32 zone, WeatherData const *weatherChances) | |
Create the Weather object. | |
Weather::~Weather ()=default | |
bool | Weather::Update (uint32 diff) |
Launch a weather update. | |
bool | Weather::ReGenerate () |
Calculate the new weather. | |
bool | Weather::UpdateWeather () |
Send the new weather to all players in the zone. | |
void | Weather::SendWeatherUpdateToPlayer (Player *player) |
void | Weather::SetWeather (WeatherType type, float grade) |
Set the weather. | |
uint32 | Weather::GetZone () const |
For which zone is this weather? | |
uint32 | Weather::GetScriptId () const |
WeatherState | Weather::GetWeatherState () const |
Get the sound number associated with the current weather. | |
void | WeatherMgr::LoadWeatherData () |
Weather * | WeatherMgr::FindWeather (uint32 id) |
Find a Weather object by the given zoneid. | |
Weather * | WeatherMgr::AddWeather (uint32 zone_id) |
Add a Weather object to the list. | |
void | WeatherMgr::RemoveWeather (uint32 id) |
Remove a Weather object for the given zoneid. | |
void | WeatherMgr::SendFineWeatherUpdateToPlayer (Player *player) |
void | WeatherMgr::Update (uint32 diff) |
std::unique_ptr< IWorld > & | getWorldInstance () |
#define sWorld getWorldInstance() |
#define WEATHER_SEASONS 4 |
enum BillingPlanFlags |
#include <D:/azerothcore-wotlk/src/server/game/World/World.h>
Can be used in SMSG_AUTH_RESPONSE packet.
Enumerator | |
---|---|
SESSION_NONE | |
SESSION_UNUSED | |
SESSION_RECURRING_BILL | |
SESSION_FREE_TRIAL | |
SESSION_IGR | |
SESSION_USAGE | |
SESSION_TIME_MIXTURE | |
SESSION_RESTRICTED | |
SESSION_ENABLE_CAIS |
enum RealmZone |
#include <D:/azerothcore-wotlk/src/server/game/World/World.h>
enum ShutdownExitCode : uint8 |
#include <D:/azerothcore-wotlk/src/server/game/World/World.h>
Enumerator | |
---|---|
SHUTDOWN_EXIT_CODE | |
ERROR_EXIT_CODE | |
RESTART_EXIT_CODE |
enum ShutdownMask : uint8 |
#include <D:/azerothcore-wotlk/src/server/game/World/World.h>
Enumerator | |
---|---|
SHUTDOWN_MASK_RESTART | |
SHUTDOWN_MASK_IDLE |
enum WeatherState : uint32 |
#include <D:/azerothcore-wotlk/src/server/game/Weather/Weather.h>
enum WorldStates |
#include <D:/azerothcore-wotlk/src/server/game/World/World.h>
enum WorldTimers |
#include <D:/azerothcore-wotlk/src/server/game/World/World.h>
Timers for different object refresh rates.
#include <D:/azerothcore-wotlk/src/server/game/Weather/WeatherMgr.cpp>
Add a Weather object to the list.
References Weather::GetZone(), Weather::ReGenerate(), and Weather::UpdateWeather().
Referenced by misc_commandscript::HandleChangeWeather(), and Player::UpdateZone().
#include <D:/azerothcore-wotlk/src/server/game/Weather/WeatherMgr.cpp>
Find a Weather object by the given zoneid.
Referenced by misc_commandscript::HandleChangeWeather(), and Player::UpdateZone().
|
inline |
#include <D:/azerothcore-wotlk/src/server/game/Weather/Weather.h>
References Weather::m_weatherChances, and WeatherData::ScriptId.
Referenced by ScriptMgr::OnWeatherChange(), and ScriptMgr::OnWeatherUpdate().
|
private |
#include <D:/azerothcore-wotlk/src/server/game/Weather/Weather.h>
Get the sound number associated with the current weather.
References Weather::m_grade, Weather::m_type, WEATHER_STATE_BLACKRAIN, WEATHER_STATE_FINE, WEATHER_STATE_HEAVY_RAIN, WEATHER_STATE_HEAVY_SANDSTORM, WEATHER_STATE_HEAVY_SNOW, WEATHER_STATE_LIGHT_RAIN, WEATHER_STATE_LIGHT_SANDSTORM, WEATHER_STATE_LIGHT_SNOW, WEATHER_STATE_MEDIUM_RAIN, WEATHER_STATE_MEDIUM_SANDSTORM, WEATHER_STATE_MEDIUM_SNOW, WEATHER_STATE_THUNDERS, WEATHER_TYPE_BLACKRAIN, WEATHER_TYPE_FINE, WEATHER_TYPE_RAIN, WEATHER_TYPE_SNOW, WEATHER_TYPE_STORM, and WEATHER_TYPE_THUNDERS.
Referenced by Weather::SendWeatherUpdateToPlayer(), and Weather::UpdateWeather().
std::unique_ptr< IWorld > & getWorldInstance | ( | ) |
#include <D:/azerothcore-wotlk/src/server/game/World/World.h>
|
inline |
#include <D:/azerothcore-wotlk/src/server/game/Weather/Weather.h>
For which zone is this weather?
References Weather::m_zone.
Referenced by WeatherMgr::AddWeather().
void WeatherMgr::LoadWeatherData | ( | ) |
#include <D:/azerothcore-wotlk/src/server/game/Weather/WeatherMgr.cpp>
References Field::Get(), getMSTime(), GetMSTimeDiffToNow(), LOG_ERROR, LOG_INFO, LOG_WARN, MAX_WEATHER_TYPE, sObjectMgr, WEATHER_SEASONS, and WorldDatabase.
Referenced by World::SetInitialWorldSettings().
bool Weather::ReGenerate | ( | ) |
#include <D:/azerothcore-wotlk/src/server/game/Weather/Weather.h>
Calculate the new weather.
Weather statistics:
Radical change:
New weather statistics (if not fine):
References WeatherData::data, Acore::Time::GetDayInYear(), LOG_DEBUG, Weather::m_grade, Weather::m_type, Weather::m_weatherChances, Weather::m_zone, WeatherSeasonChances::rainChance, rand_norm(), WeatherSeasonChances::snowChance, WeatherSeasonChances::stormChance, urand(), WEATHER_SEASONS, WEATHER_TYPE_FINE, WEATHER_TYPE_RAIN, WEATHER_TYPE_SNOW, and WEATHER_TYPE_STORM.
Referenced by WeatherMgr::AddWeather(), and Weather::Update().
void WeatherMgr::RemoveWeather | ( | uint32 | id | ) |
#include <D:/azerothcore-wotlk/src/server/game/Weather/WeatherMgr.cpp>
Remove a Weather object for the given zoneid.
void WeatherMgr::SendFineWeatherUpdateToPlayer | ( | Player * | player | ) |
#include <D:/azerothcore-wotlk/src/server/game/Weather/WeatherMgr.cpp>
References Player::SendDirectMessage(), WEATHER_STATE_FINE, and WorldPackets::Misc::Weather::Write().
Referenced by Player::UpdateZone().
void Weather::SendWeatherUpdateToPlayer | ( | Player * | player | ) |
#include <D:/azerothcore-wotlk/src/server/game/Weather/Weather.h>
References Weather::GetWeatherState(), Weather::m_grade, Player::SendDirectMessage(), and WorldPackets::Misc::Weather::Write().
void Weather::SetWeather | ( | WeatherType | type, |
float | grade | ||
) |
#include <D:/azerothcore-wotlk/src/server/game/Weather/Weather.h>
Set the weather.
References Weather::m_grade, Weather::m_type, and Weather::UpdateWeather().
Referenced by misc_commandscript::HandleChangeWeather().
bool Weather::Update | ( | uint32 | diff | ) |
#include <D:/azerothcore-wotlk/src/server/game/Weather/Weather.h>
Launch a weather update.
References IntervalTimer::GetCurrent(), Weather::m_timer, IntervalTimer::Passed(), Weather::ReGenerate(), IntervalTimer::Reset(), IntervalTimer::SetCurrent(), sScriptMgr, IntervalTimer::Update(), and Weather::UpdateWeather().
void WeatherMgr::Update | ( | uint32 | diff | ) |
#include <D:/azerothcore-wotlk/src/server/game/Weather/WeatherMgr.cpp>
Referenced by World::Update().
bool Weather::UpdateWeather | ( | ) |
#include <D:/azerothcore-wotlk/src/server/game/Weather/Weather.h>
Send the new weather to all players in the zone.
References Weather::GetWeatherState(), LOG_DEBUG, Weather::m_grade, Weather::m_zone, sScriptMgr, sWorld, WEATHER_STATE_BLACKRAIN, WEATHER_STATE_FINE, WEATHER_STATE_FOG, WEATHER_STATE_HEAVY_RAIN, WEATHER_STATE_HEAVY_SANDSTORM, WEATHER_STATE_HEAVY_SNOW, WEATHER_STATE_LIGHT_RAIN, WEATHER_STATE_LIGHT_SANDSTORM, WEATHER_STATE_LIGHT_SNOW, WEATHER_STATE_MEDIUM_RAIN, WEATHER_STATE_MEDIUM_SANDSTORM, WEATHER_STATE_MEDIUM_SNOW, WEATHER_STATE_THUNDERS, and WorldPackets::Misc::Weather::Write().
Referenced by WeatherMgr::AddWeather(), Weather::SetWeather(), and Weather::Update().
Weather::Weather | ( | uint32 | zone, |
WeatherData const * | weatherChances | ||
) |
#include <D:/azerothcore-wotlk/src/server/game/Weather/Weather.h>
Create the Weather object.
References CONFIG_INTERVAL_CHANGEWEATHER, IntervalTimer::GetInterval(), IN_MILLISECONDS, LOG_DEBUG, Weather::m_grade, Weather::m_timer, Weather::m_type, Weather::m_zone, MINUTE, IntervalTimer::SetInterval(), sWorld, and WEATHER_TYPE_FINE.
|
default |
WeatherSeasonChances WeatherData::data[WEATHER_SEASONS] |
Referenced by Weather::ReGenerate().
|
private |
|
private |
Referenced by Weather::Update(), and Weather::Weather().
|
private |
Referenced by Weather::GetWeatherState(), Weather::ReGenerate(), Weather::SetWeather(), and Weather::Weather().
|
private |
Referenced by Weather::GetScriptId(), and Weather::ReGenerate().
|
private |
Referenced by Weather::GetZone(), Weather::ReGenerate(), Weather::UpdateWeather(), and Weather::Weather().
uint32 WeatherSeasonChances::rainChance |
Referenced by Weather::ReGenerate().
|
extern |
#include <D:/azerothcore-wotlk/src/server/game/World/World.h>
Referenced by World::_UpdateRealmCharCount(), ClearOnlineAccounts(), account_commandscript::HandleAccountSetGmLevelCommand(), WorldSession::HandleAddFriendOpcode(), WorldSocket::HandleAuthSession(), WorldSocket::HandleAuthSessionCallback(), gm_commandscript::HandleGMListFullCommand(), ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketUnAssignCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLoginFromDB(), server_commandscript::HandleServerDebugCommand(), ChatHandler::HasLowerSecurityAccount(), World::LoadConfigSettings(), World::LoadDBAllowedSecurityLevel(), LoadRealmInfo(), main(), AuthSession::RealmListCallback(), World::SetInitialWorldSettings(), StartDB(), World::Update(), RealmList::UpdateRealm(), and RealmList::UpdateRealms().
uint32 WeatherData::ScriptId |
Referenced by Weather::GetScriptId().
uint32 WeatherSeasonChances::snowChance |
Referenced by Weather::ReGenerate().
uint32 WeatherSeasonChances::stormChance |
Referenced by Weather::ReGenerate().