TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DisableMgr.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef TRINITY_DISABLEMGR_H
20 #define TRINITY_DISABLEMGR_H
21 
22 #include "VMapManager2.h"
23 #include "Define.h"
24 
25 class Unit;
26 
28 {
37 };
38 
40 {
51 };
52 
54 {
56 };
57 
58 namespace DisableMgr
59 {
61  TC_GAME_API bool IsDisabledFor(DisableType type, uint32 entry, Unit const* unit, uint8 flags = 0);
65 }
66 
67 #endif //TRINITY_DISABLEMGR_H
bool IsDisabledFor(DisableType type, uint32 entry, Unit const *unit, uint8 flags)
Definition: DisableMgr.cpp:277
bool IsPathfindingEnabled(uint32 mapId)
Definition: DisableMgr.cpp:380
SpellDisableTypes
Definition: DisableMgr.h:39
DisableType
Definition: DisableMgr.h:27
Definition: DisableMgr.h:47
void CheckQuestDisables()
Definition: DisableMgr.cpp:248
void LoadDisables()
Definition: DisableMgr.cpp:58
Definition: DisableMgr.h:43
Definition: DisableMgr.h:45
Definition: DisableMgr.h:46
Definition: DisableMgr.h:36
Definition: DisableMgr.h:42
bool IsVMAPDisabledFor(uint32 entry, uint8 flags)
Definition: DisableMgr.cpp:375
Definition: DisableMgr.h:32
uint32_t uint32
Definition: Define.h:150
Definition: DisableMgr.h:35
Definition: DisableMgr.h:29
Definition: DisableMgr.h:41
Definition: DisableMgr.h:30
Definition: DisableMgr.cpp:27
Definition: DisableMgr.h:55
MMapDisableTypes
Definition: DisableMgr.h:53
Definition: DisableMgr.h:33
Definition: DisableMgr.h:31
#define TC_GAME_API
Definition: Define.h:134
uint8_t uint8
Definition: Define.h:152
Definition: DisableMgr.h:34
uint8 flags
Definition: DisableMgr.cpp:44
Definition: DisableMgr.h:48
Definition: DisableMgr.h:44
Definition: Unit.h:1305