TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Channel::PlayerInfo Struct Reference

Public Member Functions

uint8 GetFlags () const
 
bool HasFlag (uint8 flag) const
 
void SetFlag (uint8 flag)
 
void RemoveFlag (uint8 flag)
 
bool IsOwner () const
 
void SetOwner (bool state)
 
bool IsModerator () const
 
void SetModerator (bool state)
 
bool IsMuted () const
 
void SetMuted (bool state)
 

Public Attributes

ObjectGuid PlayerGuid
 

Private Attributes

uint8 _flags = MEMBER_FLAG_NONE
 

Member Function Documentation

uint8 Channel::PlayerInfo::GetFlags ( ) const
inline
132 { return _flags; }
uint8 _flags
Definition: Channel.h:165
bool Channel::PlayerInfo::HasFlag ( uint8  flag) const
inline
133 { return (_flags & flag) != 0; }
uint8 _flags
Definition: Channel.h:165
bool Channel::PlayerInfo::IsModerator ( ) const
inline
146 { return HasFlag(MEMBER_FLAG_MODERATOR); }
Definition: Channel.h:117
bool HasFlag(uint8 flag) const
Definition: Channel.h:133
bool Channel::PlayerInfo::IsMuted ( ) const
inline
155 { return HasFlag(MEMBER_FLAG_MUTED); }
bool HasFlag(uint8 flag) const
Definition: Channel.h:133
Definition: Channel.h:119
bool Channel::PlayerInfo::IsOwner ( ) const
inline
137 { return HasFlag(MEMBER_FLAG_OWNER); }
bool HasFlag(uint8 flag) const
Definition: Channel.h:133
Definition: Channel.h:116
void Channel::PlayerInfo::RemoveFlag ( uint8  flag)
inline
135 { _flags &= ~flag; }
uint8 _flags
Definition: Channel.h:165
void Channel::PlayerInfo::SetFlag ( uint8  flag)
inline
134 { _flags |= flag; }
uint8 _flags
Definition: Channel.h:165
void Channel::PlayerInfo::SetModerator ( bool  state)
inline
148  {
149  if (state)
151  else
153  }
Definition: Channel.h:117
void RemoveFlag(uint8 flag)
Definition: Channel.h:135
void SetFlag(uint8 flag)
Definition: Channel.h:134
void Channel::PlayerInfo::SetMuted ( bool  state)
inline
157  {
158  if (state)
160  else
162  }
void RemoveFlag(uint8 flag)
Definition: Channel.h:135
Definition: Channel.h:119
void SetFlag(uint8 flag)
Definition: Channel.h:134
void Channel::PlayerInfo::SetOwner ( bool  state)
inline
139  {
140  if (state)
142  else
144  }
void RemoveFlag(uint8 flag)
Definition: Channel.h:135
Definition: Channel.h:116
void SetFlag(uint8 flag)
Definition: Channel.h:134

Member Data Documentation

uint8 Channel::PlayerInfo::_flags = MEMBER_FLAG_NONE
private
ObjectGuid Channel::PlayerInfo::PlayerGuid

The documentation for this struct was generated from the following file: