![]() |
TrinityCore
|
#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 } |
Variables | |
| ScriptMapMap | sEventScripts |
| ScriptMapMap | sWaypointScripts |
| LanguageDesc | lang_description [LANGUAGES_COUNT] |
| #define ChooseCreatureFlagSource | ( | field | ) | ((data && data->field) ? data->field : cinfo->field) |
| enum LanguageType |
| Enumerator | |
|---|---|
| LT_BASIC_LATIN | |
| LT_EXTENDEN_LATIN | |
| LT_CYRILLIC | |
| LT_EAST_ASIA | |
| LT_ANY | |
Definition at line 8587 of file ObjectMgr.cpp.
|
inline |
Definition at line 7524 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 7545 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 GameObjectTemplate::entry, GAMEOBJECT_TYPE_TRAP, sObjectMgr, TC_LOG_ERROR, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
Definition at line 7496 of file ObjectMgr.cpp.
References GameObjectTemplate::door, GameObjectTemplate::entry, GameObjectTemplate::lockId, sLockStore, TC_LOG_ERROR, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
Definition at line 7536 of file ObjectMgr.cpp.
References GameObjectTemplate::entry, TC_LOG_ERROR, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
Definition at line 7515 of file ObjectMgr.cpp.
References GameObjectTemplate::entry, sSpellMgr, TC_LOG_ERROR, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
| 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().
|
static |
Definition at line 8596 of file ObjectMgr.cpp.
References CONFIG_REALM_ZONE, LT_ANY, LT_BASIC_LATIN, LT_CYRILLIC, LT_EAST_ASIA, LT_EXTENDEN_LATIN, REALM_ZONE_CHINA, REALM_ZONE_DEVELOPMENT, REALM_ZONE_ENGLISH, REALM_ZONE_FRENCH, REALM_ZONE_GERMAN, REALM_ZONE_KOREA, REALM_ZONE_LATIN_AMERICA, REALM_ZONE_OCEANIC, REALM_ZONE_QA_SERVER, REALM_ZONE_RUSSIAN, REALM_ZONE_SPANISH, REALM_ZONE_TAIWAN, REALM_ZONE_TEST_SERVER, REALM_ZONE_UNITED_STATES, REALM_ZONE_UNKNOWN, and sWorld.
Referenced by isValidString().
| 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().
| bool isValidString | ( | const std::wstring & | wstr, |
| uint32 | strictMask, | ||
| bool | numericOrSpace, | ||
| bool | create = false |
||
| ) |
Definition at line 8624 of file ObjectMgr.cpp.
References GetRealmLanguageType(), isBasicLatinString(), isCyrillicString(), isEastAsianString(), isExtendedLatinString(), LT_CYRILLIC, LT_EAST_ASIA, and LT_EXTENDEN_LATIN.
Referenced by ObjectMgr::CheckPetName(), ObjectMgr::CheckPlayerName(), and ObjectMgr::IsValidCharterName().
| 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().
| LanguageDesc lang_description[LANGUAGES_COUNT] |
Definition at line 154 of file ObjectMgr.cpp.
Referenced by GetLanguageDescByID(), and learn_commandscript::HandleLearnAllLangCommand().
| ScriptMapMap sEventScripts |
Definition at line 60 of file ObjectMgr.cpp.
Referenced by Transport::DoEventIfAny(), FlightPathMovementGenerator::DoEventIfAny(), Spell::EffectSendEvent(), GetScriptsMapByType(), ObjectMgr::LoadEventScripts(), Spell::SendLoot(), and GameObject::Use().
| ScriptMapMap sWaypointScripts |
Definition at line 61 of file ObjectMgr.cpp.
Referenced by GetScriptsMapByType(), ObjectMgr::LoadWaypointScripts(), and WaypointMovementGenerator< Creature >::OnArrived().