![]() |
TrinityCore
|
#include "Common.h"#include "ConditionMgr.h"#include "CreatureData.h"#include "DatabaseEnvFwd.h"#include "Errors.h"#include "GameObjectData.h"#include "ItemTemplate.h"#include "IteratorPair.h"#include "NPCHandler.h"#include "ObjectDefines.h"#include "ObjectGuid.h"#include "Position.h"#include "QuestDef.h"#include "SharedDefines.h"#include "Trainer.h"#include "VehicleDefines.h"#include "UniqueTrackablePtr.h"#include <iterator>#include <map>#include <unordered_map>
Include dependency graph for ObjectMgr.h:Go to the source code of this file.
Macros | |
| #define | MAX_PLAYER_NAME 12 |
| #define | MAX_INTERNAL_PLAYER_NAME 15 |
| #define | MAX_PET_NAME 12 |
| #define | MAX_CHARTER_NAME 24 |
| #define | SPAWNGROUP_MAP_UNSET 0xFFFFFFFF |
| #define | sObjectMgr ObjectMgr::instance() |
Functions | |
| std::string | GetScriptsTableNameByType (ScriptsType type) |
| ScriptMapMap * | GetScriptsMapByType (ScriptsType type) |
| std::string | GetScriptCommandName (ScriptCommands command) |
| SkillRangeType | GetSkillRangeType (SkillRaceClassInfoEntry const *rcEntry) |
| TC_GAME_API bool | normalizePlayerName (std::string &name) |
| LanguageDesc const * | GetLanguageDescByID (uint32 lang) |
Variables | |
| TC_GAME_API ScriptMapMap | sEventScripts |
| TC_GAME_API ScriptMapMap | sWaypointScripts |
| TC_GAME_API LanguageDesc | lang_description [LANGUAGES_COUNT] |
| #define MAX_CHARTER_NAME 24 |
Definition at line 873 of file ObjectMgr.h.
| #define MAX_INTERNAL_PLAYER_NAME 15 |
Definition at line 871 of file ObjectMgr.h.
| #define MAX_PET_NAME 12 |
Definition at line 872 of file ObjectMgr.h.
| #define MAX_PLAYER_NAME 12 |
Definition at line 870 of file ObjectMgr.h.
| #define sObjectMgr ObjectMgr::instance() |
Definition at line 1721 of file ObjectMgr.h.
| #define SPAWNGROUP_MAP_UNSET 0xFFFFFFFF |
Definition at line 876 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, BroadcastTextEntry> BroadcastTextContainer |
Definition at line 507 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, VendorItemData> CacheVendorItemContainer |
Definition at line 857 of file ObjectMgr.h.
| typedef std::set<ObjectGuid::LowType> CellGuidSet |
Definition at line 509 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, CellObjectGuids> CellObjectGuidsMap |
Definition at line 515 of file ObjectMgr.h.
| typedef std::unordered_map<ObjectGuid::LowType, CreatureAddon> CreatureAddonContainer |
Definition at line 532 of file ObjectMgr.h.
| typedef std::unordered_map<uint16, CreatureBaseStats> CreatureBaseStatsContainer |
Definition at line 533 of file ObjectMgr.h.
| typedef std::unordered_map<ObjectGuid::LowType, CreatureData> CreatureDataContainer |
Definition at line 531 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, CreatureLocale> CreatureLocaleContainer |
Definition at line 548 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, CreatureModelInfo> CreatureModelContainer |
Definition at line 536 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, std::vector<uint32> > CreatureQuestItemMap |
Definition at line 537 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, CreatureAddon> CreatureTemplateAddonContainer |
Definition at line 530 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, CreatureTemplate> CreatureTemplateContainer |
Definition at line 529 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, DungeonEncounterList> DungeonEncounterContainer |
Definition at line 906 of file ObjectMgr.h.
| typedef std::vector<std::unique_ptr<DungeonEncounter const> > DungeonEncounterList |
Definition at line 905 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, EquipmentInfoContainerInternal> EquipmentInfoContainer |
Definition at line 535 of file ObjectMgr.h.
| typedef std::unordered_map<uint8, EquipmentInfo> EquipmentInfoContainerInternal |
Definition at line 534 of file ObjectMgr.h.
| typedef std::multimap<int32, uint32> ExclusiveQuestGroups |
Definition at line 696 of file ObjectMgr.h.
| typedef std::pair<ExclusiveQuestGroups::const_iterator, ExclusiveQuestGroups::const_iterator> ExclusiveQuestGroupsBounds |
Definition at line 697 of file ObjectMgr.h.
| typedef std::unordered_map<ObjectGuid::LowType, GameObjectAddon> GameObjectAddonContainer |
Definition at line 542 of file ObjectMgr.h.
| typedef std::unordered_map<ObjectGuid::LowType, GameObjectData> GameObjectDataContainer |
Definition at line 541 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, GameObjectLocale> GameObjectLocaleContainer |
Definition at line 549 of file ObjectMgr.h.
| typedef std::unordered_map<ObjectGuid::LowType, GameObjectOverride> GameObjectOverrideContainer |
Definition at line 540 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, std::vector<uint32> > GameObjectQuestItemMap |
Definition at line 543 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, GameObjectTemplateAddon> GameObjectTemplateAddonContainer |
Definition at line 539 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, GameObjectTemplate> GameObjectTemplateContainer |
Definition at line 538 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, GameTele> GameTeleContainer |
Definition at line 170 of file ObjectMgr.h.
| typedef std::multimap<uint32, GossipMenuItems> GossipMenuItemsContainer |
Definition at line 793 of file ObjectMgr.h.
| typedef std::unordered_map<std::pair<uint32, uint32>, GossipMenuItemsLocale> GossipMenuItemsLocaleContainer |
Definition at line 566 of file ObjectMgr.h.
| typedef std::pair<GossipMenuItemsContainer::const_iterator, GossipMenuItemsContainer::const_iterator> GossipMenuItemsMapBounds |
Definition at line 794 of file ObjectMgr.h.
| typedef std::pair<GossipMenuItemsContainer::iterator, GossipMenuItemsContainer::iterator> GossipMenuItemsMapBoundsNonConst |
Definition at line 795 of file ObjectMgr.h.
| typedef std::multimap<uint32, GossipMenus> GossipMenusContainer |
Definition at line 790 of file ObjectMgr.h.
| typedef std::pair<GossipMenusContainer::const_iterator, GossipMenusContainer::const_iterator> GossipMenusMapBounds |
Definition at line 791 of file ObjectMgr.h.
| typedef std::pair<GossipMenusContainer::iterator, GossipMenusContainer::iterator> GossipMenusMapBoundsNonConst |
Definition at line 792 of file ObjectMgr.h.
| typedef std::multimap<uint32, GraveyardData> GraveyardContainer |
Definition at line 853 of file ObjectMgr.h.
| typedef std::pair<GraveyardContainer::const_iterator, GraveyardContainer::const_iterator> GraveyardMapBounds |
Definition at line 854 of file ObjectMgr.h.
| typedef std::pair<GraveyardContainer::iterator, GraveyardContainer::iterator> GraveyardMapBoundsNonConst |
Definition at line 855 of file ObjectMgr.h.
| typedef std::unordered_map<uint16, std::vector<InstanceSpawnGroupInfo> > InstanceSpawnGroupContainer |
Definition at line 546 of file ObjectMgr.h.
| typedef std::unordered_map<uint16, InstanceTemplate> InstanceTemplateContainer |
Definition at line 157 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, ItemLocale> ItemLocaleContainer |
Definition at line 551 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, ItemSetNameLocale> ItemSetNameLocaleContainer |
Definition at line 552 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, ItemTemplate> ItemTemplateContainer |
Definition at line 550 of file ObjectMgr.h.
| typedef std::map<ObjectGuid, ObjectGuid> LinkedRespawnContainer |
Definition at line 528 of file ObjectMgr.h.
| typedef std::unordered_map<uint8, MailLevelRewardList> MailLevelRewardContainer |
Definition at line 720 of file ObjectMgr.h.
| typedef std::list<MailLevelReward> MailLevelRewardList |
Definition at line 719 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, CellObjectGuidsMap> MapObjectGuids |
Definition at line 516 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, NpcTextLocale> NpcTextLocaleContainer |
Definition at line 556 of file ObjectMgr.h.
| typedef std::map<uint32, PageText> PageTextContainer |
Definition at line 148 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, PageTextLocale> PageTextLocaleContainer |
Definition at line 557 of file ObjectMgr.h.
| typedef std::vector<PlayerCreateInfoAction> PlayerCreateInfoActions |
Definition at line 665 of file ObjectMgr.h.
| typedef std::vector<PlayerCreateInfoItem> PlayerCreateInfoItems |
Definition at line 635 of file ObjectMgr.h.
| typedef std::vector<PlayerCreateInfoSkill> PlayerCreateInfoSkills |
Definition at line 673 of file ObjectMgr.h.
| typedef std::vector<uint32> PlayerCreateInfoSpells |
Definition at line 654 of file ObjectMgr.h.
| typedef std::map<std::pair<SummonSlot , Races >, uint32 > PlayerTotemModelMap |
Definition at line 908 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, PointOfInterestLocale> PointOfInterestLocaleContainer |
Definition at line 573 of file ObjectMgr.h.
| typedef std::unordered_map<uint8, std::unordered_map<uint32, QuestGreeting> > QuestGreetingContainer |
Definition at line 845 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, QuestGreetingLocale> QuestGreetingLocaleContainer |
Definition at line 574 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, QuestLocale> QuestLocaleContainer |
Definition at line 553 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, QuestOfferRewardLocale> QuestOfferRewardLocaleContainer |
Definition at line 554 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, QuestPOIWrapper> QuestPOIContainer |
Definition at line 832 of file ObjectMgr.h.
| typedef std::multimap<uint32, uint32> QuestRelations |
Definition at line 578 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, QuestRequestItemsLocale> QuestRequestItemsLocaleContainer |
Definition at line 555 of file ObjectMgr.h.
| typedef std::multimap<uint32, ScriptInfo> ScriptMap |
Definition at line 410 of file ObjectMgr.h.
| typedef std::map<uint32, ScriptMap> ScriptMapMap |
Definition at line 411 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, SpawnGroupTemplateData> SpawnGroupDataContainer |
Definition at line 544 of file ObjectMgr.h.
| typedef std::multimap<uint32, SpawnMetadata const*> SpawnGroupLinkContainer |
Definition at line 545 of file ObjectMgr.h.
| typedef std::multimap<uint32, SpellClickInfo> SpellClickInfoContainer |
Definition at line 448 of file ObjectMgr.h.
| typedef std::pair<SpellScriptsContainer::iterator, SpellScriptsContainer::iterator> SpellScriptsBounds |
Definition at line 413 of file ObjectMgr.h.
| typedef std::multimap<uint32 , std::pair<uint32 , bool > > SpellScriptsContainer |
Definition at line 412 of file ObjectMgr.h.
| typedef std::map<TempSummonGroupKey, std::vector<TempSummonData> > TempSummonDataContainer |
Definition at line 547 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, TrinityString> TrinityStringContainer |
Definition at line 576 of file ObjectMgr.h.
| typedef std::unordered_map<uint32, VehicleSeatAddon> VehicleSeatAddonContainer |
Definition at line 558 of file ObjectMgr.h.
| enum ChatType |
| Enumerator | |
|---|---|
| CHAT_TYPE_SAY | |
| CHAT_TYPE_YELL | |
| CHAT_TYPE_TEXT_EMOTE | |
| CHAT_TYPE_BOSS_EMOTE | |
| CHAT_TYPE_WHISPER | |
| CHAT_TYPE_BOSS_WHISPER | |
| CHAT_TYPE_ZONE_YELL | |
| CHAT_TYPE_END | |
Definition at line 136 of file ObjectMgr.h.
| enum EncounterCreditType : uint8 |
| Enumerator | |
|---|---|
| ENCOUNTER_CREDIT_KILL_CREATURE | |
| ENCOUNTER_CREDIT_CAST_SPELL | |
Definition at line 888 of file ObjectMgr.h.
| enum eScriptFlags |
Definition at line 182 of file ObjectMgr.h.
| enum QueryDataGroup |
| Enumerator | |
|---|---|
| QUERY_DATA_CREATURES | |
| QUERY_DATA_GAMEOBJECTS | |
| QUERY_DATA_ITEMS | |
| QUERY_DATA_QUESTS | |
| QUERY_DATA_POIS | |
| QUERY_DATA_ALL | |
Definition at line 910 of file ObjectMgr.h.
| enum ScriptCommands |
Definition at line 100 of file ObjectMgr.h.
| enum ScriptsType |
| Enumerator | |
|---|---|
| SCRIPTS_FIRST | |
| SCRIPTS_EVENT | |
| SCRIPTS_WAYPOINT | |
| SCRIPTS_LAST | |
Definition at line 172 of file ObjectMgr.h.
| enum SkillRangeType |
| Enumerator | |
|---|---|
| SKILL_RANGE_LANGUAGE | |
| SKILL_RANGE_LEVEL | |
| SKILL_RANGE_MONO | |
| SKILL_RANGE_RANK | |
| SKILL_RANGE_NONE | |
Definition at line 859 of file ObjectMgr.h.
| enum SummonerType |
| Enumerator | |
|---|---|
| SUMMONER_TYPE_CREATURE | |
| SUMMONER_TYPE_GAMEOBJECT | |
| SUMMONER_TYPE_MAP | |
Definition at line 64 of file ObjectMgr.h.
| LanguageDesc const * GetLanguageDescByID | ( | uint32 | lang | ) |
Definition at line 177 of file ObjectMgr.cpp.
References lang_description, and LANGUAGES_COUNT.
Referenced by WorldSession::HandleChatMessage(), ObjectMgr::LoadBroadcastTexts(), and CreatureTextMgr::LoadCreatureTexts().
| std::string GetScriptCommandName | ( | ScriptCommands | command | ) |
Definition at line 87 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, SCRIPT_COMMAND_FLAG_REMOVE, SCRIPT_COMMAND_FLAG_SET, 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_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 75 of file ObjectMgr.cpp.
References SCRIPTS_EVENT, SCRIPTS_WAYPOINT, sEventScripts, and sWaypointScripts.
Referenced by ObjectMgr::LoadScripts(), and Map::ScriptsProcess().
| 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().
| SkillRangeType GetSkillRangeType | ( | SkillRaceClassInfoEntry const * | rcEntry | ) |
Definition at line 8927 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, sSkillLineStore, and sSkillTiersStore.
Referenced by Player::_LoadSkills(), Player::LearnDefaultSkill(), and Player::UpdateSkillsForLevel().
| TC_GAME_API 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().
|
extern |
Definition at line 154 of file ObjectMgr.cpp.
Referenced by GetLanguageDescByID(), and learn_commandscript::HandleLearnAllLangCommand().
|
extern |
Definition at line 60 of file ObjectMgr.cpp.
Referenced by Transport::DoEventIfAny(), FlightPathMovementGenerator::DoEventIfAny(), Spell::EffectSendEvent(), GetScriptsMapByType(), ObjectMgr::LoadEventScripts(), Spell::SendLoot(), and GameObject::Use().
|
extern |
Definition at line 61 of file ObjectMgr.cpp.
Referenced by GetScriptsMapByType(), ObjectMgr::LoadWaypointScripts(), and WaypointMovementGenerator< Creature >::OnArrived().