25 m_value = type.m_value;
32 return m_value == type.m_value;
37 return m_value != type.m_value;
42 return m_value < type.m_value;
47 return m_value > type.m_value;
57 m_value |= type.m_value;
69 m_value &= type.m_value;
81 m_value ^= type.m_value;
91 return (m_value & type.m_value) > 0;
104 unsigned short m_value = 0;
Represents a type of trigger, which can be used to activate weapons.
bool operator<(const TriggerType &type) const
bool operator>(const TriggerType &type) const
TriggerType()
Instantiate a trigger type object.
bool Contains(const TriggerType &type) const
Check if the trigger type contains a specific trigger.
static const TriggerType None
static const TriggerType All
TriggerType & operator|=(const TriggerType &type)
const TriggerType operator&(const TriggerType &type) const
TriggerType & operator&=(const TriggerType &type)
TriggerType(const unsigned short value)
Instantiate a trigger type object with a specific value.
TriggerType & operator^=(const TriggerType &type)
TriggerType & operator=(const TriggerType &type)
const TriggerType operator|(const TriggerType &type) const
const TriggerType operator^(const TriggerType &type) const
static const TriggerType Secondary
bool operator==(const TriggerType &type) const
bool operator!=(const TriggerType &type) const
static const TriggerType Primary
static const TriggerType Special