![]() |
TrinityCore
|
#include <LFGQueue.h>
Public Member Functions | |
| LFGQueue () | |
| LFGQueue (LFGQueue const &)=delete | |
| LFGQueue (LFGQueue &&other) noexcept | |
| LFGQueue & | operator= (LFGQueue const &)=delete |
| LFGQueue & | operator= (LFGQueue &&right) noexcept |
| ~LFGQueue () | |
| std::string | GetDetailedMatchRoles (GuidList const &check) const |
| void | AddToQueue (ObjectGuid guid, bool reAdd=false) |
| void | RemoveFromQueue (ObjectGuid guid) |
| void | AddQueueData (ObjectGuid guid, time_t joinTime, LfgDungeonSet const &dungeons, LfgRolesMap const &rolesMap) |
| void | RemoveQueueData (ObjectGuid guid) |
| void | UpdateWaitTimeAvg (int32 waitTime, uint32 dungeonId) |
| void | UpdateWaitTimeTank (int32 waitTime, uint32 dungeonId) |
| void | UpdateWaitTimeHealer (int32 waitTime, uint32 dungeonId) |
| void | UpdateWaitTimeDps (int32 waitTime, uint32 dungeonId) |
| void | UpdateQueueTimers (uint8 queueId, time_t currTime) |
| time_t | GetJoinTime (ObjectGuid guid) const |
| uint8 | FindGroups () |
| std::string | DumpQueueInfo () const |
| std::string | DumpCompatibleInfo (bool full=false) const |
Private Member Functions | |
| void | AddToNewQueue (ObjectGuid guid) |
| void | AddToCurrentQueue (ObjectGuid guid) |
| void | AddToFrontCurrentQueue (ObjectGuid guid) |
| void | RemoveFromNewQueue (ObjectGuid guid) |
| void | RemoveFromCurrentQueue (ObjectGuid guid) |
| void | SetCompatibles (std::string const &key, LfgCompatibility compatibles) |
| LfgCompatibility | GetCompatibles (std::string const &key) |
| void | RemoveFromCompatibles (ObjectGuid guid) |
| void | SetCompatibilityData (std::string const &key, LfgCompatibilityData const &compatibles) |
| LfgCompatibilityData * | GetCompatibilityData (std::string const &key) |
| void | FindBestCompatibleInQueue (LfgQueueDataContainer::iterator itrQueue) |
| void | UpdateBestCompatibleInQueue (LfgQueueDataContainer::iterator itrQueue, std::string const &key, LfgRolesMap const &roles) |
| LfgCompatibility | FindNewGroups (GuidList &check, GuidList &all) |
| LfgCompatibility | CheckCompatibility (GuidList check) |
Private Attributes | |
| LfgQueueDataContainer | QueueDataStore |
| Queued groups. | |
| LfgCompatibleContainer | CompatibleMapStore |
| Compatible dungeons. | |
| LfgWaitTimesContainer | waitTimesAvgStore |
| Average wait time to find a group queuing as multiple roles. | |
| LfgWaitTimesContainer | waitTimesTankStore |
| Average wait time to find a group queuing as tank. | |
| LfgWaitTimesContainer | waitTimesHealerStore |
| Average wait time to find a group queuing as healer. | |
| LfgWaitTimesContainer | waitTimesDpsStore |
| Average wait time to find a group queuing as dps. | |
| GuidList | currentQueueStore |
| Ordered list. Used to find groups. | |
| GuidList | newToQueueStore |
| New groups to add to queue. | |
Stores all data related to queue
Definition at line 85 of file LFGQueue.h.
|
default |
|
delete |
|
defaultnoexcept |
|
default |
| void lfg::LFGQueue::AddQueueData | ( | ObjectGuid | guid, |
| time_t | joinTime, | ||
| LfgDungeonSet const & | dungeons, | ||
| LfgRolesMap const & | rolesMap | ||
| ) |
Definition at line 193 of file LFGQueue.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
|
private |
| void lfg::LFGQueue::AddToQueue | ( | ObjectGuid | guid, |
| bool | reAdd = false |
||
| ) |
Definition at line 128 of file LFGQueue.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Check compatibilities between groups. If group is Matched proposal will be created
| [in] | check | List of guids to check compatibilities |
Definition at line 363 of file LFGQueue.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::string lfg::LFGQueue::DumpCompatibleInfo | ( | bool | full = false | ) | const |
| std::string lfg::LFGQueue::DumpQueueInfo | ( | ) | const |
|
private |
Definition at line 700 of file LFGQueue.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| uint8 lfg::LFGQueue::FindGroups | ( | ) |
|
private |
Checks que main queue to try to form a Lfg group. Returns first match found (if any)
| [in] | check | List of guids trying to match with other groups |
| [in] | all | List of all other guids in main queue to match against |
Definition at line 325 of file LFGQueue.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 284 of file LFGQueue.cpp.
|
private |
Get the compatibility of a group of guids
| [in] | key | String concatenation of guids (| used as separator) |
Definition at line 275 of file LFGQueue.cpp.
Here is the caller graph for this function:| std::string lfg::LFGQueue::GetDetailedMatchRoles | ( | GuidList const & | check | ) | const |
Definition at line 91 of file LFGQueue.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| time_t lfg::LFGQueue::GetJoinTime | ( | ObjectGuid | guid | ) | const |
|
private |
Remove from cached compatible dungeons any entry that contains the given guid
| [in] | guid | Guid to remove from compatible cache |
Definition at line 239 of file LFGQueue.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
| void lfg::LFGQueue::RemoveFromQueue | ( | ObjectGuid | guid | ) |
Definition at line 143 of file LFGQueue.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void lfg::LFGQueue::RemoveQueueData | ( | ObjectGuid | guid | ) |
Definition at line 199 of file LFGQueue.cpp.
|
private |
|
private |
Stores the compatibility of a list of guids
| [in] | key | String concatenation of guids (| used as separator) |
| [in] | compatibles | type of compatibility |
Definition at line 258 of file LFGQueue.cpp.
Here is the caller graph for this function:
|
private |
| void lfg::LFGQueue::UpdateQueueTimers | ( | uint8 | queueId, |
| time_t | currTime | ||
| ) |
|
private |
Compatible dungeons.
Definition at line 140 of file LFGQueue.h.
|
private |
Ordered list. Used to find groups.
Definition at line 146 of file LFGQueue.h.
|
private |
New groups to add to queue.
Definition at line 147 of file LFGQueue.h.
|
private |
Queued groups.
Definition at line 139 of file LFGQueue.h.
|
private |
Average wait time to find a group queuing as multiple roles.
Definition at line 142 of file LFGQueue.h.
|
private |
Average wait time to find a group queuing as dps.
Definition at line 145 of file LFGQueue.h.
|
private |
Average wait time to find a group queuing as healer.
Definition at line 144 of file LFGQueue.h.
|
private |
Average wait time to find a group queuing as tank.
Definition at line 143 of file LFGQueue.h.