|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#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 | |
| LfgPlayerQueueData & | GetActiveQueueData () |
| 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. | |
Stores all lfg data needed about the player.
Definition at line 43 of file LFGPlayerData.h.
| lfg::LfgPlayerData::LfgPlayerData | ( | ) |
Definition at line 26 of file LFGPlayerData.cpp.
References m_ActiveQueueId, m_Group, and m_Team.
| lfg::LfgPlayerData::~LfgPlayerData | ( | ) |
Definition at line 29 of file LFGPlayerData.cpp.
| void lfg::LfgPlayerData::ClearReturnLocation | ( | ) |
Definition at line 111 of file LFGPlayerData.cpp.
References m_ActiveQueueId, and m_Queues.
Referenced by lfg::LFGMgr::TeleportPlayer().
|
private |
Definition at line 168 of file LFGPlayerData.cpp.
References m_ActiveQueueId, and m_Queues.
Referenced by GetComment(), GetOldState(), GetReturnLocation(), GetRoles(), GetSelectedDungeons(), GetState(), RestoreState(), SetActiveQueueId(), SetComment(), SetReturnLocation(), SetRoles(), SetSelectedDungeons(), and SetState().
|
private |
Definition at line 173 of file LFGPlayerData.cpp.
References m_ActiveQueueId, and m_Queues.
| uint8 lfg::LfgPlayerData::GetActiveQueueId | ( | ) | const |
Definition at line 138 of file LFGPlayerData.cpp.
References m_ActiveQueueId.
Referenced by lfg::LFGMgr::DumpPlayerInfo(), lfg::LFGMgr::GetQueueId(), and lfg::LFGMgr::RestoreActiveQueue().
| std::string const & lfg::LfgPlayerData::GetComment | ( | ) | const |
Definition at line 153 of file LFGPlayerData.cpp.
References lfg::LfgPlayerQueueData::Comment, and GetActiveQueueData().
Referenced by lfg::LFGMgr::DumpPlayerInfo().
| uint64 lfg::LfgPlayerData::GetGroup | ( | ) | const |
Definition at line 133 of file LFGPlayerData.cpp.
References m_Group.
Referenced by lfg::LFGMgr::DumpPlayerInfo().
| LfgState lfg::LfgPlayerData::GetOldState | ( | ) | const |
Definition at line 123 of file LFGPlayerData.cpp.
References GetActiveQueueData(), and lfg::LfgPlayerQueueData::OldState.
Referenced by lfg::LFGMgr::DumpPlayerInfo(), lfg::LFGMgr::RestoreState(), and lfg::LFGMgr::SetState().
| LfgPlayerQueueDataContainer const & lfg::LfgPlayerData::GetQueues | ( | ) | const |
Definition at line 143 of file LFGPlayerData.cpp.
References m_Queues.
Referenced by lfg::LFGMgr::DumpPlayerInfo(), lfg::LFGMgr::GetQueueId(), and lfg::LFGMgr::RestoreActiveQueue().
| LfgReturnLocation const & lfg::LfgPlayerData::GetReturnLocation | ( | ) | const |
Definition at line 163 of file LFGPlayerData.cpp.
References GetActiveQueueData(), and lfg::LfgPlayerQueueData::ReturnLocation.
Referenced by lfg::LFGMgr::TeleportPlayer().
| uint8 lfg::LfgPlayerData::GetRoles | ( | ) | const |
Definition at line 148 of file LFGPlayerData.cpp.
References GetActiveQueueData(), and lfg::LfgPlayerQueueData::Roles.
Referenced by lfg::LFGMgr::DumpPlayerInfo().
| LfgDungeonSet const & lfg::LfgPlayerData::GetSelectedDungeons | ( | ) | const |
Definition at line 158 of file LFGPlayerData.cpp.
References GetActiveQueueData(), and lfg::LfgPlayerQueueData::SelectedDungeons.
Referenced by lfg::LFGMgr::DumpPlayerInfo(), and lfg::LFGMgr::GetLfgStatus().
| LfgState lfg::LfgPlayerData::GetState | ( | ) | const |
Definition at line 118 of file LFGPlayerData.cpp.
References GetActiveQueueData(), and lfg::LfgPlayerQueueData::State.
Referenced by lfg::LFGMgr::DumpPlayerInfo(), lfg::LFGMgr::GetLfgStatus(), lfg::LFGMgr::RestoreState(), and lfg::LFGMgr::SetState().
| uint8 lfg::LfgPlayerData::GetTeam | ( | ) | const |
Definition at line 128 of file LFGPlayerData.cpp.
References m_Team.
| void lfg::LfgPlayerData::RestoreState | ( | ) |
Definition at line 56 of file LFGPlayerData.cpp.
References GetActiveQueueData(), lfg::LFG_STATE_NONE, lfg::LfgPlayerQueueData::OldState, lfg::LfgPlayerQueueData::Roles, lfg::LfgPlayerQueueData::SelectedDungeons, and lfg::LfgPlayerQueueData::State.
Referenced by lfg::LFGMgr::RestoreState().
| void lfg::LfgPlayerData::SetActiveQueueId | ( | uint8 | queueId | ) |
Definition at line 79 of file LFGPlayerData.cpp.
References GetActiveQueueData(), and m_ActiveQueueId.
Referenced by lfg::LFGMgr::RestoreActiveQueue().
| void lfg::LfgPlayerData::SetComment | ( | std::string const & | comment | ) |
Definition at line 90 of file LFGPlayerData.cpp.
References lfg::LfgPlayerQueueData::Comment, and GetActiveQueueData().
| void lfg::LfgPlayerData::SetGroup | ( | uint64 | group | ) |
Definition at line 74 of file LFGPlayerData.cpp.
References m_Group.
| void lfg::LfgPlayerData::SetReturnLocation | ( | uint32 | mapId, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | o ) |
Definition at line 100 of file LFGPlayerData.cpp.
References GetActiveQueueData(), lfg::LfgReturnLocation::IsSet, lfg::LfgReturnLocation::MapId, lfg::LfgReturnLocation::O, lfg::LfgPlayerQueueData::ReturnLocation, lfg::LfgReturnLocation::X, lfg::LfgReturnLocation::Y, and lfg::LfgReturnLocation::Z.
| void lfg::LfgPlayerData::SetRoles | ( | uint8 | roles | ) |
Definition at line 85 of file LFGPlayerData.cpp.
References GetActiveQueueData(), and lfg::LfgPlayerQueueData::Roles.
| void lfg::LfgPlayerData::SetSelectedDungeons | ( | const LfgDungeonSet & | dungeons | ) |
Definition at line 95 of file LFGPlayerData.cpp.
References GetActiveQueueData(), and lfg::LfgPlayerQueueData::SelectedDungeons.
| void lfg::LfgPlayerData::SetState | ( | LfgState | state | ) |
Definition at line 31 of file LFGPlayerData.cpp.
References lfg::LfgPlayerQueueData::Comment, GetActiveQueueData(), lfg::LFG_STATE_DUNGEON, lfg::LFG_STATE_FINISHED_DUNGEON, lfg::LFG_STATE_NONE, m_ActiveQueueId, m_Queues, lfg::LfgPlayerQueueData::OldState, lfg::LfgPlayerQueueData::Roles, lfg::LfgPlayerQueueData::SelectedDungeons, and lfg::LfgPlayerQueueData::State.
Referenced by lfg::LFGMgr::SetState().
| void lfg::LfgPlayerData::SetTeam | ( | uint8 | team | ) |
Definition at line 69 of file LFGPlayerData.cpp.
References m_Team.
|
private |
Active queue data owner.
Definition at line 86 of file LFGPlayerData.h.
Referenced by ClearReturnLocation(), GetActiveQueueData(), GetActiveQueueData(), GetActiveQueueId(), LfgPlayerData(), SetActiveQueueId(), and SetState().
|
private |
Original group of player when joined LFG.
Definition at line 83 of file LFGPlayerData.h.
Referenced by GetGroup(), LfgPlayerData(), and SetGroup().
|
private |
Queue-scoped player data.
Definition at line 87 of file LFGPlayerData.h.
Referenced by ClearReturnLocation(), GetActiveQueueData(), GetActiveQueueData(), GetQueues(), and SetState().
|
private |
Player team - determines the queue to join.
Definition at line 82 of file LFGPlayerData.h.
Referenced by GetTeam(), LfgPlayerData(), and SetTeam().