TrinityCore
Loading...
Searching...
No Matches
ObjectMgr.cpp File Reference
#include "ObjectMgr.h"
#include "AreaTriggerDataStore.h"
#include "AreaTriggerTemplate.h"
#include "ArenaTeamMgr.h"
#include "AzeriteEmpoweredItem.h"
#include "AzeriteItem.h"
#include "Chat.h"
#include "Containers.h"
#include "CreatureAIFactory.h"
#include "CriteriaHandler.h"
#include "DB2Stores.h"
#include "DatabaseEnv.h"
#include "DisableMgr.h"
#include "GameObject.h"
#include "GameObjectAIFactory.h"
#include "GameTables.h"
#include "GameTime.h"
#include "GossipDef.h"
#include "GridDefines.h"
#include "GroupMgr.h"
#include "GuildMgr.h"
#include "InstanceScript.h"
#include "Item.h"
#include "ItemBonusMgr.h"
#include "LFGMgr.h"
#include "Language.h"
#include "Log.h"
#include "LootMgr.h"
#include "Mail.h"
#include "MapManager.h"
#include "MapUtils.h"
#include "MotionMaster.h"
#include "MovementTypedefs.h"
#include "ObjectAccessor.h"
#include "ObjectDefines.h"
#include "PhasingHandler.h"
#include "Player.h"
#include "PlayerChoice.h"
#include "QueryPackets.h"
#include "QueryResultStructured.h"
#include "QuestDef.h"
#include "QuestMgr.h"
#include "Random.h"
#include "RealmList.h"
#include "ReputationMgr.h"
#include "ScriptMgr.h"
#include "ScriptReloadMgr.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "SpellScript.h"
#include "StringConvert.h"
#include "TemporarySummon.h"
#include "TerrainMgr.h"
#include "ThreadPool.h"
#include "Timer.h"
#include "TransmogMgr.h"
#include "TransportMgr.h"
#include "VMapFactory.h"
#include "VMapManager.h"
#include "Vehicle.h"
#include "World.h"
#include "advstd.h"
#include <G3D/g3dmath.h>
#include <limits>
#include <numeric>
+ Include dependency graph for ObjectMgr.cpp:

Go to the source code of this file.

Classes

struct  ItemSpecStats
 

Macros

#define ChooseCreatureFlagSource(field)   ((data && data->field.has_value()) ? *data->field : cInfo->field)
 

Functions

std::string GetScriptsTableNameByType (ScriptsType type)
 
ScriptMapMap * GetScriptsMapByType (ScriptsType type)
 
std::string GetScriptCommandName (ScriptCommands command)
 
bool normalizePlayerName (std::string &name)
 
ExtendedPlayerName ExtractExtendedPlayerName (std::string const &name)
 
uint32 FillMaxDurability (uint32 itemClass, uint32 itemSubClass, uint32 inventoryType, uint32 quality, uint32 itemLevel)
 
void CheckGOLockId (GameObjectTemplate const *goInfo, uint32 dataN, uint32 N)
 
void CheckGOLinkedTrapId (GameObjectTemplate const *goInfo, uint32 dataN, uint32 N)
 
void CheckGOSpellId (GameObjectTemplate const *goInfo, uint32 dataN, uint32 N)
 
void CheckAndFixGOChairHeightId (GameObjectTemplate const *goInfo, uint32 &dataN, uint32 N)
 
void CheckGONoDamageImmuneId (GameObjectTemplate *goTemplate, uint32 dataN, uint32 N)
 
void CheckGOConsumable (GameObjectTemplate const *goInfo, uint32 dataN, uint32 N)
 
static EnumFlag< CfgCategoriesCharsets > GetRealmLanguageType (bool create)
 
bool isValidString (const std::wstring &wstr, uint32 strictMask, bool numericOrSpace, bool create=false)
 
SkillRangeType GetSkillRangeType (SkillRaceClassInfoEntry const *rcEntry)
 

Variables

ScriptMapMap sEventScripts
 

Macro Definition Documentation

◆ ChooseCreatureFlagSource

#define ChooseCreatureFlagSource (   field)    ((data && data->field.has_value()) ? *data->field : cInfo->field)

Function Documentation

◆ CheckAndFixGOChairHeightId()

void CheckAndFixGOChairHeightId ( GameObjectTemplate const *  goInfo,
uint32 &  dataN,
uint32  N 
)
inline

◆ CheckGOConsumable()

void CheckGOConsumable ( GameObjectTemplate const *  goInfo,
uint32  dataN,
uint32  N 
)
inline

◆ CheckGOLinkedTrapId()

void CheckGOLinkedTrapId ( GameObjectTemplate const *  goInfo,
uint32  dataN,
uint32  N 
)
inline

◆ CheckGOLockId()

void CheckGOLockId ( GameObjectTemplate const *  goInfo,
uint32  dataN,
uint32  N 
)
inline

◆ CheckGONoDamageImmuneId()

void CheckGONoDamageImmuneId ( GameObjectTemplate *  goTemplate,
uint32  dataN,
uint32  N 
)
inline

◆ CheckGOSpellId()

void CheckGOSpellId ( GameObjectTemplate const *  goInfo,
uint32  dataN,
uint32  N 
)
inline

◆ ExtractExtendedPlayerName()

ExtendedPlayerName ExtractExtendedPlayerName ( std::string const &  name)

◆ FillMaxDurability()

uint32 FillMaxDurability ( uint32  itemClass,
uint32  itemSubClass,
uint32  inventoryType,
uint32  quality,
uint32  itemLevel 
)

◆ GetRealmLanguageType()

static EnumFlag< CfgCategoriesCharsets > GetRealmLanguageType ( bool  create)
static

Definition at line 8665 of file ObjectMgr.cpp.

References Any, English, sCfgCategoriesStore, and sRealmList.

Referenced by isValidString().

◆ GetScriptCommandName()

◆ GetScriptsMapByType()

ScriptMapMap * GetScriptsMapByType ( ScriptsType  type)

Definition at line 97 of file ObjectMgr.cpp.

References SCRIPTS_EVENT, and sEventScripts.

Referenced by ObjectMgr::LoadScripts(), and Map::ScriptsProcess().

◆ GetScriptsTableNameByType()

std::string GetScriptsTableNameByType ( ScriptsType  type)

Definition at line 86 of file ObjectMgr.cpp.

References SCRIPTS_EVENT.

Referenced by ScriptInfo::GetDebugInfo(), and ObjectMgr::LoadScripts().

◆ GetSkillRangeType()

◆ isValidString()

bool isValidString ( const std::wstring &  wstr,
uint32  strictMask,
bool  numericOrSpace,
bool  create = false 
)

◆ normalizePlayerName()

bool normalizePlayerName ( std::string &  name)

Definition at line 157 of file ObjectMgr.cpp.

References Utf8toWStr(), wcharToUpper, wstrToLower(), and WStrToUtf8().

Referenced by ChatHandler::extractLowGuidFromLink(), ChatHandler::extractPlayerNameFromLink(), PlayerNameMapHolder::Find(), character_commandscript::GetDeletedCharacterInfoList(), ChatHandler::GetPlayerGroupAndGUIDByName(), WorldSession::HandleAddFriendOpcode(), WorldSession::HandleAddIgnoreOpcode(), ban_commandscript::HandleBanCharacterCommand(), ban_commandscript::HandleBanHelper(), ban_commandscript::HandleBanInfoCharacterCommand(), WorldSession::HandleCalendarInvite(), WorldSession::HandleChannelPlayerCommand(), character_commandscript::HandleCharacterRenameCommand(), WorldSession::HandleCharCreateOpcode(), WorldSession::HandleCharCustomizeCallback(), WorldSession::HandleCharRaceOrFactionChangeCallback(), WorldSession::HandleCharRenameOpcode(), WorldSession::HandleChatAddonMessage(), WorldSession::HandleChatMessage(), WorldSession::HandleCheckCharacterNameAvailability(), misc_commandscript::HandleFreezeCommand(), WorldSession::HandleGuildInviteByName(), WorldSession::HandleGuildSetGuildMaster(), WorldSession::HandleSendMail(), WorldSession::HandleSetPlayerDeclinedNames(), ticket_commandscript::HandleTicketAssignToCommand(), ban_commandscript::HandleUnBanCharacterCommand(), ban_commandscript::HandleUnBanHelper(), misc_commandscript::HandleUnFreezeCommand(), message_commandscript::HandleWhispersCommand(), WorldSession::HandleWhoIsOpcode(), PlayerDumpReader::LoadDump(), Trinity::ChatCommands::PlayerIdentifier::TryConsume(), and character_commandscript::ValidatePDumpTarget().

Variable Documentation

◆ sEventScripts

ScriptMapMap sEventScripts