AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Channel::PlayerInfo Struct Reference

Public Member Functions

bool HasFlag (uint8 flag) const
 
void SetFlag (uint8 flag)
 
bool IsOwner () const
 
void SetOwner (bool state)
 
bool IsOwnerGM () const
 
void SetOwnerGM (bool on)
 
bool IsModerator () const
 
void SetModerator (bool state)
 
bool IsMuted () const
 
void SetMuted (bool state)
 

Public Attributes

ObjectGuid player
 
uint8 flags
 
PlayerplrPtr
 

Private Attributes

bool _gmStatus = false
 

Detailed Description

Member Function Documentation

◆ HasFlag()

bool Channel::PlayerInfo::HasFlag ( uint8  flag) const
inline
151{ return flags & flag; }
uint8 flags
Definition: Channel.h:148

References flags.

Referenced by SetFlag().

◆ IsModerator()

bool Channel::PlayerInfo::IsModerator ( ) const
inline
161{ return flags & MEMBER_FLAG_MODERATOR; }
@ MEMBER_FLAG_MODERATOR
Definition: Channel.h:109

References flags, and MEMBER_FLAG_MODERATOR.

Referenced by Channel::Say(), and Channel::SetModerator().

◆ IsMuted()

bool Channel::PlayerInfo::IsMuted ( ) const
inline
167{ return flags & MEMBER_FLAG_MUTED; }
@ MEMBER_FLAG_MUTED
Definition: Channel.h:111

References flags, and MEMBER_FLAG_MUTED.

Referenced by Channel::Say(), and Channel::SetMute().

◆ IsOwner()

bool Channel::PlayerInfo::IsOwner ( ) const
inline
153{ return flags & MEMBER_FLAG_OWNER; }
@ MEMBER_FLAG_OWNER
Definition: Channel.h:108

References flags, and MEMBER_FLAG_OWNER.

◆ IsOwnerGM()

bool Channel::PlayerInfo::IsOwnerGM ( ) const
inline
159{ return _gmStatus; }
bool _gmStatus
Definition: Channel.h:174

References _gmStatus.

◆ SetFlag()

void Channel::PlayerInfo::SetFlag ( uint8  flag)
inline
152{ if (!HasFlag(flag)) flags |= flag; }
bool HasFlag(uint8 flag) const
Definition: Channel.h:151

References flags, and HasFlag().

◆ SetModerator()

void Channel::PlayerInfo::SetModerator ( bool  state)
inline
163 {
164 if (state) flags |= MEMBER_FLAG_MODERATOR;
165 else flags &= ~MEMBER_FLAG_MODERATOR;
166 }

References flags, and MEMBER_FLAG_MODERATOR.

Referenced by Channel::SetModerator(), and Channel::SetOwner().

◆ SetMuted()

void Channel::PlayerInfo::SetMuted ( bool  state)
inline
169 {
170 if (state) flags |= MEMBER_FLAG_MUTED;
171 else flags &= ~MEMBER_FLAG_MUTED;
172 }

References flags, and MEMBER_FLAG_MUTED.

Referenced by Channel::SetMute().

◆ SetOwner()

void Channel::PlayerInfo::SetOwner ( bool  state)
inline
155 {
156 if (state) flags |= MEMBER_FLAG_OWNER;
157 else flags &= ~MEMBER_FLAG_OWNER;
158 }

References flags, and MEMBER_FLAG_OWNER.

Referenced by Channel::SetOwner().

◆ SetOwnerGM()

void Channel::PlayerInfo::SetOwnerGM ( bool  on)
inline
160{ _gmStatus = on; }

References _gmStatus.

Member Data Documentation

◆ _gmStatus

bool Channel::PlayerInfo::_gmStatus = false
private

Referenced by IsOwnerGM(), and SetOwnerGM().

◆ flags

◆ player

ObjectGuid Channel::PlayerInfo::player

Referenced by Channel::JoinChannel().

◆ plrPtr

Player* Channel::PlayerInfo::plrPtr