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
155{ return flags & flag; }
uint8 flags
Definition: Channel.h:152

References flags.

Referenced by SetFlag().

◆ IsModerator()

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

References flags, and MEMBER_FLAG_MODERATOR.

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

◆ IsMuted()

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

References flags, and MEMBER_FLAG_MUTED.

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

◆ IsOwner()

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

References flags, and MEMBER_FLAG_OWNER.

◆ IsOwnerGM()

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

References _gmStatus.

◆ SetFlag()

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

References flags, and HasFlag().

◆ SetModerator()

void Channel::PlayerInfo::SetModerator ( bool  state)
inline
167 {
168 if (state) flags |= MEMBER_FLAG_MODERATOR;
169 else flags &= ~MEMBER_FLAG_MODERATOR;
170 }

References flags, and MEMBER_FLAG_MODERATOR.

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

◆ SetMuted()

void Channel::PlayerInfo::SetMuted ( bool  state)
inline
173 {
174 if (state) flags |= MEMBER_FLAG_MUTED;
175 else flags &= ~MEMBER_FLAG_MUTED;
176 }

References flags, and MEMBER_FLAG_MUTED.

Referenced by Channel::SetMute().

◆ SetOwner()

void Channel::PlayerInfo::SetOwner ( bool  state)
inline
159 {
160 if (state) flags |= MEMBER_FLAG_OWNER;
161 else flags &= ~MEMBER_FLAG_OWNER;
162 }

References flags, and MEMBER_FLAG_OWNER.

Referenced by Channel::SetOwner().

◆ SetOwnerGM()

void Channel::PlayerInfo::SetOwnerGM ( bool  on)
inline
164{ _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