2010-05-20 23:35:27 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/>
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _LFGMGR_H
|
|
|
|
|
#define _LFGMGR_H
|
|
|
|
|
|
|
|
|
|
#include "Common.h"
|
2010-06-25 00:18:01 +02:00
|
|
|
#include "ace/Singleton.h"
|
2010-05-20 23:35:27 +02:00
|
|
|
#include "Group.h"
|
|
|
|
|
#include "LFG.h"
|
|
|
|
|
|
2010-05-31 20:25:21 +02:00
|
|
|
enum LFGenum
|
|
|
|
|
{
|
|
|
|
|
LFG_TIME_ROLECHECK = 2*MINUTE,
|
2010-08-11 15:55:27 +02:00
|
|
|
LFG_TIME_PROPOSAL = 2*MINUTE,
|
|
|
|
|
LFG_VOTES_NEEDED = 3,
|
2010-05-31 20:25:21 +02:00
|
|
|
LFG_TANKS_NEEDED = 1,
|
|
|
|
|
LFG_HEALERS_NEEDED = 1,
|
|
|
|
|
LFG_DPS_NEEDED = 3,
|
|
|
|
|
LFG_QUEUEUPDATE_INTERVAL = 15000,
|
|
|
|
|
LFG_SPELL_COOLDOWN = 71328,
|
|
|
|
|
LFG_SPELL_DESERTER = 71041,
|
2010-08-11 15:55:27 +02:00
|
|
|
LFG_MAX_KICKS = 3,
|
2010-05-31 20:25:21 +02:00
|
|
|
};
|
2010-05-20 23:35:27 +02:00
|
|
|
|
|
|
|
|
enum LfgType
|
|
|
|
|
{
|
|
|
|
|
LFG_TYPE_DUNGEON = 1,
|
|
|
|
|
LFG_TYPE_RAID = 2,
|
|
|
|
|
LFG_TYPE_QUEST = 3,
|
|
|
|
|
LFG_TYPE_ZONE = 4,
|
|
|
|
|
LFG_TYPE_HEROIC = 5,
|
|
|
|
|
LFG_TYPE_RANDOM = 6,
|
|
|
|
|
};
|
|
|
|
|
|
2010-08-11 15:55:27 +02:00
|
|
|
enum LfgProposalState
|
|
|
|
|
{
|
|
|
|
|
LFG_PROPOSAL_INITIATING = 0,
|
|
|
|
|
LFG_PROPOSAL_FAILED = 1,
|
|
|
|
|
LFG_PROPOSAL_SUCCESS = 2,
|
|
|
|
|
};
|
|
|
|
|
|
2010-05-31 20:25:21 +02:00
|
|
|
enum LfgGroupType
|
|
|
|
|
{
|
2010-08-11 13:25:14 +02:00
|
|
|
LFG_GROUPTYPE_ALL = 0, // Internal use, represents all groups.
|
2010-05-31 20:25:21 +02:00
|
|
|
LFG_GROUPTYPE_CLASSIC = 1,
|
|
|
|
|
LFG_GROUPTYPE_BC_NORMAL = 2,
|
|
|
|
|
LFG_GROUPTYPE_BC_HEROIC = 3,
|
|
|
|
|
LFG_GROUPTYPE_WTLK_NORMAL = 4,
|
|
|
|
|
LFG_GROUPTYPE_WTLK_HEROIC = 5,
|
|
|
|
|
LFG_GROUPTYPE_CLASSIC_RAID = 6,
|
|
|
|
|
LFG_GROUPTYPE_BC_RAID = 7,
|
|
|
|
|
LFG_GROUPTYPE_WTLK_RAID_10 = 8,
|
|
|
|
|
LFG_GROUPTYPE_WTLK_RAID_25 = 9,
|
|
|
|
|
};
|
|
|
|
|
|
2010-05-20 23:35:27 +02:00
|
|
|
enum LfgLockStatusType
|
|
|
|
|
{
|
|
|
|
|
LFG_LOCKSTATUS_OK = 0, // Internal use only
|
|
|
|
|
LFG_LOCKSTATUS_INSUFFICIENT_EXPANSION = 1,
|
|
|
|
|
LFG_LOCKSTATUS_TOO_LOW_LEVEL = 2,
|
|
|
|
|
LFG_LOCKSTATUS_TOO_HIGH_LEVEL = 3,
|
2010-05-21 08:11:28 +02:00
|
|
|
LFG_LOCKSTATUS_TOO_LOW_GEAR_SCORE = 4,
|
2010-05-20 23:35:27 +02:00
|
|
|
LFG_LOCKSTATUS_TOO_HIGH_GEAR_SCORE = 5,
|
|
|
|
|
LFG_LOCKSTATUS_RAID_LOCKED = 6,
|
|
|
|
|
LFG_LOCKSTATUS_ATTUNEMENT_TOO_LOW_LEVEL = 1001,
|
|
|
|
|
LFG_LOCKSTATUS_ATTUNEMENT_TOO_HIGH_LEVEL = 1002,
|
|
|
|
|
LFG_LOCKSTATUS_QUEST_NOT_COMPLETED = 1022,
|
|
|
|
|
LFG_LOCKSTATUS_MISSING_ITEM = 1025,
|
|
|
|
|
LFG_LOCKSTATUS_NOT_IN_SEASON = 1031,
|
|
|
|
|
};
|
|
|
|
|
|
2010-08-11 15:55:27 +02:00
|
|
|
enum LfgTeleportError
|
|
|
|
|
{
|
|
|
|
|
//LFG_TELEPORTERROR_UNK1 = 0, // No reaction
|
|
|
|
|
LFG_TELEPORTERROR_PLAYER_DEAD = 1,
|
|
|
|
|
LFG_TELEPORTERROR_FALLING = 2,
|
|
|
|
|
//LFG_TELEPORTERROR_UNK2 = 3, // You can't do that right now
|
|
|
|
|
LFG_TELEPORTERROR_FATIGUE = 4,
|
|
|
|
|
//LFG_TELEPORTERROR_UNK3 = 5, // No reaction
|
|
|
|
|
LFG_TELEPORTERROR_INVALID_LOCATION = 6,
|
|
|
|
|
//LFG_TELEPORTERROR_UNK4 = 7, // You can't do that right now
|
|
|
|
|
//LFG_TELEPORTERROR_UNK5 = 8, // You can't do that right now
|
|
|
|
|
};
|
|
|
|
|
|
2010-05-31 20:25:21 +02:00
|
|
|
enum LfgJoinResult
|
|
|
|
|
{
|
|
|
|
|
LFG_JOIN_OK = 0, // Joined (no client msg)
|
|
|
|
|
LFG_JOIN_FAILED = 1, // RoleCheck Failed
|
|
|
|
|
LFG_JOIN_GROUPFULL = 2, // Your group is full
|
|
|
|
|
LFG_JOIN_UNK3 = 3, // No client reaction
|
|
|
|
|
LFG_JOIN_INTERNAL_ERROR = 4, // Internal LFG Error
|
|
|
|
|
LFG_JOIN_NOT_MEET_REQS = 5, // You do not meet the requirements for the chosen dungeons
|
|
|
|
|
LFG_JOIN_PARTY_NOT_MEET_REQS = 6, // One or more party members do not meet the requirements for the chosen dungeons
|
|
|
|
|
LFG_JOIN_MIXED_RAID_DUNGEON = 7, // You cannot mix dungeons, raids, and random when picking dungeons
|
|
|
|
|
LFG_JOIN_MULTI_REALM = 8, // The dungeon you chose does not support players from multiple realms
|
|
|
|
|
LFG_JOIN_DISCONNECTED = 9, // One or more party members are pending invites or disconnected
|
|
|
|
|
LFG_JOIN_PARTY_INFO_FAILED = 10, // Could not retrieve information about some party members
|
|
|
|
|
LFG_JOIN_DUNGEON_INVALID = 11, // One or more dungeons was not valid
|
|
|
|
|
LFG_JOIN_DESERTER = 12, // You can not queue for dungeons until your deserter debuff wears off
|
|
|
|
|
LFG_JOIN_PARTY_DESERTER = 13, // One or more party members has a deserter debuff
|
|
|
|
|
LFG_JOIN_RANDOM_COOLDOWN = 14, // You can not queue for random dungeons while on random dungeon cooldown
|
|
|
|
|
LFG_JOIN_PARTY_RANDOM_COOLDOWN = 15, // One or more party members are on random dungeon cooldown
|
|
|
|
|
LFG_JOIN_TOO_MUCH_MEMBERS = 16, // You can not enter dungeons with more that 5 party members
|
|
|
|
|
LFG_JOIN_USING_BG_SYSTEM = 17, // You can not use the dungeon system while in BG or arenas
|
|
|
|
|
LFG_JOIN_FAILED2 = 18, // RoleCheck Failed
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
enum LfgRoleCheckResult
|
|
|
|
|
{
|
|
|
|
|
LFG_ROLECHECK_FINISHED = 1, // Role check finished
|
|
|
|
|
LFG_ROLECHECK_INITIALITING = 2, // Role check begins
|
|
|
|
|
LFG_ROLECHECK_MISSING_ROLE = 3, // Someone didn't selected a role after 2 mins
|
|
|
|
|
LFG_ROLECHECK_WRONG_ROLES = 4, // Can't form a group with that role selection
|
|
|
|
|
LFG_ROLECHECK_ABORTED = 5, // Someone leave the group
|
|
|
|
|
LFG_ROLECHECK_NO_ROLE = 6, // Someone selected no role
|
|
|
|
|
};
|
|
|
|
|
|
2010-08-11 13:25:14 +02:00
|
|
|
// TODO: Remove me, will not be needed when Reward moved to quest system
|
2010-05-20 23:35:27 +02:00
|
|
|
enum LfgRandomDungeonEntries
|
|
|
|
|
{
|
|
|
|
|
LFG_ALL_DUNGEONS = 0,
|
|
|
|
|
LFG_RANDOM_CLASSIC = 258,
|
|
|
|
|
LFG_RANDOM_BC_NORMAL = 259,
|
|
|
|
|
LFG_RANDOM_BC_HEROIC = 260,
|
|
|
|
|
LFG_RANDOM_LK_NORMAL = 261,
|
|
|
|
|
LFG_RANDOM_LK_HEROIC = 262,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
enum LfgRewardEnums
|
|
|
|
|
{
|
|
|
|
|
LFG_REWARD_LEVEL0 = 10,
|
|
|
|
|
LFG_REWARD_LEVEL1 = 0,
|
|
|
|
|
LFG_REWARD_LEVEL2 = 1,
|
|
|
|
|
LFG_REWARD_LEVEL3 = 2,
|
|
|
|
|
LFG_REWARD_LEVEL4 = 3,
|
|
|
|
|
LFG_REWARD_LEVEL5 = 4,
|
|
|
|
|
LFG_REWARD_BC_NORMAL = 5,
|
|
|
|
|
LFG_REWARD_BC_HEROIC = 6,
|
|
|
|
|
LFG_REWARD_LK_NORMAL = 7,
|
|
|
|
|
LFG_REWARD_LK_NORMAL80 = 7,
|
|
|
|
|
LFG_REWARD_LK_HEROIC = 8,
|
|
|
|
|
LFG_REWARD_DATA_SIZE = 10,
|
|
|
|
|
};
|
|
|
|
|
|
2010-08-11 15:55:27 +02:00
|
|
|
enum LfgDungeonStatus
|
|
|
|
|
{
|
|
|
|
|
LFG_STATUS_SAVED = 0,
|
|
|
|
|
LFG_STATUS_NOT_SAVED = 1,
|
|
|
|
|
LFG_STATUS_COMPLETE = 2,
|
|
|
|
|
};
|
|
|
|
|
|
2010-05-20 23:35:27 +02:00
|
|
|
const uint32 RewardDungeonData[LFG_REWARD_DATA_SIZE+1][5] =
|
|
|
|
|
{ // XP, money, item, item display, count
|
|
|
|
|
{310, 3500, 51999, 56915, 1}, // Classic 15-23
|
|
|
|
|
{470, 7000, 52000, 56915, 1}, // Classic 24-34
|
|
|
|
|
{825, 13000, 52001, 56915, 1}, // Classic 35-45
|
|
|
|
|
{12250, 16500, 52002, 56915, 1}, // Classic 46-55
|
|
|
|
|
{14300, 18000, 52003, 56915, 1}, // Classic 56-60
|
|
|
|
|
{1600, 62000, 52004, 56915, 1}, // BC Normal
|
|
|
|
|
{1900, 88000, 52005, 56915, 1}, // BC Heroic
|
|
|
|
|
{33100, 148000, 47241, 62232, 2}, // LK Normal
|
|
|
|
|
{0, 198600, 47241, 62232, 2}, // LK Normal - Level 80
|
|
|
|
|
{0, 264600, 49426, 64062, 2}, // LK Heroic
|
|
|
|
|
{0, 0, 0, 0, 0}, // Classic - No level
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const uint32 RewardDungeonDoneData[LFG_REWARD_DATA_SIZE][5] =
|
|
|
|
|
{ // XP, money, item, item display, count
|
|
|
|
|
{200, 1800, 51999, 56915, 1}, // Classic 15-23
|
|
|
|
|
{310, 3500, 52000, 56915, 1}, // Classic 24-34
|
|
|
|
|
{550, 6500, 52001, 56915, 1}, // Classic 35-45
|
|
|
|
|
{8150, 8500, 52002, 56915, 1}, // Classic 46-55
|
|
|
|
|
{9550, 9000, 52003, 56915, 1}, // Classic 56-60
|
|
|
|
|
{1100, 31000, 52004, 56915, 1}, // BC Normal
|
|
|
|
|
{12650, 44000, 52005, 56915, 1}, // BC Heroic
|
|
|
|
|
{16550, 74000, 0, 0, 0}, // LK Normal
|
|
|
|
|
{0, 99300, 0, 0, 0}, // LK Normal - Level 80
|
|
|
|
|
{0, 132300, 47241, 62232, 2}, // LK Heroic
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Dungeon and reason why player can't join
|
|
|
|
|
struct LfgLockStatus
|
|
|
|
|
{
|
|
|
|
|
uint32 dungeon;
|
|
|
|
|
LfgLockStatusType lockstatus;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Reward info
|
|
|
|
|
struct LfgReward
|
|
|
|
|
{
|
|
|
|
|
uint32 strangers;
|
|
|
|
|
uint32 baseMoney;
|
|
|
|
|
uint32 baseXP;
|
|
|
|
|
uint32 variableMoney;
|
|
|
|
|
uint32 variableXP;
|
|
|
|
|
uint32 itemId;
|
|
|
|
|
uint32 displayId;
|
|
|
|
|
uint32 stackCount;
|
|
|
|
|
};
|
|
|
|
|
|
2010-08-11 13:25:14 +02:00
|
|
|
typedef std::map<uint32, uint8> LfgRolesMap;
|
|
|
|
|
typedef std::map<uint32, int8> LfgAnswerMap;
|
2010-08-11 12:44:49 +02:00
|
|
|
typedef std::list<uint64> LfgGuidList;
|
2010-08-11 13:25:14 +02:00
|
|
|
typedef std::map<uint32, LfgDungeonSet*> LfgDungeonMap;
|
2010-05-31 20:25:21 +02:00
|
|
|
|
|
|
|
|
// Stores player or group queue info
|
|
|
|
|
struct LfgQueueInfo
|
|
|
|
|
{
|
2010-08-11 12:44:49 +02:00
|
|
|
LfgQueueInfo(): tanks(LFG_TANKS_NEEDED), healers(LFG_HEALERS_NEEDED), dps(LFG_DPS_NEEDED) {};
|
2010-05-31 20:25:21 +02:00
|
|
|
time_t joinTime; // Player queue join time (to calculate wait times)
|
|
|
|
|
uint8 tanks; // Tanks needed
|
|
|
|
|
uint8 healers; // Healers needed
|
|
|
|
|
uint8 dps; // Dps needed
|
2010-08-11 12:44:49 +02:00
|
|
|
LfgDungeonSet dungeons; // Selected Player/Group Dungeon/s
|
|
|
|
|
LfgRolesMap roles; // Selected Player Role/s
|
2010-05-31 20:25:21 +02:00
|
|
|
};
|
|
|
|
|
|
2010-08-11 15:55:27 +02:00
|
|
|
struct LfgProposalPlayer
|
|
|
|
|
{
|
|
|
|
|
LfgProposalPlayer(): role(0), accept(-1), groupLowGuid(0) {};
|
|
|
|
|
uint8 role; // Proposed role
|
|
|
|
|
int8 accept; // Accept status (-1 not answer | 0 Not agree | 1 agree)
|
|
|
|
|
uint32 groupLowGuid; // Original group guid (Low guid) 0 if no original group
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
typedef std::map<uint32, LfgProposalPlayer*> LfgProposalPlayerMap;
|
|
|
|
|
|
|
|
|
|
// Stores all Dungeon Proposal after matching candidates
|
|
|
|
|
struct LfgProposal
|
|
|
|
|
{
|
|
|
|
|
LfgProposal(uint32 dungeon): state(LFG_PROPOSAL_INITIATING), groupLowGuid(0), dungeonId(dungeon), leaderLowGuid(0) {}
|
|
|
|
|
|
|
|
|
|
~LfgProposal()
|
|
|
|
|
{
|
|
|
|
|
for (LfgProposalPlayerMap::iterator it = players.begin(); it != players.end(); ++it)
|
|
|
|
|
delete it->second;
|
|
|
|
|
players.clear();
|
|
|
|
|
queues.clear();
|
|
|
|
|
};
|
|
|
|
|
uint32 dungeonId; // Dungeon to join
|
|
|
|
|
LfgProposalState state; // State of the proposal
|
|
|
|
|
uint32 groupLowGuid; // Proposal group (0 if new)
|
|
|
|
|
uint32 leaderLowGuid; // Leader guid.
|
|
|
|
|
time_t cancelTime; // Time when we will cancel this proposal
|
|
|
|
|
LfgGuidList queues; // Queue Ids to remove/readd
|
|
|
|
|
LfgProposalPlayerMap players; // Player current groupId
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
2010-05-31 20:25:21 +02:00
|
|
|
// Stores all rolecheck info of a group that wants to join LFG
|
|
|
|
|
struct LfgRoleCheck
|
|
|
|
|
{
|
|
|
|
|
time_t cancelTime;
|
|
|
|
|
LfgRolesMap roles;
|
|
|
|
|
LfgRoleCheckResult result;
|
|
|
|
|
LfgDungeonSet dungeons;
|
2010-08-11 13:25:14 +02:00
|
|
|
uint32 leader;
|
2010-05-31 20:25:21 +02:00
|
|
|
};
|
|
|
|
|
|
2010-08-11 13:25:14 +02:00
|
|
|
typedef std::set<Player*> PlayerSet;
|
|
|
|
|
typedef std::set<LfgLockStatus*> LfgLockStatusSet;
|
|
|
|
|
typedef std::vector<LfgReward*> LfgRewardList;
|
|
|
|
|
typedef std::map<uint32, LfgReward*> LfgRewardMap;
|
2010-08-11 15:55:27 +02:00
|
|
|
typedef std::vector<LfgProposal*> LfgProposalList;
|
2010-08-11 13:25:14 +02:00
|
|
|
typedef std::map<uint32, LfgLockStatusSet*> LfgLockStatusMap;
|
2010-05-31 20:25:21 +02:00
|
|
|
typedef std::map<uint64, LfgQueueInfo*> LfgQueueInfoMap;
|
|
|
|
|
typedef std::map<uint32, LfgRoleCheck*> LfgRoleCheckMap;
|
2010-08-11 15:55:27 +02:00
|
|
|
typedef std::map<uint32, LfgProposal*> LfgProposalMap;
|
2010-08-11 13:25:14 +02:00
|
|
|
typedef std::list<Player *> LfgPlayerList;
|
2010-05-31 20:25:21 +02:00
|
|
|
|
2010-05-20 23:35:27 +02:00
|
|
|
class LFGMgr
|
|
|
|
|
{
|
2010-06-25 00:18:01 +02:00
|
|
|
friend class ACE_Singleton<LFGMgr, ACE_Null_Mutex>;
|
|
|
|
|
public:
|
2010-08-11 13:25:14 +02:00
|
|
|
LFGMgr();
|
|
|
|
|
~LFGMgr();
|
2010-05-20 23:35:27 +02:00
|
|
|
|
2010-06-25 00:18:01 +02:00
|
|
|
void InitLFG();
|
|
|
|
|
void Join(Player *plr);
|
|
|
|
|
void Leave(Player *plr, Group *grp = NULL);
|
2010-08-11 15:55:27 +02:00
|
|
|
void OfferContinue(Group *grp);
|
|
|
|
|
void TeleportPlayer(Player *plr, bool out);
|
|
|
|
|
void UpdateProposal(uint32 proposalId, uint32 lowGuid, uint8 accept);
|
2010-06-25 00:18:01 +02:00
|
|
|
void UpdateRoleCheck(Group *grp, Player *plr = NULL);
|
|
|
|
|
void Update(uint32 diff);
|
2010-05-20 23:35:27 +02:00
|
|
|
|
2010-08-11 13:25:14 +02:00
|
|
|
void SendLfgPlayerInfo(Player *plr);
|
|
|
|
|
void SendLfgPartyInfo(Player *plr);
|
|
|
|
|
|
2010-06-25 00:18:01 +02:00
|
|
|
private:
|
2010-08-11 15:55:27 +02:00
|
|
|
void SendUpdateProposal(Player *plr, uint32 proposalId, LfgProposal *pProp);
|
|
|
|
|
void SendLfgPlayerReward(Player *plr);
|
|
|
|
|
|
2010-06-25 00:18:01 +02:00
|
|
|
void BuildLfgRoleCheck(WorldPacket &data, LfgRoleCheck *pRoleCheck);
|
|
|
|
|
void BuildAvailableRandomDungeonList(WorldPacket &data, Player *plr);
|
|
|
|
|
void BuildPlayerLockDungeonBlock(WorldPacket &data, LfgLockStatusSet *lockSet);
|
|
|
|
|
void BuildPartyLockDungeonBlock(WorldPacket &data, LfgLockStatusMap *lockMap);
|
2010-05-31 20:25:21 +02:00
|
|
|
|
2010-08-11 12:44:49 +02:00
|
|
|
void AddToQueue(uint64 guid, LfgRolesMap *roles, LfgDungeonSet *dungeons);
|
|
|
|
|
bool RemoveFromQueue(uint64 guid);
|
|
|
|
|
bool isRandomDungeon(uint32 dungeonId);
|
2010-08-11 15:55:27 +02:00
|
|
|
void FindNewGroups(LfgGuidList &check, LfgGuidList all, LfgProposalList *proposals);
|
2010-08-11 13:25:14 +02:00
|
|
|
bool CheckGroupRoles(LfgRolesMap &groles, bool removeLeaderFlag = true);
|
2010-08-11 15:55:27 +02:00
|
|
|
void RemoveProposal(LfgProposalMap::iterator itProposal, LfgUpdateType type);
|
2010-08-11 12:44:49 +02:00
|
|
|
|
2010-08-11 13:25:14 +02:00
|
|
|
LfgLockStatusMap* GetGroupLockStatusDungeons(PlayerSet *pPlayers, LfgDungeonSet *dungeons);
|
2010-06-25 00:18:01 +02:00
|
|
|
LfgLockStatusMap* GetPartyLockStatusDungeons(Player *plr, LfgDungeonSet *dungeons);
|
|
|
|
|
LfgLockStatusSet* GetPlayerLockStatusDungeons(Player *plr, LfgDungeonSet *dungeons);
|
|
|
|
|
LfgDungeonSet* GetDungeonsByRandom(uint32 randomdungeon);
|
2010-08-11 13:25:14 +02:00
|
|
|
LfgDungeonSet* GetRandomDungeons(uint8 level, uint8 expansion);
|
2010-06-25 00:18:01 +02:00
|
|
|
LfgDungeonSet* GetAllDungeons();
|
|
|
|
|
LfgReward* GetRandomDungeonReward(uint32 dungeon, bool done, uint8 level);
|
|
|
|
|
uint8 GetDungeonGroupType(uint32 dungeon);
|
2010-05-20 23:35:27 +02:00
|
|
|
|
2010-08-11 13:25:14 +02:00
|
|
|
LfgRewardList m_RewardList; // TODO: Change it to list of quests
|
|
|
|
|
LfgRewardList m_RewardDoneList; // TODO: Change it to list of quests
|
|
|
|
|
LfgDungeonMap m_CachedDungeonMap; // Stores all dungeons by groupType
|
2010-08-11 12:44:49 +02:00
|
|
|
LfgQueueInfoMap m_QueueInfoMap; // Queued groups
|
|
|
|
|
LfgGuidList m_currentQueue; // Ordered list. Used to find groups
|
|
|
|
|
LfgGuidList m_newToQueue; // New groups to add to queue;
|
2010-08-11 15:55:27 +02:00
|
|
|
LfgProposalMap m_Proposals; // Current Proposals
|
2010-08-11 12:44:49 +02:00
|
|
|
LfgRoleCheckMap m_RoleChecks; // Current Role checks
|
|
|
|
|
uint32 m_QueueTimer; // used to check interval of update
|
2010-08-11 13:25:14 +02:00
|
|
|
uint32 m_lfgProposalId; // used as internal counter for proposals
|
2010-08-11 12:44:49 +02:00
|
|
|
int32 m_avgWaitTime;
|
|
|
|
|
int32 m_waitTimeTanks;
|
|
|
|
|
int32 m_waitTimeHealer;
|
|
|
|
|
int32 m_waitTimeDps;
|
2010-06-25 00:18:01 +02:00
|
|
|
bool m_update;
|
2010-05-20 23:35:27 +02:00
|
|
|
};
|
|
|
|
|
|
2010-06-25 00:18:01 +02:00
|
|
|
#define sLFGMgr (*ACE_Singleton<LFGMgr, ACE_Null_Mutex>::instance())
|
2010-05-20 23:35:27 +02:00
|
|
|
#endif
|