TrinityCore
Loading...
Searching...
No Matches
lfg::LfgGroupData Class Reference

#include <LFGGroupData.h>

Public Member Functions

 LfgGroupData ()
 
 LfgGroupData (LfgGroupData const &)=delete
 
 LfgGroupData (LfgGroupData &&other) noexcept
 
LfgGroupData & operator= (LfgGroupData const &)=delete
 
LfgGroupData & operator= (LfgGroupData &&right) noexcept
 
 ~LfgGroupData ()
 
bool IsLfgGroup ()
 
void SetState (LfgState state)
 
void RestoreState ()
 
void AddPlayer (ObjectGuid guid)
 
uint8 RemovePlayer (ObjectGuid guid)
 
void RemoveAllPlayers ()
 
void SetLeader (ObjectGuid guid)
 
void SetDungeon (uint32 dungeon)
 
void DecreaseKicksLeft ()
 
LfgState GetState () const
 
LfgState GetOldState () const
 
GuidSet const & GetPlayers () const
 
uint8 GetPlayerCount () const
 
ObjectGuid GetLeader () const
 
uint32 GetDungeon (bool asId=true) const
 
uint8 GetKicksLeft () const
 
void SetVoteKick (bool active)
 
bool IsVoteKickActive () const
 

Private Attributes

LfgState m_State
 State if group in LFG.
 
LfgState m_OldState
 Old State.
 
ObjectGuid m_Leader
 Leader GUID.
 
GuidSet m_Players
 Players in group.
 
uint32 m_Dungeon
 Dungeon entry.
 
uint8 m_KicksLeft
 Number of kicks left.
 
bool m_VoteKickActive
 

Detailed Description

Stores all lfg data needed about a group.

Definition at line 34 of file LFGGroupData.h.

Constructor & Destructor Documentation

◆ LfgGroupData() [1/3]

lfg::LfgGroupData::LfgGroupData ( )

Definition at line 24 of file LFGGroupData.cpp.

◆ LfgGroupData() [2/3]

lfg::LfgGroupData::LfgGroupData ( LfgGroupData const &  )
delete

◆ LfgGroupData() [3/3]

lfg::LfgGroupData::LfgGroupData ( LfgGroupData &&  other)
defaultnoexcept

◆ ~LfgGroupData()

lfg::LfgGroupData::~LfgGroupData ( )
default

Member Function Documentation

◆ AddPlayer()

void lfg::LfgGroupData::AddPlayer ( ObjectGuid  guid)

Definition at line 59 of file LFGGroupData.cpp.

References m_Players.

◆ DecreaseKicksLeft()

void lfg::LfgGroupData::DecreaseKicksLeft ( )

Definition at line 87 of file LFGGroupData.cpp.

References m_KicksLeft.

◆ GetDungeon()

uint32 lfg::LfgGroupData::GetDungeon ( bool  asId = true) const

Definition at line 118 of file LFGGroupData.cpp.

References m_Dungeon.

◆ GetKicksLeft()

uint8 lfg::LfgGroupData::GetKicksLeft ( ) const

Definition at line 126 of file LFGGroupData.cpp.

References m_KicksLeft.

◆ GetLeader()

ObjectGuid lfg::LfgGroupData::GetLeader ( ) const

Definition at line 113 of file LFGGroupData.cpp.

References m_Leader.

◆ GetOldState()

LfgState lfg::LfgGroupData::GetOldState ( ) const

Definition at line 98 of file LFGGroupData.cpp.

References m_OldState.

Referenced by lfg::LFGMgr::RestoreState(), and lfg::LFGMgr::SetState().

◆ GetPlayerCount()

uint8 lfg::LfgGroupData::GetPlayerCount ( ) const

Definition at line 108 of file LFGGroupData.cpp.

References m_Players.

◆ GetPlayers()

GuidSet const & lfg::LfgGroupData::GetPlayers ( ) const

Definition at line 103 of file LFGGroupData.cpp.

References m_Players.

◆ GetState()

LfgState lfg::LfgGroupData::GetState ( ) const

Definition at line 93 of file LFGGroupData.cpp.

References m_State.

Referenced by lfg::LFGMgr::RestoreState(), and lfg::LFGMgr::SetState().

◆ IsLfgGroup()

bool lfg::LfgGroupData::IsLfgGroup ( )

Definition at line 32 of file LFGGroupData.cpp.

References lfg::LFG_STATE_NONE, and m_OldState.

◆ IsVoteKickActive()

bool lfg::LfgGroupData::IsVoteKickActive ( ) const

Definition at line 136 of file LFGGroupData.cpp.

References m_VoteKickActive.

Referenced by lfg::LFGMgr::SetVoteKick().

◆ operator=() [1/2]

LfgGroupData & lfg::LfgGroupData::operator= ( LfgGroupData &&  right)
defaultnoexcept

◆ operator=() [2/2]

LfgGroupData & lfg::LfgGroupData::operator= ( LfgGroupData const &  )
delete

◆ RemoveAllPlayers()

void lfg::LfgGroupData::RemoveAllPlayers ( )

Definition at line 72 of file LFGGroupData.cpp.

References m_Players.

◆ RemovePlayer()

uint8 lfg::LfgGroupData::RemovePlayer ( ObjectGuid  guid)

Definition at line 64 of file LFGGroupData.cpp.

References m_Players.

◆ RestoreState()

void lfg::LfgGroupData::RestoreState ( )

Definition at line 54 of file LFGGroupData.cpp.

References m_OldState, and m_State.

Referenced by lfg::LFGMgr::RestoreState().

◆ SetDungeon()

void lfg::LfgGroupData::SetDungeon ( uint32  dungeon)

Definition at line 82 of file LFGGroupData.cpp.

References m_Dungeon.

◆ SetLeader()

void lfg::LfgGroupData::SetLeader ( ObjectGuid  guid)

Definition at line 77 of file LFGGroupData.cpp.

References m_Leader.

◆ SetState()

void lfg::LfgGroupData::SetState ( LfgState  state)

◆ SetVoteKick()

void lfg::LfgGroupData::SetVoteKick ( bool  active)

Definition at line 131 of file LFGGroupData.cpp.

References m_VoteKickActive.

Referenced by lfg::LFGMgr::SetVoteKick().

Member Data Documentation

◆ m_Dungeon

uint32 lfg::LfgGroupData::m_Dungeon
private

Dungeon entry.

Definition at line 83 of file LFGGroupData.h.

Referenced by GetDungeon(), SetDungeon(), and SetState().

◆ m_KicksLeft

uint8 lfg::LfgGroupData::m_KicksLeft
private

Number of kicks left.

Definition at line 85 of file LFGGroupData.h.

Referenced by DecreaseKicksLeft(), GetKicksLeft(), and SetState().

◆ m_Leader

ObjectGuid lfg::LfgGroupData::m_Leader
private

Leader GUID.

Definition at line 80 of file LFGGroupData.h.

Referenced by GetLeader(), and SetLeader().

◆ m_OldState

LfgState lfg::LfgGroupData::m_OldState
private

Old State.

Definition at line 79 of file LFGGroupData.h.

Referenced by GetOldState(), IsLfgGroup(), RestoreState(), and SetState().

◆ m_Players

GuidSet lfg::LfgGroupData::m_Players
private

Players in group.

Definition at line 81 of file LFGGroupData.h.

Referenced by AddPlayer(), GetPlayerCount(), GetPlayers(), RemoveAllPlayers(), and RemovePlayer().

◆ m_State

LfgState lfg::LfgGroupData::m_State
private

State if group in LFG.

Definition at line 78 of file LFGGroupData.h.

Referenced by GetState(), RestoreState(), and SetState().

◆ m_VoteKickActive

bool lfg::LfgGroupData::m_VoteKickActive
private

Definition at line 86 of file LFGGroupData.h.

Referenced by IsVoteKickActive(), and SetVoteKick().


The documentation for this class was generated from the following files: