![]() |
TrinityCore
|
#include <RaceMask.h>
Public Member Functions | |
| constexpr bool | HasRace (uint32 raceId) const |
| constexpr bool | operator== (RaceMask const &) const =default |
| constexpr bool | IsEmpty () const |
| constexpr RaceMask | operator& (RaceMask right) const |
| constexpr RaceMask | operator| (RaceMask right) const |
| constexpr RaceMask | operator~ () const |
| template<typename OtherT , size_t OtherN> | |
| constexpr | operator RaceMask< OtherT, OtherN > () const |
Static Public Member Functions | |
| static constexpr int32 | GetRaceBit (uint32 raceId) |
| static constexpr RaceMask | GetMaskForRace (uint32 raceId) |
Public Attributes | |
| std::array< T, N > | RawValue |
Definition at line 91 of file RaceMask.h.
|
inlinestaticconstexpr |
Definition at line 156 of file RaceMask.h.
References Trinity::RaceMask< T, N >::GetRaceBit(), and Trinity::RaceMask< T, N >::RawValue.
Referenced by Unit::GetRaceMask().
|
inlinestaticconstexpr |
Definition at line 97 of file RaceMask.h.
References RACE_BLOODELF, RACE_DARK_IRON_DWARF, RACE_DRACTHYR_ALLIANCE, RACE_DRACTHYR_HORDE, RACE_DRAENEI, RACE_DWARF, RACE_EARTHEN_DWARF_ALLIANCE, RACE_EARTHEN_DWARF_HORDE, RACE_GNOME, RACE_GOBLIN, RACE_HARANIR_ALLIANCE, RACE_HARANIR_HORDE, RACE_HIGHMOUNTAIN_TAUREN, RACE_HUMAN, RACE_KUL_TIRAN, RACE_LIGHTFORGED_DRAENEI, RACE_MAGHAR_ORC, RACE_MECHAGNOME, RACE_NIGHTBORNE, RACE_NIGHTELF, RACE_ORC, RACE_PANDAREN_ALLIANCE, RACE_PANDAREN_HORDE, RACE_PANDAREN_NEUTRAL, RACE_TAUREN, RACE_TROLL, RACE_UNDEAD_PLAYER, RACE_VOID_ELF, RACE_VULPERA, RACE_WORGEN, and RACE_ZANDALARI_TROLL.
Referenced by Trinity::RaceMask< T, N >::GetMaskForRace(), and Trinity::RaceMask< T, N >::HasRace().
|
inlineconstexpr |
Definition at line 149 of file RaceMask.h.
References Trinity::RaceMask< T, N >::GetRaceBit(), and Trinity::RaceMask< T, N >::RawValue.
Referenced by SpellInfo::CalcProcPPM(), Player::CanRollNeedForItem(), Player::CanUseItem(), WorldSession::HandleWhoOpcode(), SpellArea::IsFitToRequirements(), ConditionMgr::IsPlayerMeetingCondition(), CriteriaData::IsValid(), Player::IsValidRace(), ObjectMgr::LoadPlayerInfo(), Condition::Meets(), WorldSession::MeetsChrCustomizationReq(), and Player::SatisfyQuestRace().
|
inlineconstexpr |
Definition at line 167 of file RaceMask.h.
References Trinity::RaceMask< T, N >::RawValue.
Referenced by ConditionMgr::isConditionTypeValid(), SpellArea::IsFitToRequirements(), ConditionMgr::IsPlayerMeetingCondition(), ObjectMgr::LoadPlayerInfo(), ObjectMgr::LoadQuests(), SpellMgr::LoadSpellAreas(), and WorldSession::MeetsChrCustomizationReq().
|
inlineexplicitconstexpr |
Definition at line 200 of file RaceMask.h.
References Trinity::RaceMask< T, N >::RawValue.
|
inlineconstexpr |
Definition at line 175 of file RaceMask.h.
References Trinity::RaceMask< T, N >::RawValue.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 183 of file RaceMask.h.
References Trinity::RaceMask< T, N >::RawValue.
|
inlineconstexpr |
Definition at line 191 of file RaceMask.h.
References Trinity::RaceMask< T, N >::RawValue.
| std::array<T, N> Trinity::RaceMask< T, N >::RawValue |
Definition at line 95 of file RaceMask.h.
Referenced by Trinity::RaceMask< T, N >::GetMaskForRace(), Unit::GetRaceMask(), WorldSession::HandleWhoOpcode(), Trinity::RaceMask< T, N >::HasRace(), ConditionMgr::isConditionTypeValid(), Trinity::RaceMask< T, N >::IsEmpty(), ObjectMgr::LoadMailLevelRewards(), ObjectMgr::LoadPlayerInfo(), ObjectMgr::LoadQuests(), SpellMgr::LoadSpellAreas(), Trinity::RaceMask< T, N >::operator RaceMask< OtherT, OtherN >(), Trinity::RaceMask< T, N >::operator&(), WorldPackets::Guild::operator<<(), WorldPackets::Who::operator>>(), Trinity::RaceMask< T, N >::operator|(), Trinity::RaceMask< T, N >::operator~(), and WorldPackets::Quest::QueryQuestInfoResponse::Write().