Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
lfg::LfgPlayerData Class Reference

#include <LFGPlayerData.h>

Public Member Functions

void ClearReturnLocation ()
uint8 GetActiveQueueId () const
std::string const & GetComment () const
uint64 GetGroup () const
LfgState GetOldState () const
LfgPlayerQueueDataContainer const & GetQueues () const
LfgReturnLocation const & GetReturnLocation () const
uint8 GetRoles () const
LfgDungeonSet const & GetSelectedDungeons () const
LfgState GetState () const
uint8 GetTeam () const
 LfgPlayerData ()
void RestoreState ()
void SetActiveQueueId (uint8 queueId)
void SetComment (std::string const &comment)
void SetGroup (uint64 group)
void SetReturnLocation (uint32 mapId, float x, float y, float z, float o)
void SetRoles (uint8 roles)
void SetSelectedDungeons (const LfgDungeonSet &dungeons)
void SetState (LfgState state)
void SetTeam (uint8 team)
 ~LfgPlayerData ()

Private Member Functions

LfgPlayerQueueDataGetActiveQueueData ()
LfgPlayerQueueData const & GetActiveQueueData () const

Private Attributes

uint8 m_ActiveQueueId
 Active queue data owner.
uint64 m_Group
 Original group of player when joined LFG.
LfgPlayerQueueDataContainer m_Queues
 Queue-scoped player data.
uint8 m_Team
 Player team - determines the queue to join.

Detailed Description

Stores all lfg data needed about the player.

Definition at line 43 of file LFGPlayerData.h.

Constructor & Destructor Documentation

◆ LfgPlayerData()

lfg::LfgPlayerData::LfgPlayerData ( )

Definition at line 26 of file LFGPlayerData.cpp.

References m_ActiveQueueId, m_Group, and m_Team.

◆ ~LfgPlayerData()

lfg::LfgPlayerData::~LfgPlayerData ( )

Definition at line 29 of file LFGPlayerData.cpp.

Member Function Documentation

◆ ClearReturnLocation()

void lfg::LfgPlayerData::ClearReturnLocation ( )

Definition at line 111 of file LFGPlayerData.cpp.

References m_ActiveQueueId, and m_Queues.

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

◆ GetActiveQueueData() [1/2]

◆ GetActiveQueueData() [2/2]

LfgPlayerQueueData const & lfg::LfgPlayerData::GetActiveQueueData ( ) const
private

Definition at line 173 of file LFGPlayerData.cpp.

References m_ActiveQueueId, and m_Queues.

◆ GetActiveQueueId()

uint8 lfg::LfgPlayerData::GetActiveQueueId ( ) const

◆ GetComment()

std::string const & lfg::LfgPlayerData::GetComment ( ) const

◆ GetGroup()

uint64 lfg::LfgPlayerData::GetGroup ( ) const

Definition at line 133 of file LFGPlayerData.cpp.

References m_Group.

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

◆ GetOldState()

LfgState lfg::LfgPlayerData::GetOldState ( ) const

◆ GetQueues()

LfgPlayerQueueDataContainer const & lfg::LfgPlayerData::GetQueues ( ) const

◆ GetReturnLocation()

LfgReturnLocation const & lfg::LfgPlayerData::GetReturnLocation ( ) const

◆ GetRoles()

uint8 lfg::LfgPlayerData::GetRoles ( ) const

Definition at line 148 of file LFGPlayerData.cpp.

References GetActiveQueueData(), and lfg::LfgPlayerQueueData::Roles.

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

◆ GetSelectedDungeons()

LfgDungeonSet const & lfg::LfgPlayerData::GetSelectedDungeons ( ) const

◆ GetState()

◆ GetTeam()

uint8 lfg::LfgPlayerData::GetTeam ( ) const

Definition at line 128 of file LFGPlayerData.cpp.

References m_Team.

◆ RestoreState()

◆ SetActiveQueueId()

void lfg::LfgPlayerData::SetActiveQueueId ( uint8 queueId)

Definition at line 79 of file LFGPlayerData.cpp.

References GetActiveQueueData(), and m_ActiveQueueId.

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

◆ SetComment()

void lfg::LfgPlayerData::SetComment ( std::string const & comment)

Definition at line 90 of file LFGPlayerData.cpp.

References lfg::LfgPlayerQueueData::Comment, and GetActiveQueueData().

◆ SetGroup()

void lfg::LfgPlayerData::SetGroup ( uint64 group)

Definition at line 74 of file LFGPlayerData.cpp.

References m_Group.

◆ SetReturnLocation()

◆ SetRoles()

void lfg::LfgPlayerData::SetRoles ( uint8 roles)

Definition at line 85 of file LFGPlayerData.cpp.

References GetActiveQueueData(), and lfg::LfgPlayerQueueData::Roles.

◆ SetSelectedDungeons()

void lfg::LfgPlayerData::SetSelectedDungeons ( const LfgDungeonSet & dungeons)

◆ SetState()

◆ SetTeam()

void lfg::LfgPlayerData::SetTeam ( uint8 team)

Definition at line 69 of file LFGPlayerData.cpp.

References m_Team.

Member Data Documentation

◆ m_ActiveQueueId

uint8 lfg::LfgPlayerData::m_ActiveQueueId
private

◆ m_Group

uint64 lfg::LfgPlayerData::m_Group
private

Original group of player when joined LFG.

Definition at line 83 of file LFGPlayerData.h.

Referenced by GetGroup(), LfgPlayerData(), and SetGroup().

◆ m_Queues

LfgPlayerQueueDataContainer lfg::LfgPlayerData::m_Queues
private

Queue-scoped player data.

Definition at line 87 of file LFGPlayerData.h.

Referenced by ClearReturnLocation(), GetActiveQueueData(), GetActiveQueueData(), GetQueues(), and SetState().

◆ m_Team

uint8 lfg::LfgPlayerData::m_Team
private

Player team - determines the queue to join.

Definition at line 82 of file LFGPlayerData.h.

Referenced by GetTeam(), LfgPlayerData(), and SetTeam().


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