TrinityCore
Loading...
Searching...
No Matches
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
40
58
63
64namespace DisableMgr
65{
67 TC_GAME_API bool IsDisabledFor(DisableType type, uint32 entry, WorldObject const* ref, uint8 flags = 0);
71}
72
73#endif //TRINITY_DISABLEMGR_H
#define TC_GAME_API
Definition Define.h:129
uint8_t uint8
Definition Define.h:156
uint32_t uint32
Definition Define.h:154
uint16 flags
MMapDisableTypes
Definition DisableMgr.h:60
@ MMAP_DISABLE_PATHFINDING
Definition DisableMgr.h:61
SpellDisableTypes
Definition DisableMgr.h:42
@ SPELL_DISABLE_LOS
Definition DisableMgr.h:49
@ SPELL_DISABLE_CREATURE
Definition DisableMgr.h:44
@ SPELL_DISABLE_PET
Definition DisableMgr.h:45
@ SPELL_DISABLE_ARENAS
Definition DisableMgr.h:51
@ SPELL_DISABLE_MAP
Definition DisableMgr.h:47
@ SPELL_DISABLE_PLAYER
Definition DisableMgr.h:43
@ SPELL_DISABLE_DEPRECATED_SPELL
Definition DisableMgr.h:46
@ MAX_SPELL_DISABLE_TYPE
Definition DisableMgr.h:53
@ SPELL_DISABLE_BATTLEGROUNDS
Definition DisableMgr.h:52
@ SPELL_DISABLE_GAMEOBJECT
Definition DisableMgr.h:50
@ SPELL_DISABLE_AREA
Definition DisableMgr.h:48
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
@ DISABLE_TYPE_PHASE_AREA
Definition DisableMgr.h:36
@ MAX_DISABLE_TYPES
Definition DisableMgr.h:38
@ 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()
bool IsDisabledFor(DisableType type, uint32 entry, WorldObject const *ref, uint8 flags)
bool IsVMAPDisabledFor(uint32 entry, uint8 flags)
bool IsPathfindingEnabled(uint32 mapId)
void LoadDisables()