AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Namespaces | |
namespace | anonymous_namespace{DisableMgr.cpp} |
Functions | |
void | LoadDisables () |
void | CheckQuestDisables () |
bool | IsDisabledFor (DisableType type, uint32 entry, Unit const *unit, uint8 flags) |
bool | IsVMAPDisabledFor (uint32 entry, uint8 flags) |
bool | IsPathfindingEnabled (const Map *map) |
void DisableMgr::CheckQuestDisables | ( | ) |
References DISABLE_TYPE_QUEST, getMSTime(), GetMSTimeDiffToNow(), LOG_ERROR, LOG_INFO, and sObjectMgr.
Referenced by reload_commandscript::HandleReloadDisablesCommand(), and World::SetInitialWorldSettings().
bool DisableMgr::IsDisabledFor | ( | DisableType | type, |
uint32 | entry, | ||
Unit const * | unit, | ||
uint8 | flags | ||
) |
References DISABLE_TYPE_ACHIEVEMENT_CRITERIA, DISABLE_TYPE_BATTLEGROUND, DISABLE_TYPE_GAME_EVENT, DISABLE_TYPE_GO_LOS, DISABLE_TYPE_LFG_MAP, DISABLE_TYPE_LOOT, DISABLE_TYPE_MAP, DISABLE_TYPE_OUTDOORPVP, DISABLE_TYPE_QUEST, DISABLE_TYPE_SPELL, DISABLE_TYPE_VMAP, DUNGEON_DIFFICULTY_HEROIC, DUNGEON_DIFFICULTY_NORMAL, DUNGEON_STATUSFLAG_HEROIC, DUNGEON_STATUSFLAG_NORMAL, WorldObject::GetAreaId(), GetDownscaledMapDifficultyData(), WorldLocation::GetMapId(), Object::IsCreature(), MapEntry::IsDungeon(), Unit::IsPet(), Object::IsPlayer(), MapEntry::IsRaid(), LOG_ERROR, MAP_COMMON, MapEntry::map_type, RAID_DIFFICULTY_10MAN_HEROIC, RAID_DIFFICULTY_25MAN_HEROIC, RAID_STATUSFLAG_10MAN_HEROIC, RAID_STATUSFLAG_25MAN_HEROIC, sMapStore, SPELL_DISABLE_AREA, SPELL_DISABLE_CREATURE, SPELL_DISABLE_DEPRECATED_SPELL, SPELL_DISABLE_MAP, SPELL_DISABLE_PET, SPELL_DISABLE_PLAYER, and Object::ToPlayer().
Referenced by LootItem::AllowedForPlayer(), Player::CanSeeStartQuest(), Player::CanTakeQuest(), AchievementMgr::CanUpdateCriteria(), Spell::CheckEffectTarget(), GameObject::EnableCollision(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleCalendarGetCalendar(), lfg::LFGMgr::InitializeLockedDungeons(), OutdoorPvPMgr::InitOutdoorPvP(), IsVMAPDisabledFor(), AchievementGlobalMgr::LoadAchievementCriteriaData(), BattlegroundMgr::LoadBattlegroundTemplates(), ObjectMgr::LoadItemTemplates(), ObjectMgr::LoadQuests(), Spell::prepare(), Player::Satisfy(), GameEventMgr::StartEvent(), and Player::TeleportTo().
bool DisableMgr::IsPathfindingEnabled | ( | const Map * | map | ) |
References CONFIG_ENABLE_MMAPS, MMAP::MMapFactory::forbiddenMaps, Map::GetId(), Map::IsBattlegroundOrArena(), and sWorld.
Referenced by HomeMovementGenerator< Creature >::_setTargetLocation(), Spell::CheckCast(), WorldSession::HandlePetActionHelper(), Map::LoadMMap(), and Unit::PetSpellFail().
References DISABLE_TYPE_VMAP, and IsDisabledFor().
Referenced by World::SetInitialWorldSettings().
void DisableMgr::LoadDisables | ( | ) |
References SpellInfo::AttributesEx2, DISABLE_TYPE_ACHIEVEMENT_CRITERIA, DISABLE_TYPE_BATTLEGROUND, DISABLE_TYPE_GAME_EVENT, DISABLE_TYPE_GO_LOS, DISABLE_TYPE_LFG_MAP, DISABLE_TYPE_LOOT, DISABLE_TYPE_MAP, DISABLE_TYPE_OUTDOORPVP, DISABLE_TYPE_QUEST, DISABLE_TYPE_SPELL, DISABLE_TYPE_VMAP, DUNGEON_DIFFICULTY_HEROIC, DUNGEON_STATUSFLAG_HEROIC, Field::Get(), GetMapDifficultyData(), getMSTime(), GetMSTimeDiffToNow(), LOG_ERROR, LOG_INFO, LOG_WARN, MAP_ARENA, MAP_BATTLEGROUND, MAP_COMMON, MAP_INSTANCE, MAP_RAID, MapEntry::map_type, MAX_OUTDOORPVP_TYPES, MAX_SPELL_DISABLE_TYPE, RAID_DIFFICULTY_10MAN_HEROIC, RAID_DIFFICULTY_25MAN_HEROIC, RAID_STATUSFLAG_10MAN_HEROIC, RAID_STATUSFLAG_25MAN_HEROIC, sAchievementCriteriaStore, sBattlemasterListStore, sGameEventMgr, sMapStore, sObjectMgr, SPELL_ATTR2_IGNORE_LINE_OF_SIGHT, SPELL_DISABLE_AREA, SPELL_DISABLE_DEPRECATED_SPELL, SPELL_DISABLE_LOS, SPELL_DISABLE_MAP, sSpellMgr, Acore::Tokenize(), VMAP::VMAP_DISABLE_AREAFLAG, VMAP::VMAP_DISABLE_HEIGHT, VMAP::VMAP_DISABLE_LIQUIDSTATUS, VMAP::VMAP_DISABLE_LOS, and WorldDatabase.
Referenced by reload_commandscript::HandleReloadDisablesCommand(), and World::SetInitialWorldSettings().