TrinityCore
DisableMgr.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef TRINITY_DISABLEMGR_H
19#define TRINITY_DISABLEMGR_H
20
21#include "Define.h"
22
23class WorldObject;
24
26{
36
38};
39
41{
56};
57
59{
61};
62
63namespace DisableMgr
64{
66 TC_GAME_API bool IsDisabledFor(DisableType type, uint32 entry, WorldObject const* ref, uint8 flags = 0);
70}
71
72#endif //TRINITY_DISABLEMGR_H
#define TC_GAME_API
Definition: Define.h:123
uint8_t uint8
Definition: Define.h:144
uint32_t uint32
Definition: Define.h:142
uint16 flags
Definition: DisableMgr.cpp:49
MMapDisableTypes
Definition: DisableMgr.h:59
@ MMAP_DISABLE_PATHFINDING
Definition: DisableMgr.h:60
SpellDisableTypes
Definition: DisableMgr.h:41
@ SPELL_DISABLE_LOS
Definition: DisableMgr.h:48
@ SPELL_DISABLE_CREATURE
Definition: DisableMgr.h:43
@ SPELL_DISABLE_PET
Definition: DisableMgr.h:44
@ SPELL_DISABLE_ARENAS
Definition: DisableMgr.h:50
@ SPELL_DISABLE_MAP
Definition: DisableMgr.h:46
@ SPELL_DISABLE_PLAYER
Definition: DisableMgr.h:42
@ SPELL_DISABLE_DEPRECATED_SPELL
Definition: DisableMgr.h:45
@ MAX_SPELL_DISABLE_TYPE
Definition: DisableMgr.h:52
@ SPELL_DISABLE_BATTLEGROUNDS
Definition: DisableMgr.h:51
@ SPELL_DISABLE_GAMEOBJECT
Definition: DisableMgr.h:49
@ SPELL_DISABLE_AREA
Definition: DisableMgr.h:47
DisableType
Definition: DisableMgr.h:26
@ DISABLE_TYPE_SPELL
Definition: DisableMgr.h:27
@ DISABLE_TYPE_CRITERIA
Definition: DisableMgr.h:31
@ DISABLE_TYPE_MMAP
Definition: DisableMgr.h:34
@ MAX_DISABLE_TYPES
Definition: DisableMgr.h:37
@ DISABLE_TYPE_VMAP
Definition: DisableMgr.h:33
@ DISABLE_TYPE_QUEST
Definition: DisableMgr.h:28
@ DISABLE_TYPE_MAP
Definition: DisableMgr.h:29
@ DISABLE_TYPE_BATTLEGROUND
Definition: DisableMgr.h:30
@ DISABLE_TYPE_LFG_MAP
Definition: DisableMgr.h:35
@ DISABLE_TYPE_OUTDOORPVP
Definition: DisableMgr.h:32
void CheckQuestDisables()
Definition: DisableMgr.cpp:256
bool IsDisabledFor(DisableType type, uint32 entry, WorldObject const *ref, uint8 flags)
Definition: DisableMgr.cpp:285
bool IsVMAPDisabledFor(uint32 entry, uint8 flags)
Definition: DisableMgr.cpp:396
bool IsPathfindingEnabled(uint32 mapId)
Definition: DisableMgr.cpp:401
void LoadDisables()
Definition: DisableMgr.cpp:59