TrinityCore
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ObjectMgr.cpp File Reference
#include "ObjectMgr.h"
#include "AchievementMgr.h"
#include "ArenaTeamMgr.h"
#include "Bag.h"
#include "Chat.h"
#include "Containers.h"
#include "CreatureAIFactory.h"
#include "DatabaseEnv.h"
#include "DisableMgr.h"
#include "GameObject.h"
#include "GameObjectAIFactory.h"
#include "GameTime.h"
#include "GossipDef.h"
#include "GroupMgr.h"
#include "GuildMgr.h"
#include "InstanceSaveMgr.h"
#include "InstanceScript.h"
#include "Language.h"
#include "LFGMgr.h"
#include "Log.h"
#include "LootMgr.h"
#include "Mail.h"
#include "MapManager.h"
#include "MotionMaster.h"
#include "ObjectAccessor.h"
#include "Player.h"
#include "PoolMgr.h"
#include "QueryPackets.h"
#include "Random.h"
#include "ReputationMgr.h"
#include "ScriptMgr.h"
#include "SpellAuras.h"
#include "SpellMgr.h"
#include "SpellScript.h"
#include "StringConvert.h"
#include "TemporarySummon.h"
#include "ThreadPool.h"
#include "UpdateMask.h"
#include "Util.h"
#include "Vehicle.h"
#include "World.h"
+ Include dependency graph for ObjectMgr.cpp:

Go to the source code of this file.

Macros

#define ChooseCreatureFlagSource(field)   ((data && data->field) ? data->field : cinfo->field)
 

Enumerations

enum  LanguageType {
  LT_BASIC_LATIN = 0x0000 , LT_EXTENDEN_LATIN = 0x0001 , LT_CYRILLIC = 0x0002 , LT_EAST_ASIA = 0x0004 ,
  LT_ANY = 0xFFFF
}
 

Functions

std::string GetScriptsTableNameByType (ScriptsType type)
 
ScriptMapMapGetScriptsMapByType (ScriptsType type)
 
std::string GetScriptCommandName (ScriptCommands command)
 
bool normalizePlayerName (std::string &name)
 
LanguageDesc const * GetLanguageDescByID (uint32 lang)
 
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 const &dataN, uint32 N)
 
void CheckGONoDamageImmuneId (GameObjectTemplate *goTemplate, uint32 dataN, uint32 N)
 
void CheckGOConsumable (GameObjectTemplate const *goInfo, uint32 dataN, uint32 N)
 
static LanguageType GetRealmLanguageType (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
 
ScriptMapMap sWaypointScripts
 
LanguageDesc lang_description [LANGUAGES_COUNT]
 

Macro Definition Documentation

◆ ChooseCreatureFlagSource

#define ChooseCreatureFlagSource (   field)    ((data && data->field) ? data->field : cinfo->field)

Enumeration Type Documentation

◆ LanguageType

Enumerator
LT_BASIC_LATIN 
LT_EXTENDEN_LATIN 
LT_CYRILLIC 
LT_EAST_ASIA 
LT_ANY 

Definition at line 8694 of file ObjectMgr.cpp.

Function Documentation

◆ CheckAndFixGOChairHeightId()

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

Definition at line 7631 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 7652 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 7612 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 7603 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 7643 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 7622 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ GetLanguageDescByID()

LanguageDesc const * GetLanguageDescByID ( uint32  lang)

Definition at line 184 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ GetRealmLanguageType()

static LanguageType GetRealmLanguageType ( bool  create)
static

Definition at line 8703 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ GetScriptCommandName()

std::string GetScriptCommandName ( ScriptCommands  command)

Definition at line 90 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ GetScriptsMapByType()

ScriptMapMap * GetScriptsMapByType ( ScriptsType  type)

Definition at line 77 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ GetScriptsTableNameByType()

std::string GetScriptsTableNameByType ( ScriptsType  type)

Definition at line 64 of file ObjectMgr.cpp.

+ Here is the caller graph for this function:

◆ GetSkillRangeType()

SkillRangeType GetSkillRangeType ( SkillRaceClassInfoEntry const *  rcEntry)

Definition at line 9034 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 8731 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 142 of file ObjectMgr.cpp.

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

Variable Documentation

◆ lang_description

LanguageDesc lang_description[LANGUAGES_COUNT]
Initial value:
=
{
{ LANG_ADDON, 0, 0 },
{ LANG_UNIVERSAL, 0, 0 },
{ LANG_ZOMBIE, 0, 0 },
}
@ LANG_TITAN
@ LANG_GNOMISH_BINARY
@ LANG_UNIVERSAL
@ LANG_GNOMISH
@ LANG_GOBLIN_BINARY
@ LANG_DEMONIC
@ LANG_DRAENEI
@ LANG_THALASSIAN
@ LANG_DRACONIC
@ LANG_TROLL
@ LANG_TAURAHE
@ LANG_KALIMAG
@ LANG_ZOMBIE
@ LANG_ADDON
@ LANG_DWARVISH
@ LANG_GUTTERSPEAK
@ LANG_COMMON
@ LANG_ORCISH
@ LANG_DARNASSIAN
@ SKILL_LANG_GNOMISH
@ SKILL_LANG_COMMON
@ SKILL_LANG_DRAENEI
@ SKILL_LANG_ORCISH
@ SKILL_LANG_TROLL
@ SKILL_LANG_GUTTERSPEAK
@ SKILL_LANG_OLD_TONGUE
@ SKILL_LANG_TAURAHE
@ SKILL_LANG_TITAN
@ SKILL_LANG_DARNASSIAN
@ SKILL_LANG_DEMON_TONGUE
@ SKILL_LANG_DWARVEN
@ SKILL_LANG_THALASSIAN
@ SKILL_LANG_DRACONIC

Definition at line 161 of file ObjectMgr.cpp.

◆ sEventScripts

ScriptMapMap sEventScripts

Definition at line 61 of file ObjectMgr.cpp.

◆ sSpellScripts

ScriptMapMap sSpellScripts

Definition at line 60 of file ObjectMgr.cpp.

◆ sWaypointScripts

ScriptMapMap sWaypointScripts

Definition at line 62 of file ObjectMgr.cpp.