![]() |
TrinityCore
|
#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) |
Variables | |
| ScriptMapMap | sEventScripts |
| #define ChooseCreatureFlagSource | ( | field | ) | ((data && data->field.has_value()) ? *data->field : cInfo->field) |
|
inline |
Definition at line 7514 of file ObjectMgr.cpp.
References GameObjectTemplate::entry, TC_LOG_ERROR, GameObjectTemplate::type, UNIT_STAND_STATE_SIT_HIGH_CHAIR, and UNIT_STAND_STATE_SIT_LOW_CHAIR.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
Definition at line 7535 of file ObjectMgr.cpp.
References GameObjectTemplate::entry, TC_LOG_ERROR, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
Definition at line 7495 of file ObjectMgr.cpp.
References GameObjectTemplate::entry, GAMEOBJECT_TYPE_TRAP, sObjectMgr, TC_LOG_ERROR, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
Definition at line 7486 of file ObjectMgr.cpp.
References GameObjectTemplate::entry, sLockStore, TC_LOG_ERROR, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
Definition at line 7526 of file ObjectMgr.cpp.
References GameObjectTemplate::entry, TC_LOG_ERROR, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
Definition at line 7505 of file ObjectMgr.cpp.
References DIFFICULTY_NONE, GameObjectTemplate::entry, sSpellMgr, TC_LOG_ERROR, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
| ExtendedPlayerName ExtractExtendedPlayerName | ( | std::string const & | name | ) |
Definition at line 177 of file ObjectMgr.cpp.
Referenced by WorldSession::HandleChatAddonMessage(), and WorldSession::HandleChatMessage().
| uint32 FillMaxDurability | ( | uint32 | itemClass, |
| uint32 | itemSubClass, | ||
| uint32 | inventoryType, | ||
| uint32 | quality, | ||
| uint32 | itemLevel | ||
| ) |
Definition at line 2985 of file ObjectMgr.cpp.
References INVTYPE_ROBE, ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, MAX_INVTYPE, MAX_ITEM_QUALITY, and MAX_ITEM_SUBCLASS_WEAPON.
Referenced by ObjectMgr::LoadItemTemplates().
|
static |
Definition at line 8665 of file ObjectMgr.cpp.
References Any, English, sCfgCategoriesStore, and sRealmList.
Referenced by isValidString().
| std::string GetScriptCommandName | ( | ScriptCommands | command | ) |
Definition at line 108 of file ObjectMgr.cpp.
References SCRIPT_COMMAND_ACTIVATE_OBJECT, SCRIPT_COMMAND_CALLSCRIPT_TO_UNIT, SCRIPT_COMMAND_CAST_SPELL, SCRIPT_COMMAND_CLOSE_DOOR, SCRIPT_COMMAND_CLOSE_GOSSIP, SCRIPT_COMMAND_CREATE_ITEM, SCRIPT_COMMAND_DESPAWN_SELF, SCRIPT_COMMAND_EMOTE, SCRIPT_COMMAND_EQUIP, SCRIPT_COMMAND_FIELD_SET_DEPRECATED, SCRIPT_COMMAND_FLAG_REMOVE_DEPRECATED, SCRIPT_COMMAND_FLAG_SET_DEPRECATED, SCRIPT_COMMAND_KILL, SCRIPT_COMMAND_KILL_CREDIT, SCRIPT_COMMAND_LOAD_PATH, SCRIPT_COMMAND_MODEL, SCRIPT_COMMAND_MOVE_TO, SCRIPT_COMMAND_MOVEMENT, SCRIPT_COMMAND_OPEN_DOOR, SCRIPT_COMMAND_ORIENTATION, SCRIPT_COMMAND_PLAY_ANIMKIT, SCRIPT_COMMAND_PLAY_SOUND, SCRIPT_COMMAND_PLAYMOVIE, SCRIPT_COMMAND_QUEST_EXPLORED, SCRIPT_COMMAND_REMOVE_AURA, SCRIPT_COMMAND_RESPAWN_GAMEOBJECT, SCRIPT_COMMAND_TALK, SCRIPT_COMMAND_TELEPORT_TO, SCRIPT_COMMAND_TEMP_SUMMON_CREATURE, and Trinity::StringFormat().
Referenced by ScriptInfo::GetDebugInfo(), and ObjectMgr::LoadScripts().
| ScriptMapMap * GetScriptsMapByType | ( | ScriptsType | type | ) |
Definition at line 97 of file ObjectMgr.cpp.
References SCRIPTS_EVENT, and sEventScripts.
Referenced by ObjectMgr::LoadScripts(), and Map::ScriptsProcess().
| std::string GetScriptsTableNameByType | ( | ScriptsType | type | ) |
Definition at line 86 of file ObjectMgr.cpp.
References SCRIPTS_EVENT.
Referenced by ScriptInfo::GetDebugInfo(), and ObjectMgr::LoadScripts().
| SkillRangeType GetSkillRangeType | ( | SkillRaceClassInfoEntry const * | rcEntry | ) |
Definition at line 9009 of file ObjectMgr.cpp.
References SkillLineEntry::CategoryID, SKILL_CATEGORY_ARMOR, SKILL_CATEGORY_LANGUAGES, SKILL_RANGE_LANGUAGE, SKILL_RANGE_LEVEL, SKILL_RANGE_MONO, SKILL_RANGE_NONE, SKILL_RANGE_RANK, SKILL_RUNEFORGING, SkillRaceClassInfoEntry::SkillID, SkillRaceClassInfoEntry::SkillTierID, sObjectMgr, and sSkillLineStore.
Referenced by Player::_LoadSkills(), Player::AddSpell(), Player::LearnDefaultSkill(), Player::RemoveSpell(), and Player::UpdateSkillsForLevel().
| bool isValidString | ( | const std::wstring & | wstr, |
| uint32 | strictMask, | ||
| bool | numericOrSpace, | ||
| bool | create = false |
||
| ) |
Definition at line 8674 of file ObjectMgr.cpp.
References Any, Chinese, English, GetRealmLanguageType(), EnumFlag< T >::HasFlag(), isBasicLatinString(), isChineseString(), isCyrillicString(), isExtendedLatinString(), isKoreanString(), Korean, Latin1, and Russian.
Referenced by ObjectMgr::CheckPetName(), ObjectMgr::CheckPlayerName(), and ObjectMgr::IsValidCharterName().
| 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().
| ScriptMapMap sEventScripts |
Definition at line 84 of file ObjectMgr.cpp.
Referenced by GetScriptsMapByType(), ObjectMgr::LoadEventScripts(), and GameEvents::TriggerForMap().