![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Bag.h"#include "ConditionMgr.h"#include "Creature.h"#include "DatabaseEnv.h"#include "GameObject.h"#include "ItemTemplate.h"#include "Log.h"#include "Mail.h"#include "Map.h"#include "NPCHandler.h"#include "Object.h"#include "ObjectAccessor.h"#include "ObjectDefines.h"#include "QuestDef.h"#include "TemporarySummon.h"#include "VehicleDefines.h"#include <functional>#include <limits>#include <map>#include <string>Go to the source code of this file.
Classes | |
| struct | PageText |
| struct | TempSummonGroupKey |
| Key for storing temp summon data in TempSummonDataContainer. More... | |
| struct | GameTele |
| struct | ScriptInfo |
| struct | SpellClickInfo |
| struct | AreaTriggerTeleport |
| struct | AreaTrigger |
| struct | BroadcastText |
| struct | CellObjectGuids |
| struct | ModuleString |
| struct | AcoreString |
| struct | PetLevelInfo |
| struct | MailLevelReward |
| struct | RepRewardRate |
| struct | ReputationOnKillEntry |
| struct | RepSpilloverTemplate |
| struct | PointOfInterest |
| struct | QuestGreeting |
| struct | GossipMenuItems |
| struct | GossipMenus |
| struct | QuestPOIPoint |
| struct | QuestPOI |
| struct | LanguageDesc |
| struct | DungeonEncounter |
| class | ObjectMgr |
| struct | ObjectMgr::GameobjectInstanceSavedState |
Macros | |
| #define | MIN_ACORE_STRING_ID 1 |
| #define | MAX_ACORE_STRING_ID 2000000000 |
| #define | MIN_CREATURE_AI_TEXT_STRING_ID (-1) |
| #define | MAX_CREATURE_AI_TEXT_STRING_ID (-1000000) |
| #define | ACORE_TRAINER_START_REF 200000 |
| #define | MAX_PLAYER_NAME 12 |
| #define | MAX_INTERNAL_PLAYER_NAME 15 |
| #define | MAX_PET_NAME 12 |
| #define | MAX_CHARTER_NAME 24 |
| #define | MAX_CHANNEL_NAME 50 |
| #define | sObjectMgr ObjectMgr::instance() |
Typedefs | |
| typedef std::map< uint32, PageText > | PageTextContainer |
| typedef std::unordered_map< uint16, InstanceTemplate > | InstanceTemplateContainer |
| typedef std::unordered_map< uint32, GameTele > | GameTeleContainer |
| typedef std::multimap< uint32, ScriptInfo > | ScriptMap |
| typedef std::map< uint32, ScriptMap > | ScriptMapMap |
| typedef std::multimap< uint32, uint32 > | SpellScriptsContainer |
| typedef std::pair< SpellScriptsContainer::iterator, SpellScriptsContainer::iterator > | SpellScriptsBounds |
| typedef std::multimap< uint32, SpellClickInfo > | SpellClickInfoContainer |
| typedef std::pair< SpellClickInfoContainer::const_iterator, SpellClickInfoContainer::const_iterator > | SpellClickInfoMapBounds |
| typedef std::unordered_map< uint32, BroadcastText > | BroadcastTextContainer |
| typedef std::set< ObjectGuid::LowType > | CellGuidSet |
| typedef std::unordered_map< uint32, CellObjectGuids > | CellObjectGuidsMap |
| typedef std::unordered_map< uint32, CellObjectGuidsMap > | MapObjectGuids |
| typedef std::map< ObjectGuid, ObjectGuid > | LinkedRespawnContainer |
| typedef std::unordered_map< ObjectGuid::LowType, CreatureData > | CreatureDataContainer |
| typedef std::unordered_map< ObjectGuid::LowType, GameObjectData > | GameObjectDataContainer |
| typedef std::map< TempSummonGroupKey, std::vector< TempSummonData > > | TempSummonDataContainer |
| typedef std::unordered_map< uint32, CreatureLocale > | CreatureLocaleContainer |
| typedef std::unordered_map< uint32, GameObjectLocale > | GameObjectLocaleContainer |
| typedef std::unordered_map< uint32, ItemLocale > | ItemLocaleContainer |
| typedef std::unordered_map< uint32, ItemSetNameLocale > | ItemSetNameLocaleContainer |
| typedef std::unordered_map< uint32, QuestLocale > | QuestLocaleContainer |
| typedef std::unordered_map< uint32, QuestOfferRewardLocale > | QuestOfferRewardLocaleContainer |
| typedef std::unordered_map< uint32, QuestRequestItemsLocale > | QuestRequestItemsLocaleContainer |
| typedef std::unordered_map< uint32, NpcTextLocale > | NpcTextLocaleContainer |
| typedef std::unordered_map< uint32, PageTextLocale > | PageTextLocaleContainer |
| typedef std::map< std::pair< std::string, uint32 >, ModuleString > | ModuleStringContainer |
| typedef std::unordered_map< int32, AcoreString > | AcoreStringContainer |
| typedef std::unordered_map< uint32, GossipMenuItemsLocale > | GossipMenuItemsLocaleContainer |
| typedef std::unordered_map< uint32, PointOfInterestLocale > | PointOfInterestLocaleContainer |
| typedef std::unordered_map< uint32, VehicleSeatAddon > | VehicleSeatAddonContainer |
| typedef std::multimap< uint32, uint32 > | QuestRelations |
| typedef std::pair< QuestRelations::const_iterator, QuestRelations::const_iterator > | QuestRelationBounds |
| typedef std::list< MailLevelReward > | MailLevelRewardList |
| typedef std::unordered_map< uint8, MailLevelRewardList > | MailLevelRewardContainer |
| typedef std::multimap< uint32, GossipMenus > | GossipMenusContainer |
| typedef std::pair< GossipMenusContainer::const_iterator, GossipMenusContainer::const_iterator > | GossipMenusMapBounds |
| typedef std::pair< GossipMenusContainer::iterator, GossipMenusContainer::iterator > | GossipMenusMapBoundsNonConst |
| typedef std::multimap< uint32, GossipMenuItems > | GossipMenuItemsContainer |
| typedef std::pair< GossipMenuItemsContainer::const_iterator, GossipMenuItemsContainer::const_iterator > | GossipMenuItemsMapBounds |
| typedef std::pair< GossipMenuItemsContainer::iterator, GossipMenuItemsContainer::iterator > | GossipMenuItemsMapBoundsNonConst |
| typedef std::vector< QuestPOI > | QuestPOIVector |
| typedef std::unordered_map< uint32, QuestPOIVector > | QuestPOIContainer |
| typedef std::map< std::pair< uint32, uint8 >, QuestGreeting > | QuestGreetingContainer |
| typedef std::unordered_map< uint32, VendorItemData > | CacheVendorItemContainer |
| typedef std::unordered_map< uint32, TrainerSpellData > | CacheTrainerSpellContainer |
| typedef std::vector< uint32 > | CreatureCustomIDsContainer |
| typedef std::list< DungeonEncounter const * > | DungeonEncounterList |
| typedef std::unordered_map< uint32, DungeonEncounterList > | DungeonEncounterContainer |
| typedef std::map< std::pair< SummonSlot, Races >, uint32 > | PlayerTotemModelMap |
| typedef std::map< std::tuple< ShapeshiftForm, uint8, uint8, uint8 >, uint32 > | PlayerShapeshiftModelMap |
| typedef std::array< uint32, MAX_QUEST_MONEY_REWARDS > | QuestMoneyRewardArray |
| typedef std::unordered_map< uint32, QuestMoneyRewardArray > | QuestMoneyRewardStore |
Functions | |
| std::string | GetScriptsTableNameByType (ScriptsType type) |
| ScriptMapMap * | GetScriptsMapByType (ScriptsType type) |
| std::string | GetScriptCommandName (ScriptCommands command) |
| SkillRangeType | GetSkillRangeType (SkillRaceClassInfoEntry const *rcEntry) |
| bool | normalizePlayerName (std::string &name) |
| LanguageDesc const * | GetLanguageDescByID (uint32 lang) |
Variables | |
| ScriptMapMap | sSpellScripts |
| ScriptMapMap | sEventScripts |
| ScriptMapMap | sWaypointScripts |
| LanguageDesc | lang_description [LANGUAGES_COUNT] |
| static constexpr uint32 | MAX_QUEST_MONEY_REWARDS = 10 |
| #define ACORE_TRAINER_START_REF 200000 |
| #define MAX_ACORE_STRING_ID 2000000000 |
| #define MAX_CHANNEL_NAME 50 |
| #define MAX_CHARTER_NAME 24 |
| #define MAX_CREATURE_AI_TEXT_STRING_ID (-1000000) |
| #define MAX_INTERNAL_PLAYER_NAME 15 |
| #define MAX_PET_NAME 12 |
| #define MAX_PLAYER_NAME 12 |
| #define MIN_ACORE_STRING_ID 1 |
| #define MIN_CREATURE_AI_TEXT_STRING_ID (-1) |
| #define sObjectMgr ObjectMgr::instance() |
| typedef std::unordered_map<int32, AcoreString> AcoreStringContainer |
| typedef std::unordered_map<uint32, BroadcastText> BroadcastTextContainer |
| typedef std::unordered_map<uint32, TrainerSpellData> CacheTrainerSpellContainer |
| typedef std::unordered_map<uint32, VendorItemData> CacheVendorItemContainer |
| typedef std::set<ObjectGuid::LowType> CellGuidSet |
| typedef std::unordered_map<uint32, CellObjectGuids> CellObjectGuidsMap |
| typedef std::vector<uint32> CreatureCustomIDsContainer |
| typedef std::unordered_map<ObjectGuid::LowType, CreatureData> CreatureDataContainer |
| typedef std::unordered_map<uint32, CreatureLocale> CreatureLocaleContainer |
| typedef std::unordered_map<uint32, DungeonEncounterList> DungeonEncounterContainer |
| typedef std::list<DungeonEncounter const*> DungeonEncounterList |
| typedef std::unordered_map<ObjectGuid::LowType, GameObjectData> GameObjectDataContainer |
| typedef std::unordered_map<uint32, GameObjectLocale> GameObjectLocaleContainer |
| typedef std::unordered_map<uint32, GameTele > GameTeleContainer |
| typedef std::multimap<uint32, GossipMenuItems> GossipMenuItemsContainer |
| typedef std::unordered_map<uint32, GossipMenuItemsLocale> GossipMenuItemsLocaleContainer |
| typedef std::pair<GossipMenuItemsContainer::const_iterator, GossipMenuItemsContainer::const_iterator> GossipMenuItemsMapBounds |
| typedef std::pair<GossipMenuItemsContainer::iterator, GossipMenuItemsContainer::iterator> GossipMenuItemsMapBoundsNonConst |
| typedef std::multimap<uint32, GossipMenus> GossipMenusContainer |
| typedef std::pair<GossipMenusContainer::const_iterator, GossipMenusContainer::const_iterator> GossipMenusMapBounds |
| typedef std::pair<GossipMenusContainer::iterator, GossipMenusContainer::iterator> GossipMenusMapBoundsNonConst |
| typedef std::unordered_map<uint16, InstanceTemplate> InstanceTemplateContainer |
| typedef std::unordered_map<uint32, ItemLocale> ItemLocaleContainer |
| typedef std::unordered_map<uint32, ItemSetNameLocale> ItemSetNameLocaleContainer |
| typedef std::map<ObjectGuid, ObjectGuid> LinkedRespawnContainer |
| typedef std::unordered_map<uint8, MailLevelRewardList> MailLevelRewardContainer |
| typedef std::list<MailLevelReward> MailLevelRewardList |
| typedef std::unordered_map<uint32, CellObjectGuidsMap> MapObjectGuids |
| typedef std::map<std::pair<std::string, uint32>, ModuleString> ModuleStringContainer |
| typedef std::unordered_map<uint32, NpcTextLocale> NpcTextLocaleContainer |
| typedef std::map<uint32, PageText> PageTextContainer |
| typedef std::unordered_map<uint32, PageTextLocale> PageTextLocaleContainer |
| typedef std::map<std::tuple<ShapeshiftForm , uint8 , uint8 , uint8 >, uint32 > PlayerShapeshiftModelMap |
| typedef std::map<std::pair<SummonSlot , Races >, uint32 > PlayerTotemModelMap |
| typedef std::unordered_map<uint32, PointOfInterestLocale> PointOfInterestLocaleContainer |
| typedef std::map<std::pair<uint32, uint8>, QuestGreeting> QuestGreetingContainer |
| typedef std::unordered_map<uint32, QuestLocale> QuestLocaleContainer |
| typedef std::array<uint32, MAX_QUEST_MONEY_REWARDS> QuestMoneyRewardArray |
| typedef std::unordered_map<uint32, QuestMoneyRewardArray> QuestMoneyRewardStore |
| typedef std::unordered_map<uint32, QuestOfferRewardLocale> QuestOfferRewardLocaleContainer |
| typedef std::unordered_map<uint32, QuestPOIVector> QuestPOIContainer |
| typedef std::vector<QuestPOI> QuestPOIVector |
| typedef std::pair<QuestRelations::const_iterator, QuestRelations::const_iterator> QuestRelationBounds |
| typedef std::multimap<uint32, uint32> QuestRelations |
| typedef std::unordered_map<uint32, QuestRequestItemsLocale> QuestRequestItemsLocaleContainer |
| typedef std::multimap<uint32, ScriptInfo> ScriptMap |
| typedef std::map<uint32, ScriptMap > ScriptMapMap |
| typedef std::multimap<uint32, SpellClickInfo> SpellClickInfoContainer |
| typedef std::pair<SpellClickInfoContainer::const_iterator, SpellClickInfoContainer::const_iterator> SpellClickInfoMapBounds |
| typedef std::pair<SpellScriptsContainer::iterator, SpellScriptsContainer::iterator> SpellScriptsBounds |
| typedef std::multimap<uint32, uint32> SpellScriptsContainer |
| typedef std::map<TempSummonGroupKey, std::vector<TempSummonData> > TempSummonDataContainer |
| typedef std::unordered_map<uint32, VehicleSeatAddon> VehicleSeatAddonContainer |
| enum eScriptFlags |
| enum ScriptCommands |
| enum ScriptsType |
| Enumerator | |
|---|---|
| SCRIPTS_FIRST | |
| SCRIPTS_SPELL | |
| SCRIPTS_EVENT | |
| SCRIPTS_WAYPOINT | |
| SCRIPTS_LAST | |
| enum SkillRangeType |
| LanguageDesc const * GetLanguageDescByID | ( | uint32 | lang | ) |
References lang_description, and LANGUAGES_COUNT.
Referenced by WorldSession::HandleMessagechatOpcode(), ObjectMgr::LoadBroadcastTexts(), and CreatureTextMgr::LoadCreatureTexts().
| std::string GetScriptCommandName | ( | ScriptCommands | command | ) |
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_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, and SCRIPT_COMMAND_TEMP_SUMMON_CREATURE.
Referenced by ScriptInfo::GetDebugInfo(), and ObjectMgr::LoadScripts().
| ScriptMapMap * GetScriptsMapByType | ( | ScriptsType | type | ) |
References SCRIPTS_EVENT, SCRIPTS_SPELL, SCRIPTS_WAYPOINT, sEventScripts, sSpellScripts, and sWaypointScripts.
Referenced by ObjectMgr::LoadScripts(), and Map::ScriptsProcess().
| std::string GetScriptsTableNameByType | ( | ScriptsType | type | ) |
References SCRIPTS_EVENT, SCRIPTS_SPELL, and SCRIPTS_WAYPOINT.
Referenced by ScriptInfo::GetDebugInfo(), and ObjectMgr::LoadScripts().
| SkillRangeType GetSkillRangeType | ( | SkillRaceClassInfoEntry const * | rcEntry | ) |
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().
| bool normalizePlayerName | ( | std::string & | name | ) |
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(), WorldSession::HandleChannelBan(), WorldSession::HandleChannelInvite(), WorldSession::HandleChannelKick(), WorldSession::HandleChannelModerator(), WorldSession::HandleChannelMute(), WorldSession::HandleChannelSetOwner(), WorldSession::HandleChannelUnban(), WorldSession::HandleChannelUnmoderator(), WorldSession::HandleChannelUnmute(), character_commandscript::HandleCharacterRenameCommand(), WorldSession::HandleCharCreateOpcode(), WorldSession::HandleCharCustomizeCallback(), WorldSession::HandleCharFactionOrRaceChangeCallback(), WorldSession::HandleCharRenameOpcode(), deserter_commandscript::HandleDeserterAdd(), ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketGetByNameCommand(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGroupSwapSubGroupOpcode(), WorldSession::HandleGroupUninviteOpcode(), WorldSession::HandleGuildDemoteOpcode(), WorldSession::HandleGuildInviteOpcode(), WorldSession::HandleGuildLeaderOpcode(), WorldSession::HandleGuildPromoteOpcode(), WorldSession::HandleGuildRemoveOpcode(), WorldSession::HandleGuildSetOfficerNoteOpcode(), WorldSession::HandleGuildSetPublicNoteOpcode(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleSendMail(), WorldSession::HandleSetPlayerDeclinedNames(), ban_commandscript::HandleUnBanCharacterCommand(), ban_commandscript::HandleUnBanHelper(), message_commandscript::HandleWhispersCommand(), WorldSession::HandleWhoisOpcode(), PlayerDumpReader::LoadDump(), Acore::ChatCommands::PlayerIdentifier::TryConsume(), and character_commandscript::ValidatePDumpTarget().
|
extern |
Referenced by GetLanguageDescByID(), and learn_commandscript::HandleLearnAllLangCommand().
|
staticconstexpr |
Referenced by ObjectMgr::GetQuestMoneyReward(), and ObjectMgr::LoadQuestMoneyRewards().
|
extern |
|
extern |
Referenced by Spell::EffectDummy(), Spell::EffectScriptEffect(), GetScriptsMapByType(), and ObjectMgr::LoadSpellScripts().
|
extern |