![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "ObjectMgr.h"
#include "AccountMgr.h"
#include "AchievementMgr.h"
#include "ArenaTeamMgr.h"
#include "CharacterCache.h"
#include "Chat.h"
#include "Common.h"
#include "CreatureAIFactory.h"
#include "Config.h"
#include "Containers.h"
#include "DatabaseEnv.h"
#include "DBCStructure.h"
#include "DisableMgr.h"
#include "GameObjectAIFactory.h"
#include "GameEventMgr.h"
#include "GameTime.h"
#include "GossipDef.h"
#include "GroupMgr.h"
#include "GuildMgr.h"
#include "LFGMgr.h"
#include "Language.h"
#include "Log.h"
#include "MapMgr.h"
#include "Pet.h"
#include "PoolMgr.h"
#include "ReputationMgr.h"
#include "ScriptMgr.h"
#include "Spell.h"
#include "SpellAuras.h"
#include "SpellMgr.h"
#include "SpellScript.h"
#include "Transport.h"
#include "Unit.h"
#include "UpdateMask.h"
#include "Util.h"
#include "Vehicle.h"
#include "World.h"
#include "StringConvert.h"
#include "Tokenize.h"
#include <boost/algorithm/string.hpp>
Go to the source code of this file.
Functions | |||
std::string | GetScriptsTableNameByType (ScriptsType type) | ||
ScriptMapMap * | GetScriptsMapByType (ScriptsType type) | ||
std::string | GetScriptCommandName (ScriptCommands command) | ||
ReservedNames | |||
Checks NamesReserved.dbc for reserved names
| |||
bool | ReservedNames (std::wstring &name) | ||
Variables | |
ScriptMapMap | sSpellScripts |
ScriptMapMap | sEventScripts |
ScriptMapMap | sWaypointScripts |
ProfanityNames | |||
Checks NamesProfanity.dbc for reserved names
| |||
enum | LanguageType { LT_BASIC_LATIN = 0x0000 , LT_EXTENDEN_LATIN = 0x0001 , LT_CYRILLIC = 0x0002 , LT_EAST_ASIA = 0x0004 , LT_ANY = 0xFFFF } | ||
LanguageDesc | lang_description [LANGUAGES_COUNT] | ||
bool | ProfanityNames (std::wstring &name) | ||
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 const &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 (std::wstring wstr, uint32 strictMask, bool numericOrSpace, bool create=false) | ||
SkillRangeType | GetSkillRangeType (SkillRaceClassInfoEntry const *rcEntry) | ||
enum LanguageType |
Enumerator | |
---|---|
LT_BASIC_LATIN | |
LT_EXTENDEN_LATIN | |
LT_CYRILLIC | |
LT_EAST_ASIA | |
LT_ANY |
|
inline |
References GameObjectTemplate::entry, LOG_ERROR, GameObjectTemplate::type, UNIT_STAND_STATE_SIT_HIGH_CHAIR, and UNIT_STAND_STATE_SIT_LOW_CHAIR.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
References GameObjectTemplate::entry, LOG_ERROR, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
References GameObjectTemplate::entry, GAMEOBJECT_TYPE_TRAP, LOG_ERROR, sObjectMgr, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
References GameObjectTemplate::door, GameObjectTemplate::entry, GameObjectTemplate::lockId, LOG_ERROR, sLockStore, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
References GameObjectTemplate::entry, LOG_ERROR, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
|
inline |
References GameObjectTemplate::entry, LOG_ERROR, sSpellMgr, and GameObjectTemplate::type.
Referenced by ObjectMgr::LoadGameObjectTemplate().
LanguageDesc const * GetLanguageDescByID | ( | uint32 | lang | ) |
References lang_description, and LANGUAGES_COUNT.
Referenced by WorldSession::HandleMessagechatOpcode(), ObjectMgr::LoadBroadcastTexts(), and CreatureTextMgr::LoadCreatureTexts().
|
static |
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 | ) |
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 isValidString | ( | std::wstring | wstr, |
uint32 | strictMask, | ||
bool | numericOrSpace, | ||
bool | create = false |
||
) |
References GetRealmLanguageType(), isBasicLatinString(), isCyrillicString(), isEastAsianString(), isExtendedLatinString(), LT_CYRILLIC, LT_EAST_ASIA, and LT_EXTENDEN_LATIN.
Referenced by ObjectMgr::CheckPetName(), ObjectMgr::CheckPlayerName(), ObjectMgr::IsValidChannelName(), and ObjectMgr::IsValidCharterName().
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().
bool ProfanityNames | ( | std::wstring & | name | ) |
References sNamesProfanityStore, and Utf8toWStr().
Referenced by ObjectMgr::CheckPetName(), ObjectMgr::CheckPlayerName(), and ObjectMgr::IsValidCharterName().
bool ReservedNames | ( | std::wstring & | name | ) |
References sNamesReservedStore, and Utf8toWStr().
Referenced by ObjectMgr::CheckPetName(), ObjectMgr::CheckPlayerName(), and ObjectMgr::IsValidCharterName().
LanguageDesc lang_description[LANGUAGES_COUNT] |
Referenced by GetLanguageDescByID(), and learn_commandscript::HandleLearnAllLangCommand().
ScriptMapMap sEventScripts |
ScriptMapMap sSpellScripts |
Referenced by Spell::EffectDummy(), Spell::EffectScriptEffect(), GetScriptsMapByType(), and ObjectMgr::LoadSpellScripts().
ScriptMapMap sWaypointScripts |