aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/DungeonFinding/LFGQueue.h
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2012-10-29 20:56:37 +0100
committerSpp <spp@jorge.gr>2012-10-29 20:56:37 +0100
commit5ff16046b67f7b03b167c4cdcb39022b3c8dc06c (patch)
treeafd892205b3f72efd35fa230989dbfd83e2cf02b /src/server/game/DungeonFinding/LFGQueue.h
parent9074c11a908a84cad0d154c7aea821e0e5bf006e (diff)
Core/Dungeon Finder: Remove lfg player data when a group is disbanded
Core/Dungeon Finder: Some codestyle changes Note: Real change is in LFGMgr::RemoveGroupData, all other are cosmetic changes
Diffstat (limited to 'src/server/game/DungeonFinding/LFGQueue.h')
-rw-r--r--src/server/game/DungeonFinding/LFGQueue.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/server/game/DungeonFinding/LFGQueue.h b/src/server/game/DungeonFinding/LFGQueue.h
index 7c47519d79e..f937ac0d21a 100644
--- a/src/server/game/DungeonFinding/LFGQueue.h
+++ b/src/server/game/DungeonFinding/LFGQueue.h
@@ -73,9 +73,9 @@ struct LfgWaitTime
uint32 number; ///< Number of people used to get that wait time
};
-typedef std::map<uint32, LfgWaitTime> LfgWaitTimesMap;
-typedef std::map<std::string, LfgCompatibilityData> LfgCompatibleMap;
-typedef std::map<uint64, LfgQueueData> LfgQueueDataMap;
+typedef std::map<uint32, LfgWaitTime> LfgWaitTimesContainer;
+typedef std::map<std::string, LfgCompatibilityData> LfgCompatibleContainer;
+typedef std::map<uint64, LfgQueueData> LfgQueueDataContainer;
/**
Stores all data related to queue
@@ -122,22 +122,22 @@ class LFGQueue
void SetCompatibilityData(std::string const& key, LfgCompatibilityData const& compatibles);
LfgCompatibilityData* GetCompatibilityData(std::string const& key);
- void FindBestCompatibleInQueue(LfgQueueDataMap::iterator itrQueue);
- void UpdateBestCompatibleInQueue(LfgQueueDataMap::iterator itrQueue, std::string const& key, LfgRolesMap const& roles);
+ void FindBestCompatibleInQueue(LfgQueueDataContainer::iterator itrQueue);
+ void UpdateBestCompatibleInQueue(LfgQueueDataContainer::iterator itrQueue, std::string const& key, LfgRolesMap const& roles);
LfgCompatibility FindNewGroups(LfgGuidList& check, LfgGuidList& all);
LfgCompatibility CheckCompatibility(LfgGuidList check);
// Queue
- LfgQueueDataMap m_QueueDataMap; ///< Queued groups
- LfgCompatibleMap m_CompatibleMap; ///< Compatible dungeons
-
- LfgWaitTimesMap m_waitTimesAvg; ///< Average wait time to find a group queuing as multiple roles
- LfgWaitTimesMap m_waitTimesTank; ///< Average wait time to find a group queuing as tank
- LfgWaitTimesMap m_waitTimesHealer; ///< Average wait time to find a group queuing as healer
- LfgWaitTimesMap m_waitTimesDps; ///< Average wait time to find a group queuing as dps
- LfgGuidList m_currentQueue; ///< Ordered list. Used to find groups
- LfgGuidList m_newToQueue; ///< New groups to add to queue
+ 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
+ LfgGuidList currentQueueStore; ///< Ordered list. Used to find groups
+ LfgGuidList newToQueueStore; ///< New groups to add to queue
};
#endif