OregonCore  revision fb2a440-git
Your Favourite TBC server
DisableMgr.h File Reference
#include <ace/Singleton.h>
#include "Unit.h"

Go to the source code of this file.

Classes

struct  DisableData
 
class  DisableMgr
 

Macros

#define MAX_DISABLE_TYPES   4
 
#define sDisableMgr   (*ACE_Singleton<DisableMgr, ACE_Null_Mutex>::instance())
 

Typedefs

typedef std::map< uint32, DisableDataDisableTypeMap
 
typedef std::map< DisableType, DisableTypeMapDisableMap
 

Enumerations

enum  DisableType { DISABLE_TYPE_SPELL = 0, DISABLE_TYPE_QUEST = 1, DISABLE_TYPE_MAP = 2, DISABLE_TYPE_BATTLEGROUND = 3 }
 
enum  SpellDisableTypes {
  SPELL_DISABLE_PLAYER = 0x1, SPELL_DISABLE_CREATURE = 0x2, SPELL_DISABLE_PET = 0x4, SPELL_DISABLE_DEPRECATED_SPELL = 0x8,
  SPELL_DISABLE_MAP = 0x10, SPELL_DISABLE_AREA = 0x20, SPELL_DISABLE_LOS = 0x40, MAX_SPELL_DISABLE_TYPE
}
 

Macro Definition Documentation

#define MAX_DISABLE_TYPES   4

Definition at line 46 of file DisableMgr.h.

Referenced by DisableMgr::IsDisabledFor(), and DisableMgr::LoadDisables().

Typedef Documentation

Definition at line 55 of file DisableMgr.h.

typedef std::map<uint32, DisableData> DisableTypeMap

Definition at line 54 of file DisableMgr.h.

Enumeration Type Documentation

Enumerator
DISABLE_TYPE_SPELL 
DISABLE_TYPE_QUEST 
DISABLE_TYPE_MAP 
DISABLE_TYPE_BATTLEGROUND 

Definition at line 24 of file DisableMgr.h.

Enumerator
SPELL_DISABLE_PLAYER 
SPELL_DISABLE_CREATURE 
SPELL_DISABLE_PET 
SPELL_DISABLE_DEPRECATED_SPELL 
SPELL_DISABLE_MAP 
SPELL_DISABLE_AREA 
SPELL_DISABLE_LOS 
MAX_SPELL_DISABLE_TYPE 

Definition at line 32 of file DisableMgr.h.