TrinityCore
Loading...
Searching...
No Matches
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)
 
ScriptMapMap * GetScriptsMapByType (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 &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 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 8587 of file ObjectMgr.cpp.

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

◆ GetLanguageDescByID()

LanguageDesc const * GetLanguageDescByID ( uint32  lang)

◆ GetRealmLanguageType()

◆ GetScriptCommandName()

◆ GetScriptsMapByType()

ScriptMapMap * GetScriptsMapByType ( ScriptsType  type)

◆ GetScriptsTableNameByType()

std::string GetScriptsTableNameByType ( ScriptsType  type)

Definition at line 63 of file ObjectMgr.cpp.

References SCRIPTS_EVENT, and SCRIPTS_WAYPOINT.

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 135 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(), WorldSession::HandleArenaTeamInviteOpcode(), WorldSession::HandleArenaTeamLeaderOpcode(), WorldSession::HandleArenaTeamRemoveOpcode(), ban_commandscript::HandleBanCharacterCommand(), ban_commandscript::HandleBanHelper(), ban_commandscript::HandleBanInfoCharacterCommand(), WorldSession::HandleCalendarEventInvite(), WorldSession::HandleChannelPlayerCommand(), character_commandscript::HandleCharacterRenameCommand(), WorldSession::HandleCharCreateOpcode(), WorldSession::HandleCharCustomizeCallback(), WorldSession::HandleCharRaceOrFactionChangeCallback(), WorldSession::HandleCharRenameOpcode(), WorldSession::HandleChatMessage(), misc_commandscript::HandleFreezeCommand(), ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketGetByNameCommand(), WorldSession::HandleGroupChangeSubGroupOpcode(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGroupUninviteOpcode(), WorldSession::HandleGuildDemoteOpcode(), WorldSession::HandleGuildInviteOpcode(), WorldSession::HandleGuildOfficerRemoveMember(), WorldSession::HandleGuildPromoteOpcode(), WorldSession::HandleGuildSetGuildMaster(), WorldSession::HandleGuildSetOfficerNoteOpcode(), WorldSession::HandleGuildSetPublicNoteOpcode(), WorldSession::HandleSendMail(), WorldSession::HandleSetPlayerDeclinedNames(), 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

◆ 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 154 of file ObjectMgr.cpp.

Referenced by GetLanguageDescByID(), and learn_commandscript::HandleLearnAllLangCommand().

◆ sEventScripts

◆ sWaypointScripts