AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Common.h File Reference
#include "Define.h"
#include <string>
#include <cstdlib>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  Acore::unary_function< ArgumentType, ResultType >
 

Namespaces

namespace  Acore
 

Macros

#define STRINGIZE(a)   #a
 
#define MAX_NETCLIENT_PACKET_SIZE   (32767 - 1)
 
#define MAX_ACCOUNT_FLAG   32
 
#define DEFAULT_LOCALE   LOCALE_enUS
 
#define MAX_LOCALES   8
 
#define MAX_ACCOUNT_TUTORIAL_VALUES   8
 
#define MAX_QUERY_LEN   32*1024
 

Enumerations

enum  AccountTypes {
  SEC_PLAYER = 0 ,
  SEC_MODERATOR = 1 ,
  SEC_GAMEMASTER = 2 ,
  SEC_ADMINISTRATOR = 3 ,
  SEC_CONSOLE = 4
}
 
enum  AccountFlag {
  ACCOUNT_FLAG_GM = 0x1 ,
  ACCOUNT_FLAG_NOKICK = 0x2 ,
  ACCOUNT_FLAG_COLLECTOR = 0x4 ,
  ACCOUNT_FLAG_TRIAL = 0x8 ,
  ACCOUNT_FLAG_CANCELLED = 0x10 ,
  ACCOUNT_FLAG_IGR = 0x20 ,
  ACCOUNT_FLAG_WHOLESALER = 0x40 ,
  ACCOUNT_FLAG_PRIVILEGED = 0x80 ,
  ACCOUNT_FLAG_EU_FORBID_ELV = 0x100 ,
  ACCOUNT_FLAG_EU_FORBID_BILLING = 0x200 ,
  ACCOUNT_FLAG_RESTRICTED = 0x400 ,
  ACCOUNT_FLAG_REFERRAL = 0x800 ,
  ACCOUNT_FLAG_BLIZZARD = 0x1000 ,
  ACCOUNT_FLAG_RECURRING_BILLING = 0x2000 ,
  ACCOUNT_FLAG_NOELECTUP = 0x4000 ,
  ACCOUNT_FLAG_KR_CERTIFICATE = 0x8000 ,
  ACCOUNT_FLAG_EXPANSION_COLLECTOR = 0x10000 ,
  ACCOUNT_FLAG_DISABLE_VOICE = 0x20000 ,
  ACCOUNT_FLAG_DISABLE_VOICE_SPEAK = 0x40000 ,
  ACCOUNT_FLAG_REFERRAL_RESURRECT = 0x80000 ,
  ACCOUNT_FLAG_EU_FORBID_CC = 0x100000 ,
  ACCOUNT_FLAG_OPENBETA_DELL = 0x200000 ,
  ACCOUNT_FLAG_PROPASS = 0x400000 ,
  ACCOUNT_FLAG_PROPASS_LOCK = 0x800000 ,
  ACCOUNT_FLAG_PENDING_UPGRADE = 0x1000000 ,
  ACCOUNT_FLAG_RETAIL_FROM_TRIAL = 0x2000000 ,
  ACCOUNT_FLAG_EXPANSION2_COLLECTOR = 0x4000000 ,
  ACCOUNT_FLAG_OVERMIND_LINKED = 0x8000000 ,
  ACCOUNT_FLAG_DEMOS = 0x10000000 ,
  ACCOUNT_FLAG_DEATH_KNIGHT_OK = 0x20000000 ,
  ACCOUNT_FLAG_S2_REQUIRE_IGR = 0x40000000 ,
  ACCOUNT_FLAG_S2_TRIAL = 0x80000000
}
 
enum  LocaleConstant {
  LOCALE_enUS = 0 ,
  LOCALE_koKR = 1 ,
  LOCALE_frFR = 2 ,
  LOCALE_deDE = 3 ,
  LOCALE_zhCN = 4 ,
  LOCALE_zhTW = 5 ,
  LOCALE_esES = 6 ,
  LOCALE_esMX = 7 ,
  LOCALE_ruRU = 8 ,
  TOTAL_LOCALES
}
 

Functions

AC_COMMON_API bool IsLocaleValid (std::string const &locale)
 
AC_COMMON_API LocaleConstant GetLocaleByName (const std::string &name)
 
AC_COMMON_API const std::string GetNameByLocaleConstant (LocaleConstant localeConstant)
 
AC_COMMON_API void CleanStringForMysqlQuery (std::string &str)
 

Variables

constexpr auto SECOND = 1
 
constexpr auto MINUTE = SECOND * 60
 
constexpr auto HOUR = MINUTE * 60
 
constexpr auto DAY = HOUR * 24
 
constexpr auto WEEK = DAY * 7
 
constexpr auto MONTH = DAY * 30
 
constexpr auto YEAR = MONTH * 12
 
constexpr auto IN_MILLISECONDS = 1000
 
constexpr uint32 ACCOUNT_FLAGS_ALL
 
AC_COMMON_API char const * localeNames [TOTAL_LOCALES]
 

Macro Definition Documentation

◆ DEFAULT_LOCALE

#define DEFAULT_LOCALE   LOCALE_enUS

◆ MAX_ACCOUNT_FLAG

#define MAX_ACCOUNT_FLAG   32

◆ MAX_ACCOUNT_TUTORIAL_VALUES

#define MAX_ACCOUNT_TUTORIAL_VALUES   8

◆ MAX_LOCALES

#define MAX_LOCALES   8

◆ MAX_NETCLIENT_PACKET_SIZE

#define MAX_NETCLIENT_PACKET_SIZE   (32767 - 1)

◆ MAX_QUERY_LEN

#define MAX_QUERY_LEN   32*1024

◆ STRINGIZE

#define STRINGIZE (   a)    #a

Enumeration Type Documentation

◆ AccountFlag

Enumerator
ACCOUNT_FLAG_GM 
ACCOUNT_FLAG_NOKICK 
ACCOUNT_FLAG_COLLECTOR 
ACCOUNT_FLAG_TRIAL 
ACCOUNT_FLAG_CANCELLED 
ACCOUNT_FLAG_IGR 
ACCOUNT_FLAG_WHOLESALER 
ACCOUNT_FLAG_PRIVILEGED 
ACCOUNT_FLAG_EU_FORBID_ELV 
ACCOUNT_FLAG_EU_FORBID_BILLING 
ACCOUNT_FLAG_RESTRICTED 
ACCOUNT_FLAG_REFERRAL 
ACCOUNT_FLAG_BLIZZARD 
ACCOUNT_FLAG_RECURRING_BILLING 
ACCOUNT_FLAG_NOELECTUP 
ACCOUNT_FLAG_KR_CERTIFICATE 
ACCOUNT_FLAG_EXPANSION_COLLECTOR 
ACCOUNT_FLAG_DISABLE_VOICE 
ACCOUNT_FLAG_DISABLE_VOICE_SPEAK 
ACCOUNT_FLAG_REFERRAL_RESURRECT 
ACCOUNT_FLAG_EU_FORBID_CC 
ACCOUNT_FLAG_OPENBETA_DELL 
ACCOUNT_FLAG_PROPASS 
ACCOUNT_FLAG_PROPASS_LOCK 
ACCOUNT_FLAG_PENDING_UPGRADE 
ACCOUNT_FLAG_RETAIL_FROM_TRIAL 
ACCOUNT_FLAG_EXPANSION2_COLLECTOR 
ACCOUNT_FLAG_OVERMIND_LINKED 
ACCOUNT_FLAG_DEMOS 
ACCOUNT_FLAG_DEATH_KNIGHT_OK 
ACCOUNT_FLAG_S2_REQUIRE_IGR 
ACCOUNT_FLAG_S2_TRIAL 
66{
67 ACCOUNT_FLAG_GM = 0x1, // Account is GM
68 ACCOUNT_FLAG_NOKICK = 0x2, // NYI UNK
69 ACCOUNT_FLAG_COLLECTOR = 0x4, // NYI Collector's Edition
70 ACCOUNT_FLAG_TRIAL = 0x8, // NYI Trial account
71 ACCOUNT_FLAG_CANCELLED = 0x10, // NYI UNK
72 ACCOUNT_FLAG_IGR = 0x20, // NYI Internet Game Room (Internet cafe?)
73 ACCOUNT_FLAG_WHOLESALER = 0x40, // NYI UNK
74 ACCOUNT_FLAG_PRIVILEGED = 0x80, // NYI UNK
75 ACCOUNT_FLAG_EU_FORBID_ELV = 0x100, // NYI UNK
76 ACCOUNT_FLAG_EU_FORBID_BILLING = 0x200, // NYI UNK
77 ACCOUNT_FLAG_RESTRICTED = 0x400, // NYI UNK
78 ACCOUNT_FLAG_REFERRAL = 0x800, // NYI Recruit-A-Friend, either referer or referee
79 ACCOUNT_FLAG_BLIZZARD = 0x1000, // NYI UNK
80 ACCOUNT_FLAG_RECURRING_BILLING = 0x2000, // NYI UNK
81 ACCOUNT_FLAG_NOELECTUP = 0x4000, // NYI UNK
82 ACCOUNT_FLAG_KR_CERTIFICATE = 0x8000, // NYI Korean certificate?
83 ACCOUNT_FLAG_EXPANSION_COLLECTOR = 0x10000, // NYI TBC Collector's Edition
84 ACCOUNT_FLAG_DISABLE_VOICE = 0x20000, // NYI Can't join voice chat
85 ACCOUNT_FLAG_DISABLE_VOICE_SPEAK = 0x40000, // NYI Can't speak in voice chat
86 ACCOUNT_FLAG_REFERRAL_RESURRECT = 0x80000, // NYI Scroll of Resurrection
87 ACCOUNT_FLAG_EU_FORBID_CC = 0x100000, // NYI UNK
88 ACCOUNT_FLAG_OPENBETA_DELL = 0x200000, // NYI https://wowpedia.fandom.com/wiki/Dell_XPS_M1730_World_of_Warcraft_Edition
89 ACCOUNT_FLAG_PROPASS = 0x400000, // NYI UNK
90 ACCOUNT_FLAG_PROPASS_LOCK = 0x800000, // NYI Pro pass (arena tournament)
91 ACCOUNT_FLAG_PENDING_UPGRADE = 0x1000000, // NYI UNK
92 ACCOUNT_FLAG_RETAIL_FROM_TRIAL = 0x2000000, // NYI UNK
93 ACCOUNT_FLAG_EXPANSION2_COLLECTOR = 0x4000000, // NYI WotLK Collector's Edition
94 ACCOUNT_FLAG_OVERMIND_LINKED = 0x8000000, // NYI Linked with Battle.net account
95 ACCOUNT_FLAG_DEMOS = 0x10000000, // NYI UNK
96 ACCOUNT_FLAG_DEATH_KNIGHT_OK = 0x20000000, // NYI Has level 55 on account?
97 // Below might be StarCraft II related
98 ACCOUNT_FLAG_S2_REQUIRE_IGR = 0x40000000, // NYI UNK
99 ACCOUNT_FLAG_S2_TRIAL = 0x80000000, // NYI UNK
100 // ACCOUNT_FLAG_S2_RESTRICTED = 0xFFFFFFFF, // NYI UNK
101};
@ ACCOUNT_FLAG_NOKICK
Definition Common.h:68
@ ACCOUNT_FLAG_S2_TRIAL
Definition Common.h:99
@ ACCOUNT_FLAG_DISABLE_VOICE
Definition Common.h:84
@ ACCOUNT_FLAG_BLIZZARD
Definition Common.h:79
@ ACCOUNT_FLAG_EU_FORBID_CC
Definition Common.h:87
@ ACCOUNT_FLAG_CANCELLED
Definition Common.h:71
@ ACCOUNT_FLAG_TRIAL
Definition Common.h:70
@ ACCOUNT_FLAG_GM
Definition Common.h:67
@ ACCOUNT_FLAG_REFERRAL
Definition Common.h:78
@ ACCOUNT_FLAG_PROPASS_LOCK
Definition Common.h:90
@ ACCOUNT_FLAG_PENDING_UPGRADE
Definition Common.h:91
@ ACCOUNT_FLAG_DEMOS
Definition Common.h:95
@ ACCOUNT_FLAG_EXPANSION_COLLECTOR
Definition Common.h:83
@ ACCOUNT_FLAG_NOELECTUP
Definition Common.h:81
@ ACCOUNT_FLAG_PROPASS
Definition Common.h:89
@ ACCOUNT_FLAG_EXPANSION2_COLLECTOR
Definition Common.h:93
@ ACCOUNT_FLAG_S2_REQUIRE_IGR
Definition Common.h:98
@ ACCOUNT_FLAG_IGR
Definition Common.h:72
@ ACCOUNT_FLAG_PRIVILEGED
Definition Common.h:74
@ ACCOUNT_FLAG_WHOLESALER
Definition Common.h:73
@ ACCOUNT_FLAG_DEATH_KNIGHT_OK
Definition Common.h:96
@ ACCOUNT_FLAG_DISABLE_VOICE_SPEAK
Definition Common.h:85
@ ACCOUNT_FLAG_RECURRING_BILLING
Definition Common.h:80
@ ACCOUNT_FLAG_EU_FORBID_ELV
Definition Common.h:75
@ ACCOUNT_FLAG_RESTRICTED
Definition Common.h:77
@ ACCOUNT_FLAG_REFERRAL_RESURRECT
Definition Common.h:86
@ ACCOUNT_FLAG_OVERMIND_LINKED
Definition Common.h:94
@ ACCOUNT_FLAG_KR_CERTIFICATE
Definition Common.h:82
@ ACCOUNT_FLAG_COLLECTOR
Definition Common.h:69
@ ACCOUNT_FLAG_OPENBETA_DELL
Definition Common.h:88
@ ACCOUNT_FLAG_EU_FORBID_BILLING
Definition Common.h:76
@ ACCOUNT_FLAG_RETAIL_FROM_TRIAL
Definition Common.h:92

◆ AccountTypes

Enumerator
SEC_PLAYER 
SEC_MODERATOR 
SEC_GAMEMASTER 
SEC_ADMINISTRATOR 
SEC_CONSOLE 
56{
57 SEC_PLAYER = 0,
58 SEC_MODERATOR = 1,
61 SEC_CONSOLE = 4 // must be always last in list, accounts must have less security level always also
62};
@ SEC_PLAYER
Definition Common.h:57
@ SEC_ADMINISTRATOR
Definition Common.h:60
@ SEC_GAMEMASTER
Definition Common.h:59
@ SEC_MODERATOR
Definition Common.h:58
@ SEC_CONSOLE
Definition Common.h:61

◆ LocaleConstant

Enumerator
LOCALE_enUS 
LOCALE_koKR 
LOCALE_frFR 
LOCALE_deDE 
LOCALE_zhCN 
LOCALE_zhTW 
LOCALE_esES 
LOCALE_esMX 
LOCALE_ruRU 
TOTAL_LOCALES 
117{
118 LOCALE_enUS = 0,
119 LOCALE_koKR = 1,
120 LOCALE_frFR = 2,
121 LOCALE_deDE = 3,
122 LOCALE_zhCN = 4,
123 LOCALE_zhTW = 5,
124 LOCALE_esES = 6,
125 LOCALE_esMX = 7,
126 LOCALE_ruRU = 8,
127
129};
@ LOCALE_zhCN
Definition Common.h:122
@ LOCALE_deDE
Definition Common.h:121
@ LOCALE_zhTW
Definition Common.h:123
@ LOCALE_esES
Definition Common.h:124
@ TOTAL_LOCALES
Definition Common.h:128
@ LOCALE_ruRU
Definition Common.h:126
@ LOCALE_frFR
Definition Common.h:120
@ LOCALE_enUS
Definition Common.h:118
@ LOCALE_koKR
Definition Common.h:119
@ LOCALE_esMX
Definition Common.h:125

Function Documentation

◆ CleanStringForMysqlQuery()

AC_COMMON_API void CleanStringForMysqlQuery ( std::string &  str)
62{
63 std::string::size_type n = 0;
64 while ((n = str.find('\\')) != str.npos) { str.erase(n, 1); }
65 while ((n = str.find('"')) != str.npos) { str.erase(n, 1); }
66 while ((n = str.find('\'')) != str.npos) { str.erase(n, 1); }
67}

Referenced by WorldSession::HandleMailTakeItem(), WorldSession::HandleSendMail(), and Map::LogEncounterFinished().

◆ GetLocaleByName()

◆ GetNameByLocaleConstant()

AC_COMMON_API const std::string GetNameByLocaleConstant ( LocaleConstant  localeConstant)
52{
53 if (localeConstant < TOTAL_LOCALES)
54 {
55 return localeNames[localeConstant];
56 }
57
58 return "enUS"; // Default value for unsupported or invalid LocaleConstant
59}

References localeNames, and TOTAL_LOCALES.

Referenced by server_commandscript::HandleServerMotdCommand().

◆ IsLocaleValid()

AC_COMMON_API bool IsLocaleValid ( std::string const &  locale)
34{
35 for (int i = 0; i < TOTAL_LOCALES; ++i)
36 if (locale == localeNames[i])
37 return true;
38
39 return false;
40}

References localeNames, and TOTAL_LOCALES.

Referenced by server_commandscript::HandleServerSetMotdCommand(), and MotdMgr::LoadMotdLocale().

Variable Documentation

◆ ACCOUNT_FLAGS_ALL

◆ DAY

constexpr auto DAY = HOUR * 24
constexpr

Referenced by InstanceSaveMgr::_ResetOrWarnAll(), InstanceSaveMgr::AddInstanceSave(), Channel::CleanOldChannelsInDB(), Player::DeleteOldCharacters(), Player::DeleteOldRecoveryItems(), GetAge(), Acore::Time::GetLocalHourTimestamp(), Acore::Time::GetNextTimeWithDayAndHour(), WorldSession::HandleGetMailList(), npc_echo_of_medivh::HandlePieceJustDied(), WorldSession::HandleQueryNextMailTime(), Guild::HandleRoster(), Corpse::IsExpired(), boss_azuregos::boss_azuregosAI::JustDied(), npc_medivh_bm::JustDied(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::JustDied(), ObjectMgr::LoadCreatures(), InstanceSaveMgr::LoadResetTimes(), npc_riggle_bassbait::npc_riggle_bassbaitAI::npc_riggle_bassbaitAI(), instance_ulduar::instance_ulduar_InstanceMapScript::OnGameObjectCreate(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnGameObjectCreate(), go_strange_pool::OnGossipHello(), instance_ulduar::instance_ulduar_InstanceMapScript::OnUnitDeath(), npc_argent_captainAI::Reset(), Creature::Respawn(), ObjectMgr::ReturnOrDeleteOldMails(), secsToTimeString(), MailDraft::SendMailTo(), instance_molten_core::instance_molten_core_InstanceMapScript::SetBossState(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::SetBossState(), instance_blackrock_depths::instance_blackrock_depths_InstanceMapScript::SetData(), instance_karazhan::instance_karazhan_InstanceMapScript::SetData(), instance_oculus::instance_oculus_InstanceMapScript::SetData(), instance_ulduar::instance_ulduar_InstanceMapScript::SetData(), npc_crate_helper::npc_crate_helperAI::SpellHit(), TimeStringToSecs(), BattlegroundMgr::Update(), GameObject::Update(), and Player::UpdateHonorFields().

◆ HOUR

◆ IN_MILLISECONDS

constexpr auto IN_MILLISECONDS = 1000
constexpr

Referenced by Player::_AddSpellCooldown(), Pet::_LoadAuras(), Player::_LoadAuras(), Player::_LoadQuestStatus(), Pet::_LoadSpellCooldowns(), Player::_LoadSpellCooldowns(), Battleground::_ProcessJoin(), Battleground::_ProcessProgress(), Pet::_SaveAuras(), Player::_SaveAuras(), Player::_SaveQuestStatus(), Pet::_SaveSpellCooldowns(), Player::_SaveSpellCooldowns(), spell_rog_cheat_death::Absorb(), Player::AddQuest(), Player::AddSpellAndCategoryCooldowns(), GameObject::AddToSkillupList(), Player::ApplyEquipCooldown(), AuctionHouseMgr::AuctionHouseMgr(), Aura::Aura(), SearchableAuctionEntry::BuildAuctionInfo(), WorldConfig::BuildConfigCache(), spell_shadowfang_keep_haunting_spirits_aura::CalcPeriodic(), spell_serpentshrine_cavern_coilfang_water::CalcPeriodic(), spell_allergies::CalcPeriodic(), spell_dk_pet_scaling::CalcPeriodic(), spell_dk_army_of_the_dead_passive::CalcPeriodic(), spell_pet_hit_expertise_scalling::CalcPeriodic(), spell_pet_intellect_spirit_resilience_scaling::CalcPeriodic(), spell_pet_spellhit_expertise_spellpen_scaling::CalcPeriodic(), spell_hun_generic_scaling::CalcPeriodic(), spell_item_goblin_gumbo_kettle::CalcPeriodic(), spell_mage_pet_scaling::CalcPeriodic(), spell_sha_feral_spirit_scaling::CalcPeriodic(), spell_warl_improved_demonic_tactics::CalcPeriodic(), spell_warl_demonic_knowledge::CalcPeriodic(), spell_warl_generic_scaling::CalcPeriodic(), Player::CalculateCorpseReclaimDelay(), AuraEffect::CalculatePeriodic(), MotionTransport::CalculateSegmentPos(), Spell::CheckCast(), boss_lord_valthalak::boss_lord_valthalakAI::DamageTaken(), npc_thrall_warchief::npc_thrall_warchiefAI::DoAction(), npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::DoAction(), npc_muradin_bronzebeard_igb::npc_muradin_bronzebeard_igbAI::DoAction(), npc_chesspiece::DoAction(), boss_yoggsaron_brain::boss_yoggsaron_brainAI::DoAction(), ChaseMovementGenerator< T >::DoUpdate(), Spell::EffectDistract(), Spell::EffectDuel(), Spell::EffectEnchantHeldItem(), Spell::EffectOpenLock(), Spell::EffectSchoolDMG(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectSummonPlayer(), Spell::EffectSummonRaFFriend(), Spell::EffectTransmitted(), boss_kiljaeden::EmpowerOrb(), boss_warmaster_voone::boss_warmastervooneAI::ExecuteEvent(), npc_xt002_boombot::npc_xt002_boombotAI::Explode(), TransportMgr::GeneratePath(), GetDiminishingReturnsLimitDuration(), BattlegroundWS::GetMatchTime(), Player::getMaxTimer(), go_brazier_of_madness::GossipHello(), spell_scourge_disguise_instability::HandleApply(), Aura::HandleAuraSpecificMods(), AuraEffect::HandleAuraTransform(), bf_commandscript::HandleBattlefieldTimer(), WardenWin::HandleData(), debug_commandscript::HandleDebugBoundaryCommand(), deserter_commandscript::HandleDeserterAdd(), deserter_commandscript::HandleDeserterRemove(), deserter_commandscript::HandleDeserterRemoveAll(), Player::HandleDrowning(), spell_midsummer_summon_ahune_lieutenant::HandleDummy(), Unit::HandleDummyAuraProc(), spell_yogg_saron_sanity_well_aura::HandleEffectCalcPeriodic(), spell_gen_haunted_aura::HandleEffectCalcPeriodic(), spell_midsummer_ribbon_pole::HandleEffectPeriodic(), spell_gen_haunted_aura::HandleEffectPeriodic(), spell_q11919_q11940_drake_hunt_aura::HandleEffectRemove(), spell_icc_sprit_alarm::HandleEvent(), spell_icc_geist_alarm::HandleEvent(), WorldState::HandleExternalEvent(), spell_q5056_summon_shy_rotam::HandleFinish(), spell_summon_ragnaros::HandleHit(), WorldSession::HandleMoveTeleportAck(), spell_gen_haunted::HandleOnEffectHit(), spell_pal_sacred_shield_base::HandleProc(), ArenaSpectator::HandleResetCommand(), misc_commandscript::HandleSaveCommand(), spell_q12690_burst_at_the_seams::HandleScript(), spell_deliver_gryphon::HandleScriptEffect(), spell_q9847_a_spirit_ally::HandleSendEvent(), ArenaSpectator::HandleSpectatorSpectateCommand(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::Initialize(), npc_general_andorov::InitializeAI(), npc_chesspiece::InitializeCombatSpellsByEntry(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::instance_icecrown_citadel_InstanceMapScript(), instance_vault_of_archavon::instance_vault_of_archavon_InstanceMapScript::IsEncounterInProgress(), Creature::IsNotReachableAndNeedRegen(), boss_lord_valthalak::boss_lord_valthalakAI::IsSummonedBy(), npc_spiritual_insight::npc_spiritual_insightAI::IsSummonedBy(), npc_ahnqiraji_critter::JustDied(), npc_xt002_boombot::npc_xt002_boombotAI::JustDied(), boss_mimiron::boss_mimironAI::JustEngagedWith(), boss_blackheart_the_inciter::JustEngagedWith(), boss_high_nethermancer_zerevor::JustEngagedWith(), Player::KillPlayer(), World::LoadConfigSettings(), AchievementMgr::LoadFromDB(), SpellMgr::LoadSpellInfoCorrections(), Unit::ModSpellDuration(), npc_brewfest_keg_reciver::MoveInLineOfSight(), npc_chesspiece::MovementInform(), npc_archmage_landalock::npc_archmage_landalockAI::npc_archmage_landalockAI(), npc_chesspiece::npc_chesspiece(), achievement_wg_within_our_grasp::OnCheck(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnCreatureCreate(), spell_blackrock_spire_call_of_vaelastrasz::OnEffect(), spell_pagles_point_cast::OnEffect(), instance_molten_core::instance_molten_core_InstanceMapScript::OnGameObjectCreate(), npc_sayge::OnGossipSelect(), npc_pet_gen_argent_pony_bridle::OnGossipSelect(), npc_grandmother::OnGossipSelect(), instance_stratholme::instance_stratholme_InstanceMapScript::OnPlayerEnter(), spell_silithyst::OnRemove(), npc_hyldsmeet_protodrake::npc_hyldsmeet_protodrakeAI::PassengerBoarded(), BattlegroundWS::PostUpdateImpl(), npc_barnes::npc_barnesAI::PrepareEncounter(), Aura::RefreshDuration(), Creature::Regenerate(), Player::Regenerate(), Creature::RegenerateHealth(), Player::RegenerateHealth(), Player::RemoveArenaSpellCooldowns(), Unit::RemoveAurasDueToSpellBySteal(), lfg::LFGMgr::RemoveProposal(), Player::ReportedAfkBy(), boss_drekthar::boss_drektharAI::Reset(), boss_galvangar::boss_galvangarAI::Reset(), boss_vanndar::boss_vanndarAI::Reset(), npc_echo_of_medivh::Reset(), npc_shadowpriest_sezziz::npc_shadowpriest_sezzizAI::Reset(), boss_archavon::boss_archavonAI::Reset(), boss_emalon::boss_emalonAI::Reset(), boss_koralon::boss_koralonAI::Reset(), boss_toravon::boss_toravonAI::Reset(), npc_pet_gen_argent_pony_bridle::Reset(), npc_minion_spawner::Reset(), Player::ResurrectPlayer(), OutdoorPvPTF::SaveRequiredWorldStates(), boss_alar::ScheduleAbilities(), npc_pallid_horror::ScheduleTasks(), instance_molten_core::instance_molten_core_InstanceMapScript::SetBossState(), AchievementMgr::SetCriteriaProgress(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetData(), instance_ulduar::instance_ulduar_InstanceMapScript::SetData(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::SetData(), boss_the_beast::boss_thebeastAI::SetData(), World::SetInitialWorldSettings(), BattlefieldWG::SetupBattlefield(), OutdoorPvPTF::SetupOutdoorPvP(), npc_brewfest_keg_reciver::sGossipSelect(), npc_thrall_bfu::npc_thrall_bfuAI::SpawnWave(), boss_julianne::SpellHit(), npc_gothik_trigger::npc_gothik_triggerAI::SpellHit(), npc_chesspiece::SpellHitTarget(), BattlegroundWS::StartingEventOpenDoors(), go_firework_show::StartShow(), AchievementMgr::StartTimedAchievement(), SummonCroneIfReady(), npc_necrotic_shard::SummonCultists(), npc_pallid_horror::SummonFlameshockers(), npc_eris_hevenfire::npc_eris_hevenfireAI::SummonPeasants(), boss_ambassador_flamelash::boss_ambassador_flamelashAI::SummonSpirits(), CreatureAI::TriggerAlert(), GameEventMgr::Update(), spell_item_goblin_gumbo_kettle::Update(), Warden::Update(), Battleground::Update(), BattlegroundMgr::Update(), BattlefieldWG::Update(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::Update(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::Update(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::Update(), instance_vault_of_archavon::instance_vault_of_archavon_InstanceMapScript::Update(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::Update(), GameObject::Update(), Creature::Update(), Player::Update(), boss_drekthar::boss_drektharAI::UpdateAI(), boss_galvangar::boss_galvangarAI::UpdateAI(), boss_vanndar::boss_vanndarAI::UpdateAI(), boss_overlord_wyrmthalak::boss_overlordwyrmthalakAI::UpdateAI(), boss_the_beast::boss_thebeastAI::UpdateAI(), npc_chesspiece::UpdateAI(), npc_eris_hevenfire::npc_eris_hevenfireAI::UpdateAI(), npc_varian_wrynn::npc_varian_wrynnAI::UpdateAI(), npc_thrall_bfu::npc_thrall_bfuAI::UpdateAI(), npc_forest_frog::UpdateAI(), npc_coren_direbrew::UpdateAI(), npc_costumed_orphan_matron::UpdateAI(), boss_headless_horseman::UpdateAI(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::UpdateAI(), npc_time_rift::UpdateAI(), npc_shadowpriest_sezziz::npc_shadowpriest_sezzizAI::UpdateAI(), boss_slad_ran::boss_slad_ranAI::UpdateAI(), boss_sapphiron::boss_sapphironAI::UpdateAI(), npc_crystalline_frayer::UpdateAI(), npc_freya_ward::npc_freya_wardAI::UpdateAI(), npc_thorims_hammer::npc_thorims_hammerAI::UpdateAI(), npc_archmage_landalock::npc_archmage_landalockAI::UpdateAI(), PetAI::UpdateAllies(), CinematicMgr::UpdateCinematicLocation(), Player::UpdateEnergyRegen(), npc_tirions_gambit_tirion::npc_tirions_gambit_tirionAI::UpdateEscortAI(), lfg::LFGMgr::UpdateProposal(), Player::UpdateRuneRegen(), GameObject::Use(), npc_tirions_gambit_tirion::npc_tirions_gambit_tirionAI::WaypointReached(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::WaypointReached(), npc_cork_gizelton::npc_cork_gizeltonAI::WaypointReached(), and Weather::Weather().

◆ localeNames

◆ MINUTE

constexpr auto MINUTE = SECOND * 60
constexpr

Referenced by Player::_LoadItem(), Battleground::_ProcessProgress(), InstanceSaveMgr::_ResetOrWarnAll(), Player::_SaveSpellCooldowns(), spell_rog_cheat_death::Absorb(), GameObject::AddToSkillupList(), AuctionHouseMgr::AuctionHouseMgr(), WorldConfig::BuildConfigCache(), instance_vault_of_archavon::instance_vault_of_archavon_InstanceMapScript::CheckAchievementCriteriaMeet(), Spell::CheckCast(), GameEventMgr::CheckOneGameEvent(), boss_yoggsaron_brain::boss_yoggsaron_brainAI::DoAction(), Spell::EffectEnchantHeldItem(), boss_kiljaeden::EmpowerOrb(), BattlefieldWG::FillInitialWorldStates(), BattlegroundWS::GetMatchTime(), Player::getMaxTimer(), spell_q9452_cast_net::HandleActiveObject(), spell_scourge_disguise_instability::HandleApply(), WorldSession::HandleAuctionSellItem(), BattlegroundIC::HandleCapturedNodes(), spell_midsummer_summon_ahune_lieutenant::HandleDummy(), spell_midsummer_ribbon_pole::HandleEffectPeriodic(), spell_q11919_q11940_drake_hunt_aura::HandleEffectRemove(), spell_icc_geist_alarm::HandleEvent(), event_commandscript::HandleEventInfoCommand(), WorldState::HandleExternalEvent(), spell_q5056_summon_shy_rotam::HandleFinish(), WorldSession::HandleMessagechatOpcode(), misc_commandscript::HandleMuteCommand(), Battlefield::HandlePlayerEnterZone(), ArenaSpectator::HandleResetCommand(), spell_deliver_gryphon::HandleScriptEffect(), spell_q9847_a_spirit_ally::HandleSendEvent(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::Initialize(), instance_vault_of_archavon::instance_vault_of_archavon_InstanceMapScript::IsEncounterInProgress(), Corpse::IsExpired(), npc_spiritual_insight::npc_spiritual_insightAI::IsSummonedBy(), boss_mimiron::boss_mimironAI::JustEngagedWith(), boss_high_nethermancer_zerevor::JustEngagedWith(), Player::KillPlayer(), World::LoadConfigSettings(), main(), Unit::ModSpellDuration(), GameEventMgr::NextCheck(), npc_archmage_landalock::npc_archmage_landalockAI::npc_archmage_landalockAI(), achievement_wg_within_our_grasp::OnCheck(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::OnCreatureCreate(), npc_wg_queue::OnGossipHello(), npc_wg_queue::OnGossipSelect(), npc_pet_gen_argent_pony_bridle::OnGossipSelect(), boss_gloomrel::OnGossipSelect(), instance_stratholme::instance_stratholme_InstanceMapScript::OnPlayerEnter(), spell_silithyst::OnRemove(), npc_hyldsmeet_protodrake::npc_hyldsmeet_protodrakeAI::PassengerBoarded(), BattlegroundWS::PostUpdateImpl(), Player::RemoveArenaSpellCooldowns(), Unit::RemoveAurasDueToSpellBySteal(), Player::ReportedAfkBy(), npc_dark_iron_attack_generator::Reset(), boss_archavon::boss_archavonAI::Reset(), boss_emalon::boss_emalonAI::Reset(), boss_koralon::boss_koralonAI::Reset(), boss_toravon::boss_toravonAI::Reset(), Creature::Respawn(), Player::ResurrectPlayer(), boss_alar::ScheduleAbilities(), secsToTimeString(), BattlefieldWG::SendUpdateWorldStates(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetData(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::SetData(), Group::SetDifficultyChangePrevention(), GameEventMgr::SetHolidayEventTime(), World::SetInitialWorldSettings(), Creature::SetPickPocketLootTime(), BattlefieldWG::SetupBattlefield(), World::ShutdownMsg(), BattlegroundAV::StartingEventOpenDoors(), BattlegroundWS::StartingEventOpenDoors(), go_firework_show::StartShow(), GameEventMgr::StopEvent(), go_wind_stone::go_wind_stoneAI::SummonNPC(), npc_eris_hevenfire::npc_eris_hevenfireAI::SummonPeasants(), TimeStringToSecs(), Battleground::Update(), instance_stratholme::instance_stratholme_InstanceMapScript::Update(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::Update(), instance_zulfarrak::instance_zulfarrak_InstanceMapScript::Update(), instance_vault_of_archavon::instance_vault_of_archavon_InstanceMapScript::Update(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::Update(), GameObject::Update(), Player::UpdateAfkReport(), npc_forest_frog::UpdateAI(), npc_time_rift::UpdateAI(), npc_archmage_landalock::npc_archmage_landalockAI::UpdateAI(), npc_wg_queue::npc_wg_queueAI::UpdateAI(), npc_tirions_gambit_tirion::npc_tirions_gambit_tirionAI::UpdateEscortAI(), npc_tirions_gambit_tirion::npc_tirions_gambit_tirionAI::WaypointReached(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::WaypointReached(), and Weather::Weather().

◆ MONTH

◆ SECOND

constexpr auto SECOND = 1
constexpr

◆ WEEK

◆ YEAR

constexpr auto YEAR = MONTH * 12
constexpr