TrinityCore
ObjectMgr.cpp File Reference
#include "ObjectMgr.h"
#include "ArenaTeamMgr.h"
#include "AreaTriggerDataStore.h"
#include "AreaTriggerTemplate.h"
#include "AzeriteEmpoweredItem.h"
#include "AzeriteItem.h"
#include "Chat.h"
#include "Containers.h"
#include "CreatureAIFactory.h"
#include "CriteriaHandler.h"
#include "DatabaseEnv.h"
#include "DB2Stores.h"
#include "DisableMgr.h"
#include "GameObject.h"
#include "GameObjectAIFactory.h"
#include "GameTables.h"
#include "GameTime.h"
#include "GridDefines.h"
#include "GossipDef.h"
#include "GroupMgr.h"
#include "GuildMgr.h"
#include "InstanceScript.h"
#include "Item.h"
#include "ItemBonusMgr.h"
#include "Language.h"
#include "LFGMgr.h"
#include "Log.h"
#include "LootMgr.h"
#include "Mail.h"
#include "MapManager.h"
#include "MotionMaster.h"
#include "MovementTypedefs.h"
#include "ObjectAccessor.h"
#include "ObjectDefines.h"
#include "PhasingHandler.h"
#include "Player.h"
#include "QueryPackets.h"
#include "QuestDef.h"
#include "Random.h"
#include "Realm.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 "TransportMgr.h"
#include "Vehicle.h"
#include "VMapFactory.h"
#include "VMapManager2.h"
#include "World.h"
#include <G3D/g3dmath.h>
#include <numeric>
#include <limits>
+ 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)
 
ScriptMapMapGetScriptsMapByType (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< CfgCategoriesCharsetsGetRealmLanguageType (bool create)
 
bool isValidString (const std::wstring &wstr, uint32 strictMask, bool numericOrSpace, bool create=false)
 
SkillRangeType GetSkillRangeType (SkillRaceClassInfoEntry const *rcEntry)
 

Variables

ScriptMapMap sSpellScripts
 
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

Definition at line 7501 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ CheckGOConsumable()

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

Definition at line 7522 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ CheckGOLinkedTrapId()

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

Definition at line 7482 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ CheckGOLockId()

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

Definition at line 7473 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ CheckGONoDamageImmuneId()

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

Definition at line 7513 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ CheckGOSpellId()

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

Definition at line 7492 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ ExtractExtendedPlayerName()

ExtendedPlayerName ExtractExtendedPlayerName ( std::string const &  name)

Definition at line 174 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ FillMaxDurability()

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

Definition at line 2948 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ GetRealmLanguageType()

static EnumFlag< CfgCategoriesCharsets > GetRealmLanguageType ( bool  create)
static

Definition at line 8638 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ GetScriptCommandName()

std::string GetScriptCommandName ( ScriptCommands  command)

Definition at line 105 of file ObjectMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetScriptsMapByType()

ScriptMapMap * GetScriptsMapByType ( ScriptsType  type)

Definition at line 93 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ GetScriptsTableNameByType()

std::string GetScriptsTableNameByType ( ScriptsType  type)

Definition at line 81 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ GetSkillRangeType()

SkillRangeType GetSkillRangeType ( SkillRaceClassInfoEntry const *  rcEntry)

Definition at line 8986 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ isValidString()

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

Definition at line 8646 of file ObjectMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ normalizePlayerName()

bool normalizePlayerName ( std::string &  name)

Definition at line 154 of file ObjectMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ sEventScripts

ScriptMapMap sEventScripts

Definition at line 79 of file ObjectMgr.cpp.

◆ sSpellScripts

ScriptMapMap sSpellScripts

Definition at line 78 of file ObjectMgr.cpp.