|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Namespaces | |
| namespace | WeatherMgr |
Classes | |
| struct | CharacterNameData |
| struct | CliCommandHolder |
| Storage class for commands issued for delayed execution. More... | |
| class | Weather |
| Weather for one zone. More... | |
| struct | WeatherData |
| struct | WeatherSeasonChances |
| class | World |
| The World. More... | |
Macros | |
| #define | sWorld Skyfire::Singleton<World, Skyfire::NullMutex>::instance() |
| #define | WEATHER_SEASONS 4 |
Typedefs | |
| typedef std::map< uint32, std::string > | RealmNameMap |
| typedef UNORDERED_MAP< uint32, WorldSession * > | SessionMap |
Functions | |
| Weather * | WeatherMgr::AddWeather (uint32 zone_id) |
| Add a Weather object to the list. | |
| Weather * | WeatherMgr::FindWeather (uint32 id) |
| Find a Weather object by the given zoneid. | |
| uint32 | Weather::GetScriptId () const |
| WeatherState | Weather::GetWeatherState () const |
| Get the sound number associated with the current weather. | |
| uint32 | Weather::GetZone () const |
| For which zone is this weather? | |
| void | WeatherMgr::LoadWeatherData () |
| bool | Weather::ReGenerate () |
| Calculate the new weather. | |
| void | WeatherMgr::RemoveWeather (uint32 id) |
| Remove a Weather object for the given zoneid. | |
| void | WeatherMgr::SendFineWeatherUpdateToPlayer (Player *player) |
| void | Weather::SendWeatherUpdateToPlayer (Player *player) |
| void | Weather::SetWeather (WeatherType type, float grade) |
| Set the weather. | |
| bool | Weather::Update (uint32 diff) |
| Launch a weather update. | |
| void | WeatherMgr::Update (uint32 diff) |
| bool | Weather::UpdateWeather () |
| Send the new weather to all players in the zone. | |
| Weather::Weather (uint32 zone, WeatherData const *weatherChances) | |
| Create the Weather object. | |
| Weather::~Weather () | |
| #define sWorld Skyfire::Singleton<World, Skyfire::NullMutex>::instance() |
#include <World.h>
Definition at line 910 of file World.h.
Referenced by Guild::_CreateLogHolders(), Player::_GetCurrencyWeekCap(), Creature::_GetDamageMod(), Creature::_GetHealthMod(), Player::_LoadQuestStatus(), Player::_LoadSkills(), Battleground::_ProcessJoin(), Battleground::_ProcessOfflineQueue(), InstanceSaveManager::_ResetOrWarnAll(), CharacterBooster::_SaveBoostedChar(), Player::_SaveQuestStatus(), Player::_SaveStats(), Master::_StartDB(), Player::ActivateTaxiPathTo(), BattlegroundQueue::AddGroup(), World::AddSession_(), Creature::AllLootRemovedFromCorpse(), GameEventMgr::ApplyNewEvent(), ArenaTeam::ArenaTeam(), BattlegroundMgr::BattlegroundMgr(), SocialMgr::BroadcastToFriendListers(), BattlegroundMgr::BuildBattlegroundListPacket(), Player::BuildEnumData(), ObjectMgr::BuildPlayerLevelInfo(), Unit::BuildValuesUpdate(), Player::BuyItemFromVendorSlot(), Player::CalculateReputationGain(), Creature::CallAssistance(), Creature::CanCreatureAttack(), MapManager::CanPlayerEnter(), Player::CanSeeStartQuest(), Creature::CanStartAttack(), OPvPCapturePointHP::ChangeState(), OPvPCapturePointTF::ChangeState(), OPvPCapturePointZM_Beacon::ChangeState(), Player::CheckAreaExploreAndOutdoor(), Player::CheckInstanceCount(), BattlegroundQueue::CheckNormalMatch(), ObjectMgr::CheckPetName(), ObjectMgr::CheckPlayerName(), BattlegroundQueue::CheckPremadeMatch(), CharacterDatabaseCleaner::CleanDatabase(), Channel::CleanOldChannelsInDB(), ObjectAccessor::ConvertCorpseForPlayer(), BattlePetMgr::Create(), Creature::Create(), Player::Create(), AccountMgr::CreateAccount(), BlackMarketMgr::CreateAuctions(), GameObject::CreateModel(), Creature::Creature(), Unit::DealDamage(), AuctionHouseMgr::DeleteExpiredAuctionsAtStartup(), Player::DeleteFromDB(), Player::DeleteOldCharacters(), MapInstanced::DestroyInstance(), boss_ignis::boss_ignis_AI::DoAction(), boss_magus_telestra::boss_magus_telestraAI::DoAction(), Spell::DoCreateItem(), Creature::DoFleeToGetAssistance(), WorldSession::DosProtection::DosProtection(), TargetedMovementGeneratorMedium< T, D >::DoUpdate(), Player::DuelComplete(), Player::DurabilityRepair(), Spell::EffectBattlePetsUnlock(), Spell::EffectMilling(), Spell::EffectProspecting(), Spell::EffectStuck(), Battleground::EndBattleground(), Map::EnsureGridCreated_i(), WorldSession::DosProtection::EvaluateOpcode(), Battleground::EventPlayerLoggedOut(), Map::ExistMap(), Map::ExistVMap(), OPvPCapturePointNA::FactionTakeOver(), BattlegroundQueue::FillPlayersToBG(), AssistanceMovementGenerator::Finalize(), ChannelMgr::forTeam(), Skyfire::XP::Gain(), Loot::generateMoneyLoot(), ObjectMgr::GeneratePetName(), Creature::GetAttackDistance(), AuctionEntry::GetAuctionCut(), AuctionHouseMgr::GetAuctionDeposit(), AuctionHouseMgr::GetAuctionHouseEntry(), AuctionHouseMgr::GetAuctionsMap(), MembershipRequest::GetClass(), Player::GetCorpseReclaimDelay(), Player::GetCurrencyTotalCap(), WorldSession::getDialogStatus(), SocialMgr::GetFriendInfo(), LuaGlobalFunctions::GetGameTime(), MembershipRequest::GetLevel(), Creature::getLevelForTarget(), ReputationMgr::GetLFGBonus(), BattlegroundMgr::GetMaxRatingDifference(), Player::getMaxTimer(), LuaGuild::GetMembers(), MembershipRequest::GetName(), Player::GetNextResetSpecializationCost(), Player::GetNextResetTalentsCost(), ObjectMgr::GetPetLevelInfo(), ObjectMgr::GetPlayerClassLevelInfo(), LuaGlobalFunctions::GetPlayerCount(), LuaGlobalFunctions::GetPlayersInWorld(), BattlegroundMgr::GetPrematureFinishTime(), CreatureTextMgr::GetRangeForChatType(), BattlegroundMgr::GetRatingDiscardTimer(), GetRealmLanguageType(), Quest::GetRewMoney(), CliHandler::GetSessionDbcLocale(), GetSkillDiscoverySpell(), Creature::GetSpellDamageMod(), Player::GetsRecruitAFriendBonus(), Player::GiveLevel(), Pet::GivePetXP(), Guild::GiveXP(), LuaPlayer::GiveXP(), Player::GiveXP(), Group::GroupLoot(), RASocket::handle_credentials(), Guild::HandleAcceptMember(), account_commandscript::HandleAccountAddonCommand(), account_commandscript::HandleAccountCommand(), account_commandscript::HandleAccountPasswordCommand(), account_commandscript::HandleAccountSetAddonCommand(), WorldSession::HandleAddonMessagechatOpcode(), message_commandscript::HandleAnnounceCommand(), OutdoorPvPSI::HandleAreaTrigger(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleAuctionSellItem(), WorldSocket::HandleAuthSession(), ban_commandscript::HandleBanCharacterCommand(), ban_commandscript::HandleBanHelper(), WorldSession::HandleCalendarEventInvite(), WorldSession::HandleChangePlayerNameOpcodeCallBack(), misc_commandscript::HandleChangeWeather(), character_commandscript::HandleCharacterDeletedOldCommand(), character_commandscript::HandleCharacterDeletedRestoreHelper(), character_commandscript::HandleCharacterRenameCommand(), WorldSession::HandleCharCreateCallback(), WorldSession::HandleCharCreateOpcode(), WorldSession::HandleCharCustomize(), WorldSession::HandleCharEnum(), WorldSession::HandleCharEnumOpcode(), WorldSession::HandleCharFactionOrRaceChange(), WardenWin::HandleData(), misc_commandscript::HandleDieCommand(), Player::HandleFall(), message_commandscript::HandleGMAnnounceCommand(), gm_commandscript::HandleGMListIngameCommand(), message_commandscript::HandleGMNameAnnounceCommand(), message_commandscript::HandleGMNotifyCommand(), WorldSession::HandleGMResponseResolve(), WorldSession::HandleGMTicketCreateOpcode(), WorldSession::HandleGMTicketDeleteOpcode(), WorldSession::HandleGMTicketUpdateOpcode(), WorldSession::HandleGrantLevel(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGuildFinderBrowse(), WorldSession::HandleGuildRequestMaxDailyXP(), WorldSession::HandleInitiateTradeOpcode(), Guild::HandleInviteMember(), misc_commandscript::HandleKickPlayerCommand(), Guild::HandleLeaveMember(), lookup_commandscript::HandleLookupAreaCommand(), lookup_commandscript::HandleLookupCreatureCommand(), lookup_commandscript::HandleLookupEventCommand(), lookup_commandscript::HandleLookupFactionCommand(), lookup_commandscript::HandleLookupItemCommand(), lookup_commandscript::HandleLookupItemSetCommand(), lookup_commandscript::HandleLookupMapCommand(), lookup_commandscript::HandleLookupObjectCommand(), lookup_commandscript::HandleLookupQuestCommand(), lookup_commandscript::HandleLookupSkillCommand(), lookup_commandscript::HandleLookupSpellCommand(), lookup_commandscript::HandleLookupTaxiNodeCommand(), lookup_commandscript::HandleLookupTeleCommand(), lookup_commandscript::HandleLookupTitleCommand(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleLootOpcode(), WorldSession::HandleMessagechatOpcode(), misc_commandscript::HandleMuteCommand(), message_commandscript::HandleNameAnnounceCommand(), message_commandscript::HandleNotifyCommand(), npc_commandscript::HandleNpcSetAllowMovementCommand(), npc_commandscript::HandleNpcSetLevelCommand(), WorldSession::HandleOfferPetitionOpcode(), OPvPCapturePointZM_GraveYard::HandleOpenGo(), WorldSession::HandlePetitionSignOpcode(), misc_commandscript::HandlePInfoCommand(), WorldSocket::HandlePing(), misc_commandscript::HandlePlayAllCommand(), WorldSession::HandlePlayerLogin(), GameEventMgr::HandleQuestComplete(), reload_commandscript::HandleReloadAutobroadcastCommand(), reload_commandscript::HandleReloadConfigCommand(), reload_commandscript::HandleReloadRBACCommand(), reload_commandscript::HandleReloadWardenactionCommand(), reset_commandscript::HandleResetAllCommand(), reset_commandscript::HandleResetLevelCommand(), Guild::HandleRoster(), misc_commandscript::HandleSaveCommand(), WorldSession::HandleSendMail(), server_commandscript::HandleServerIdleRestartCommand(), server_commandscript::HandleServerIdleShutDownCommand(), server_commandscript::HandleServerInfoCommand(), server_commandscript::HandleServerMotdCommand(), server_commandscript::HandleServerPLimitCommand(), server_commandscript::HandleServerRestartCommand(), server_commandscript::HandleServerRestartTimeCommand(), server_commandscript::HandleServerSetClosedCommand(), server_commandscript::HandleServerSetDiffTimeCommand(), server_commandscript::HandleServerSetMotdCommand(), server_commandscript::HandleServerShutDownCancelCommand(), server_commandscript::HandleServerShutDownCommand(), server_commandscript::HandleServerUptimeCommand(), WorldSession::HandleSubmitBugOpcode(), WorldSession::HandleSubmitSuggestOpcode(), WorldSession::HandleTextEmoteOpcode(), ticket_commandscript::HandleToggleGMTicketSystem(), WorldSession::HandleTurnInPetitionOpcode(), ban_commandscript::HandleUnBanCharacterCommand(), ban_commandscript::HandleUnBanHelper(), misc_commandscript::HandleUnmuteCommand(), WorldSession::HandleWhoOpcode(), ChatHandler::HasLowerSecurityAccount(), rbac::RBACData::HasPermission(), BfWGGameObjectBuilding::Init(), World::InitCurrencyResetTime(), World::InitGuildResetTime(), LoginQueryHolder::Initialize(), MapManager::Initialize(), TicketMgr::Initialize(), World::InitMonthlyQuestResetTime(), Player::InitPrimaryProfessions(), World::InitRandomBGResetTime(), Player::InitStatsForLevel(), World::InitWeeklyQuestResetTime(), InstanceMap::InstanceMap(), Quest::IsAllowedInRaid(), Player::IsAtGroupRewardDistance(), Player::IsAtRecruitAFriendDistance(), Quest::IsAutoAccept(), Quest::IsAutoComplete(), BlackMarketMgr::isBlackMarketOpen(), ConditionMgr::isConditionTypeValid(), Player::IsGroupVisibleFor(), MMAP::MMapFactory::IsPathfindingEnabled(), ObjectMgr::IsValidCharterName(), ChatHandler::isValidChatMessage(), Channel::JoinChannel(), Unit::Kill(), Player::LeaveBattleground(), lfg::LFGMgr::LFGMgr(), Channel::List(), CinematicSequenceMgr::Load(), World::LoadConfigSettings(), LoadDB2(), PlayerDumpReader::LoadDump(), Player::LoadFromDB(), GuildMgr::LoadGuilds(), GuildMgr::LoadGuildXpForLevel(), ObjectMgr::LoadItemTemplates(), Map::LoadMap(), MMAP::MMapManager::loadMap(), MMAP::MMapManager::loadMapData(), Map::LoadMMap(), ObjectMgr::LoadPetLevelInfo(), ObjectMgr::LoadPlayerCreateLevelStatsData(), ObjectMgr::LoadPlayerCreateSpellsData(), ObjectMgr::LoadPlayerCreateXpData(), ObjectMgr::LoadQuests(), InstanceSaveManager::LoadResetTimes(), lfg::LFGMgr::LoadRewards(), MMAP::MMapManager::LoadTile(), Map::LoadVMap(), WardenCheckMgr::LoadWardenChecks(), WardenCheckMgr::LoadWardenOverrides(), lookup_commandscript::LookupPlayerSearchCommand(), MapManager::MapManager(), Group::MasterLoot(), Condition::Meets(), WorldObject::MonsterSay(), WorldObject::MonsterSay(), WorldObject::MonsterTextEmote(), WorldObject::MonsterTextEmote(), WorldObject::MonsterYell(), WorldObject::MonsterYell(), Group::NeedBeforeGreed(), ns1__executeCommand(), ChatLogScript::OnChat(), ChatLogScript::OnChat(), ChatLogScript::OnChat(), ChatLogScript::OnChat(), ChatLogScript::OnChat(), npc_rogue_trainer::OnGossipHello(), npc_rogue_trainer::OnGossipSelect(), Player::OnGossipSelect(), AreaTrigger_at_area_52_entrance::OnTrigger(), AreaTrigger_at_brewfest::OnTrigger(), Warden::Penalty(), Player::PetSpellInitialize(), Player::Player(), Player::PrepareGossipMenu(), LootTemplate::Process(), Weather::ReGenerate(), Creature::Regenerate(), Player::Regenerate(), Creature::RegenerateHealth(), Player::RegenerateHealth(), Creature::RegenerateMana(), Map::RemoveFromMap(), Map::RemoveFromMap(), InstanceMap::RemovePlayerFromMap(), World::RemoveQueuedPlayer(), Player::removeSpell(), WardenWin::RequestData(), World::ResetCurrencyWeekCap(), World::ResetGuildCap(), Group::ResetInstances(), World::ResetMonthlyQuests(), World::ResetRandomBG(), Player::ResetTalents(), WorldSession::ResetTimeOutTime(), World::ResetWeeklyQuests(), Player::ResurrectPlayer(), Player::RewardHonor(), Player::RewardQuest(), Unit::RewardRage(), Battleground::RewardXPAtKill(), LootStoreItem::Roll(), CliRunnable::Run(), Master::Run(), WorldRunnable::Run(), Player::Satisfy(), BfWGGameObjectBuilding::Save(), WGWorkshop::Save(), WintergraspWorkshopData::Save(), Player::SaveToDB(), Channel::Say(), Player::Say(), Map::ScriptCommandStart(), Map::ScriptsProcess(), Map::ScriptsStart(), AchievementMgr< T >::SendAchievementEarned(), AchievementMgr< Guild >::SendAchievementEarned(), WorldSession::SendAuctionHello(), AuctionHouseMgr::SendAuctionSuccessfulMail(), World::SendAutoBroadcast(), Player::SendBattlefieldWorldStates(), CreatureTextMgr::SendChatPacket(), Player::SendCorpseReclaimDelay(), ChatHandler::SendGlobalGMSysMessage(), ChatHandler::SendGlobalSysMessage(), PlayerMenu::SendGossipMenu(), Guild::SendGuildReputationWeeklyCap(), Player::SendInitialPacketsBeforeAddToMap(), Guild::SendLoginInfo(), Player::SendLoot(), MailDraft::SendMailTo(), WorldSession::SendNameQueryOpcode(), CreatureTextMgr::SendNonChatPacket(), WorldSession::SendPetitionQueryOpcode(), WorldSession::SendQueryTimeResponse(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestList(), PlayerMenu::SendQuestGiverRequestItems(), PlayerMenu::SendQuestQueryResponse(), Player::SendQuestReward(), MailDraft::SendReturnToSender(), Player::SendTalentWipeConfirm(), LuaGlobalFunctions::SendWorldMessage(), Creature::SendZoneUnderAttackMessage(), InstanceScript::ServerAllowsTwoSideGroups(), Creature::setDeathState(), Unit::SetFeared(), Player::SetGameMaster(), Player::SetInGuild(), Unit::SetLevel(), ReputationMgr::SetOneFactionReputation(), Player::SetRestBonus(), lfg::LFGMgr::SetTeam(), BattlefieldWG::SetupBattlefield(), SkillGainChance(), RASocket::start_command(), GameEventMgr::StartArenaSeason(), GameEventMgr::StartEvent(), Player::StoreLootItem(), Spell::TakeRunePower(), Player::TextEmote(), BattlegroundMgr::ToggleArenaTesting(), BattlegroundMgr::ToggleTesting(), AuctionHouseObject::Update(), BattlefieldWG::Update(), BattlegroundMgr::Update(), BlackMarketMgr::Update(), GameObject::Update(), Player::Update(), Warden::Update(), World::Update(), AchievementMgr< T >::UpdateAchievementCriteria(), Player::UpdateBlockPercentage(), Player::UpdateCorpseReclaimDelay(), Player::UpdateCraftSkill(), Player::UpdateCritPercentage(), Player::UpdateDodgePercentage(), Player::UpdateFishingSkill(), Player::UpdateGatherSkill(), Group::UpdateLooterGuid(), Player::UpdateParryPercentage(), Player::UpdatePvPState(), Player::UpdateRestAreaState(), Player::UpdateSpeakTime(), Weather::UpdateWeather(), GameEventMgr::UpdateWorldStates(), Player::UpdateZone(), GameObject::Use(), Player::VehicleSpellInitialize(), ObjectGridUnloader::Visit(), Weather::Weather(), WorldSession::WorldSession(), PlayerDumpWriter::WriteDump(), Player::Yell(), and Player::~Player().
| #define WEATHER_SEASONS 4 |
#include <Weather.h>
Definition at line 19 of file Weather.h.
Referenced by WeatherMgr::LoadWeatherData(), and Weather::ReGenerate().
| typedef std::map<uint32, std::string> RealmNameMap |
| typedef UNORDERED_MAP<uint32, WorldSession*> SessionMap |
| enum BillingPlanFlags |
|
strong |
#include <World.h>
Server rates.
| enum RealmType |
| enum RealmZone |
#include <World.h>
| enum ServerMessageType |
#include <World.h>
| enum ShutdownExitCode |
| enum ShutdownMask |
| enum WeatherState |
#include <Weather.h>
|
strong |
#include <World.h>
Configuration elements.
|
strong |
#include <World.h>
|
strong |
#include <World.h>
| enum WorldStates |
| enum WorldTimers |
#include <WeatherMgr.cpp>
Add a Weather object to the list.
Definition at line 55 of file WeatherMgr.cpp.
References Weather::GetZone(), Weather::ReGenerate(), and Weather::UpdateWeather().
Referenced by AuraEffect::HandleAuraForceWeather(), misc_commandscript::HandleChangeWeather(), and Player::UpdateZone().
#include <WeatherMgr.cpp>
Find a Weather object by the given zoneid.
Definition at line 38 of file WeatherMgr.cpp.
Referenced by AuraEffect::HandleAuraForceWeather(), misc_commandscript::HandleChangeWeather(), and Player::UpdateZone().
|
inline |
#include <Weather.h>
Definition at line 67 of file Weather.h.
References m_weatherChances.
Referenced by LuaWeather::GetScriptId(), ScriptMgr::OnWeatherChange(), and ScriptMgr::OnWeatherUpdate().
|
private |
#include <Weather.h>
Get the sound number associated with the current weather.
Definition at line 278 of file Weather.cpp.
References m_grade, 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 SendWeatherUpdateToPlayer(), and UpdateWeather().
|
inline |
#include <Weather.h>
For which zone is this weather?
Definition at line 66 of file Weather.h.
References m_zone.
Referenced by WeatherMgr::AddWeather(), LuaWeather::GetZoneId(), and HookMgr::OnChange().
| void WeatherMgr::LoadWeatherData | ( | ) |
#include <WeatherMgr.cpp>
Definition at line 71 of file WeatherMgr.cpp.
References WeatherData::data, getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), MAX_WEATHER_TYPE, WeatherSeasonChances::rainChance, WeatherData::ScriptId, SF_LOG_ERROR, SF_LOG_INFO, WeatherSeasonChances::snowChance, sObjectMgr, WeatherSeasonChances::stormChance, WEATHER_SEASONS, and WorldDatabase.
Referenced by World::SetInitialWorldSettings().
| bool Weather::ReGenerate | ( | ) |
#include <Weather.h>
Calculate the new weather.
Weather statistics:
Radical change:
New weather statistics (if not fine):
Definition at line 59 of file Weather.cpp.
References Skyfire::LocalTime(), m_grade, m_type, m_weatherChances, m_zone, rand_norm(), SF_LOG_INFO, sWorld, WEATHER_SEASONS, WEATHER_TYPE_FINE, WEATHER_TYPE_RAIN, WEATHER_TYPE_SNOW, and WEATHER_TYPE_STORM.
Referenced by WeatherMgr::AddWeather(), LuaWeather::Regenerate(), and Update().
| void WeatherMgr::RemoveWeather | ( | uint32 | id | ) |
#include <WeatherMgr.cpp>
Remove a Weather object for the given zoneid.
Definition at line 45 of file WeatherMgr.cpp.
| void WeatherMgr::SendFineWeatherUpdateToPlayer | ( | Player * | player | ) |
#include <WeatherMgr.cpp>
Definition at line 131 of file WeatherMgr.cpp.
References ByteBuffer::FlushBits(), Player::GetSession(), WorldSession::SendPacket(), SMSG_WEATHER, WEATHER_STATE_FINE, and ByteBuffer::WriteBit().
Referenced by AuraEffect::HandleAuraForceWeather(), and Player::UpdateZone().
| void Weather::SendWeatherUpdateToPlayer | ( | Player * | player | ) |
#include <Weather.h>
Definition at line 183 of file Weather.cpp.
References ByteBuffer::FlushBits(), Player::GetSession(), GetWeatherState(), m_grade, WorldSession::SendPacket(), SMSG_WEATHER, and ByteBuffer::WriteBit().
Referenced by LuaWeather::SendWeatherUpdateToPlayer().
| void Weather::SetWeather | ( | WeatherType | type, |
| float | grade ) |
#include <Weather.h>
Set the weather.
Definition at line 267 of file Weather.cpp.
References m_grade, m_type, and UpdateWeather().
Referenced by misc_commandscript::HandleChangeWeather(), and LuaWeather::SetWeather().
| bool Weather::Update | ( | uint32 | diff | ) |
#include <Weather.h>
Launch a weather update.
Definition at line 34 of file Weather.cpp.
References m_timer, ReGenerate(), sScriptMgr, and UpdateWeather().
| void WeatherMgr::Update | ( | uint32 | diff | ) |
#include <WeatherMgr.cpp>
Definition at line 141 of file WeatherMgr.cpp.
Referenced by World::Update().
| bool Weather::UpdateWeather | ( | ) |
#include <Weather.h>
Send the new weather to all players in the zone.
Definition at line 194 of file Weather.cpp.
References ByteBuffer::FlushBits(), GetWeatherState(), m_grade, m_zone, Player::SendMessageToSet(), SF_LOG_INFO, SMSG_WEATHER, 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 ByteBuffer::WriteBit().
Referenced by WeatherMgr::AddWeather(), SetWeather(), Update(), and LuaWeather::UpdateWeather().
| Weather::Weather | ( | uint32 | zone, |
| WeatherData const * | weatherChances ) |
#include <Weather.h>
Create the Weather object.
Definition at line 23 of file Weather.cpp.
References CONFIG_INTERVAL_CHANGEWEATHER, IN_MILLISECONDS, m_grade, m_timer, m_type, m_weatherChances, m_zone, MINUTE, SF_LOG_INFO, sWorld, and WEATHER_TYPE_FINE.
| WeatherSeasonChances WeatherData::data[WEATHER_SEASONS] |
Definition at line 29 of file Weather.h.
Referenced by WeatherMgr::LoadWeatherData().
|
private |
Definition at line 73 of file Weather.h.
Referenced by GetWeatherState(), ReGenerate(), SendWeatherUpdateToPlayer(), SetWeather(), UpdateWeather(), and Weather().
|
private |
|
private |
Definition at line 72 of file Weather.h.
Referenced by GetWeatherState(), ReGenerate(), SetWeather(), and Weather().
|
private |
Definition at line 75 of file Weather.h.
Referenced by GetScriptId(), ReGenerate(), and Weather().
|
private |
Definition at line 71 of file Weather.h.
Referenced by GetZone(), ReGenerate(), UpdateWeather(), and Weather().
| uint32 WeatherSeasonChances::rainChance |
Definition at line 22 of file Weather.h.
Referenced by WeatherMgr::LoadWeatherData().
|
extern |
#include <World.h>
Id of the realm.
Definition at line 73 of file Main.cpp.
Referenced by Guild::_SendSetNewGuildMaster(), gm_commandscript::HandleGMListFullCommand(), gm_commandscript::HandleGMNoteCommand(), ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketUnAssignCommand(), Guild::HandleInviteMember(), misc_commandscript::HandlePInfoCommand(), Guild::HandleQuery(), WorldSession::HandleQueryNextMailTime(), ticket_commandscript::HandleTicketAssignToCommand(), ticket_commandscript::HandleTicketUnAssignCommand(), WorldSession::HandleWhoOpcode(), rbac_commandscript::ReadParams(), AchievementMgr< T >::SendAchievementEarned(), AchievementMgr< T >::SendAllAchievementData(), and AuctionHouseMgr::SendAuctionWonMail().
|
extern |
#include <World.h>
Definition at line 72 of file Main.cpp.
Referenced by Master::_StartDB(), World::_UpdateRealmCharCount(), Master::ClearOnlineAccounts(), WorldSession::HandleGroupInviteOpcode(), World::LoadAutobroadcasts(), World::LoadDBAllowedSecurityLevel(), Master::Run(), WorldSession::SendAuthResponse(), WorldSession::SendRealmNameQueryOpcode(), World::SetInitialWorldSettings(), and World::Update().
| uint32 WeatherData::ScriptId |
Definition at line 30 of file Weather.h.
Referenced by WeatherMgr::LoadWeatherData().
| uint32 WeatherSeasonChances::snowChance |
Definition at line 23 of file Weather.h.
Referenced by WeatherMgr::LoadWeatherData().
| uint32 WeatherSeasonChances::stormChance |
Definition at line 24 of file Weather.h.
Referenced by WeatherMgr::LoadWeatherData().