TrinityCore
RaceMask.h File Reference
#include "Define.h"
#include <type_traits>
+ Include dependency graph for RaceMask.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Trinity::RaceMask< T >
 

Namespaces

namespace  Trinity
 

Macros

#define MAX_RACES   78
 

Enumerations

enum  Races {
  RACE_NONE = 0 , RACE_HUMAN = 1 , RACE_ORC = 2 , RACE_DWARF = 3 ,
  RACE_NIGHTELF = 4 , RACE_UNDEAD_PLAYER = 5 , RACE_TAUREN = 6 , RACE_GNOME = 7 ,
  RACE_TROLL = 8 , RACE_GOBLIN = 9 , RACE_BLOODELF = 10 , RACE_DRAENEI = 11 ,
  RACE_WORGEN = 22 , RACE_PANDAREN_NEUTRAL = 24 , RACE_PANDAREN_ALLIANCE = 25 , RACE_PANDAREN_HORDE = 26 ,
  RACE_NIGHTBORNE = 27 , RACE_HIGHMOUNTAIN_TAUREN = 28 , RACE_VOID_ELF = 29 , RACE_LIGHTFORGED_DRAENEI = 30 ,
  RACE_ZANDALARI_TROLL = 31 , RACE_KUL_TIRAN = 32 , RACE_DARK_IRON_DWARF = 34 , RACE_VULPERA = 35 ,
  RACE_MAGHAR_ORC = 36 , RACE_MECHAGNOME = 37 , RACE_DRACTHYR_ALLIANCE = 52 , RACE_DRACTHYR_HORDE = 70
}
 

Variables

constexpr Trinity::RaceMask< uint64RACEMASK_ALL_PLAYABLE
 
constexpr Trinity::RaceMask< uint64RACEMASK_NEUTRAL = { std::integral_constant<uint64, Trinity::RaceMask<uint64>::GetMaskForRace(RACE_PANDAREN_NEUTRAL)>::value }
 
constexpr Trinity::RaceMask< uint64RACEMASK_ALLIANCE
 
constexpr Trinity::RaceMask< uint64RACEMASK_HORDE = { std::integral_constant<uint64, (RACEMASK_ALL_PLAYABLE & ~(RACEMASK_NEUTRAL | RACEMASK_ALLIANCE)).RawValue>::value }
 

Macro Definition Documentation

◆ MAX_RACES

#define MAX_RACES   78

Definition at line 77 of file RaceMask.h.

Enumeration Type Documentation

◆ Races

enum Races
Enumerator
RACE_NONE 
RACE_HUMAN 
RACE_ORC 
RACE_DWARF 
RACE_NIGHTELF 
RACE_UNDEAD_PLAYER 
RACE_TAUREN 
RACE_GNOME 
RACE_TROLL 
RACE_GOBLIN 
RACE_BLOODELF 
RACE_DRAENEI 
RACE_WORGEN 
RACE_PANDAREN_NEUTRAL 
RACE_PANDAREN_ALLIANCE 
RACE_PANDAREN_HORDE 
RACE_NIGHTBORNE 
RACE_HIGHMOUNTAIN_TAUREN 
RACE_VOID_ELF 
RACE_LIGHTFORGED_DRAENEI 
RACE_ZANDALARI_TROLL 
RACE_KUL_TIRAN 
RACE_DARK_IRON_DWARF 
RACE_VULPERA 
RACE_MAGHAR_ORC 
RACE_MECHAGNOME 
RACE_DRACTHYR_ALLIANCE 
RACE_DRACTHYR_HORDE 

Definition at line 25 of file RaceMask.h.

Variable Documentation

◆ RACEMASK_ALL_PLAYABLE

constexpr Trinity::RaceMask<uint64> RACEMASK_ALL_PLAYABLE
constexpr
Initial value:
= { std::integral_constant<uint64,
uint64_t uint64
Definition: Define.h:141
@ RACE_DARK_IRON_DWARF
Definition: RaceMask.h:61
@ RACE_TROLL
Definition: RaceMask.h:35
@ RACE_UNDEAD_PLAYER
Definition: RaceMask.h:32
@ RACE_PANDAREN_NEUTRAL
Definition: RaceMask.h:51
@ RACE_ORC
Definition: RaceMask.h:29
@ RACE_LIGHTFORGED_DRAENEI
Definition: RaceMask.h:57
@ RACE_DRAENEI
Definition: RaceMask.h:38
@ RACE_NIGHTBORNE
Definition: RaceMask.h:54
@ RACE_HIGHMOUNTAIN_TAUREN
Definition: RaceMask.h:55
@ RACE_DRACTHYR_HORDE
Definition: RaceMask.h:66
@ RACE_ZANDALARI_TROLL
Definition: RaceMask.h:58
@ RACE_VOID_ELF
Definition: RaceMask.h:56
@ RACE_NIGHTELF
Definition: RaceMask.h:31
@ RACE_BLOODELF
Definition: RaceMask.h:37
@ RACE_DWARF
Definition: RaceMask.h:30
@ RACE_GNOME
Definition: RaceMask.h:34
@ RACE_GOBLIN
Definition: RaceMask.h:36
@ RACE_KUL_TIRAN
Definition: RaceMask.h:59
@ RACE_HUMAN
Definition: RaceMask.h:28
@ RACE_DRACTHYR_ALLIANCE
Definition: RaceMask.h:65
@ RACE_WORGEN
Definition: RaceMask.h:49
@ RACE_PANDAREN_ALLIANCE
Definition: RaceMask.h:52
@ RACE_VULPERA
Definition: RaceMask.h:62
@ RACE_MECHAGNOME
Definition: RaceMask.h:64
@ RACE_MAGHAR_ORC
Definition: RaceMask.h:63
@ RACE_PANDAREN_HORDE
Definition: RaceMask.h:53
@ RACE_TAUREN
Definition: RaceMask.h:33
static constexpr T GetMaskForRace(uint8 raceId)
Definition: RaceMask.h:137

Definition at line 151 of file RaceMask.h.

◆ RACEMASK_ALLIANCE

◆ RACEMASK_HORDE

constexpr Trinity::RaceMask<uint64> RACEMASK_HORDE = { std::integral_constant<uint64, (RACEMASK_ALL_PLAYABLE & ~(RACEMASK_NEUTRAL | RACEMASK_ALLIANCE)).RawValue>::value }
constexpr

Definition at line 198 of file RaceMask.h.

◆ RACEMASK_NEUTRAL

constexpr Trinity::RaceMask<uint64> RACEMASK_NEUTRAL = { std::integral_constant<uint64, Trinity::RaceMask<uint64>::GetMaskForRace(RACE_PANDAREN_NEUTRAL)>::value }
constexpr

Definition at line 181 of file RaceMask.h.