129 struct LFGDungeonData;
134 struct LfgProposalPlayer;
305 static LFGMgr* instance();
316 void LoadLFGDungeons(
bool reload =
false);
320 bool selectedRandomLfgDungeon(
ObjectGuid guid);
346 std::string
const& GetComment(
ObjectGuid gguid);
350 void SetOptions(
uint32 options);
352 bool isOptionEnabled(
uint32 option);
356 std::string DumpQueueInfo(
bool full =
false);
382 bool IsSeasonActive(
uint32 dungeonId);
388 void TeleportPlayer(
Player* player,
bool out,
bool fromOpcode =
false);
392 void UpdateBoot(
ObjectGuid guid,
bool accept);
400 void SetComment(
ObjectGuid guid, std::string
const& comment);
404 void LeaveLfg(
ObjectGuid guid,
bool disconnected =
false);
430 void RestoreState(
ObjectGuid guid,
char const* debugMsg);
431 void ClearState(
ObjectGuid guid,
char const* debugMsg);
436 void SetVoteKick(
ObjectGuid gguid,
bool active);
443 void RemoveProposal(LfgProposalContainer::iterator itProposal,
LfgUpdateType type);
481 #define sLFGMgr lfg::LFGMgr::instance()
Quest const * quest
Definition: LFGMgr.h:204
LfgRoleCheckState state
Definition: LFGMgr.h:156
uint8 maxlevel
Definition: LFGMgr.h:288
Definition: DBCEnums.h:404
std::map< ObjectGuid, LfgRoleCheck > LfgRoleCheckContainer
Definition: LFGMgr.h:142
uint8 minlevel
Definition: LFGMgr.h:287
Difficulty
Definition: DBCEnums.h:402
uint32 maxLevel
Definition: LFGMgr.h:213
static ObjectGuid const Empty
Definition: ObjectGuid.h:196
uint32 m_options
Stores config options.
Definition: LFGMgr.h:464
LfgPlayerBootContainer BootsStore
Current player kicks.
Definition: LFGMgr.h:474
uint32 m_lfgProposalId
used as internal counter for proposals
Definition: LFGMgr.h:463
LfgJoinResult result
Definition: LFGMgr.h:155
LfgProposalPlayerContainer players
Players data.
Definition: LFGMgr.h:244
uint8 dps
Definition: LFGMgr.h:194
Definition: QuestDef.h:279
LfgJoinResult
Queue join results.
Definition: LFGMgr.h:93
Stores information of a current vote to kick someone from a group.
Definition: LFGMgr.h:259
GuidList queues
Queue Ids to remove/readd.
Definition: LFGMgr.h:242
LfgOptions
Definition: LFGMgr.h:35
bool inProgress
Vote in progress.
Definition: LFGMgr.h:262
LFGMgrEnum
Definition: LFGMgr.h:41
LfgReward(uint32 _maxLevel=0, uint32 _firstQuest=0, uint32 _otherQuest=0)
Definition: LFGMgr.h:210
Class used to access individual fields of database query result.
Definition: Field.h:56
float o
Definition: LFGMgr.h:291
uint32 queuedTime
Definition: LFGMgr.h:191
LfgTeleportError
Teleport errors.
Definition: LFGMgr.h:80
LfgQueueContainer QueuesStore
Queues.
Definition: LFGMgr.h:466
LfgRoleCheckContainer RoleChecksStore
Current Role checks.
Definition: LFGMgr.h:472
LfgAnswer accept
Accept status (-1 not answer | 0 Not agree | 1 agree)
Definition: LFGMgr.h:223
LfgAnswerContainer votes
Player votes (-1 not answer | 0 Not agree | 1 agree)
Definition: LFGMgr.h:263
float x
Definition: LFGMgr.h:291
int32 waitTime
Definition: LFGMgr.h:186
LfgPlayerRewardData(uint32 random, uint32 current, bool _done, Quest const *_quest)
Definition: LFGMgr.h:199
LFGDungeonEntry const * GetLFGDungeon(uint32 mapId, Difficulty difficulty)
Returns LFGDungeonEntry for a specific map and difficulty. Will return first found entry if multiple ...
Definition: DBCStores.cpp:815
#define false
Definition: CascPort.h:18
LfgProposalContainer ProposalsStore
Current Proposals.
Definition: LFGMgr.h:473
LfgState
Definition: LFG.h:65
time_t cancelTime
Time when the rolecheck will fail.
Definition: LFGMgr.h:250
GuidList showorder
Show order in update window.
Definition: LFGMgr.h:243
LFGDungeonData()
Definition: LFGMgr.h:270
LFGDungeonContainer LfgDungeonStore
Definition: LFGMgr.h:470
int32 waitTimeAvg
Definition: LFGMgr.h:187
LfgProposalState
Proposal states.
Definition: LFGMgr.h:72
uint8 role
Proposed role.
Definition: LFGMgr.h:222
ObjectGuid group
Proposal group (0 if new)
Definition: LFGMgr.h:237
LfgUpdateData(LfgUpdateType _type, LfgState _state, LfgDungeonSet const &_dungeons, std::string const &_comment="")
Definition: LFGMgr.h:166
Stores all rolecheck info of a group that wants to join.
Definition: LFGMgr.h:248
LfgFlags
Definition: LFGMgr.h:53
std::string comment
Definition: LFGMgr.h:172
LfgType
Determines the type of instance.
Definition: LFGMgr.h:62
float y
Definition: LFGMgr.h:291
std::list< ObjectGuid > GuidList
Definition: ObjectGuid.h:333
LfgRoleCheckState state
State of the rolecheck.
Definition: LFGMgr.h:252
bool done
Definition: LFGMgr.h:203
TC_GAME_API HashMapHolder< Player >::MapType const & GetPlayers()
Definition: ObjectAccessor.cpp:258
std::map< ObjectGuid, LfgPlayerBoot > LfgPlayerBootContainer
Definition: LFGMgr.h:145
LfgUpdateType updateType
Definition: LFGMgr.h:169
#define true
Definition: CascPort.h:17
Definition: DBCStructure.h:742
std::map< ObjectGuid, LfgAnswer > LfgAnswerContainer
Definition: LFGMgr.h:141
Stores group data related to proposal to join.
Definition: LFGMgr.h:228
LfgDungeonSet dungeons
Dungeons group is applying for (expanded random dungeons)
Definition: LFGMgr.h:253
time_t cancelTime
Time left to vote.
Definition: LFGMgr.h:261
LfgAnswer
Answer state (Also used to check compatibilites)
Definition: LFG.h:95
bool isNew
Determines if it's new group or not.
Definition: LFGMgr.h:241
LfgUpdateData(LfgUpdateType _type, LfgDungeonSet const &_dungeons, std::string const &_comment)
Definition: LFGMgr.h:164
float z
Definition: LFGMgr.h:291
LfgDungeonSet dungeons
Definition: LFGMgr.h:171
uint32 rdungeonEntry
Definition: LFGMgr.h:201
std::map< uint32, LfgProposal > LfgProposalContainer
Definition: LFGMgr.h:143
std::map< uint32, LfgLockInfoData > LfgLockMap
Definition: LFG.h:113
uint32 id
Proposal Id.
Definition: LFGMgr.h:234
bool seasonal
Definition: LFGMgr.h:290
std::set< uint32 > LfgDungeonSet
Definition: LFG.h:112
std::map< ObjectGuid, uint8 > LfgRolesMap
Definition: LFG.h:115
uint32 sdungeonEntry
Definition: LFGMgr.h:202
int32_t int32
Definition: Define.h:146
std::map< uint8, LfgDungeonSet > LfgCachedDungeonContainer
Definition: LFGMgr.h:140
uint32_t uint32
Definition: Define.h:150
ObjectGuid group
Original group guid. 0 if no original group.
Definition: LFGMgr.h:224
std::map< ObjectGuid, LfgLockMap > LfgLockPartyMap
Definition: LFG.h:114
uint32 m_QueueTimer
used to check interval of update
Definition: LFGMgr.h:462
uint16_t uint16
Definition: Define.h:151
LfgQueueStatusData(uint8 _queueId=0, uint32 _dungeonId=0, time_t _joinTime=0, int32 _waitTime=-1, int32 _waitTimeAvg=-1, int32 _waitTimeTank=-1, int32 _waitTimeHealer=-1, int32 _waitTimeDps=-1, uint32 _queuedTime=0, uint8 _tanks=0, uint8 _healers=0, uint8 _dps=0)
Definition: LFGMgr.h:178
uint8 queueId
Definition: LFGMgr.h:183
LfgJoinResultData(LfgJoinResult _result=LFG_JOIN_OK, LfgRoleCheckState _state=LFG_ROLECHECK_DEFAULT)
Definition: LFGMgr.h:153
LfgUpdateType
Definition: LFG.h:43
std::multimap< uint32, LfgReward const * > LfgRewardContainer
Definition: LFGMgr.h:138
uint32 dungeonId
Definition: LFGMgr.h:184
uint8 healers
Definition: LFGMgr.h:193
time_t joinTime
Definition: LFGMgr.h:185
uint8 group
Definition: LFGMgr.h:286
int32 waitTimeTank
Definition: LFGMgr.h:188
uint16 requiredItemLevel
Definition: LFGMgr.h:292
LfgPlayerDataContainer PlayersStore
Player data.
Definition: LFGMgr.h:475
Definition: LFGQueue.h:86
LfgUpdateData(LfgUpdateType _type=LFG_UPDATETYPE_DEFAULT)
Definition: LFGMgr.h:163
ObjectGuid leader
Leader guid.
Definition: LFGMgr.h:238
Reward info.
Definition: LFGMgr.h:208
int32 waitTimeHealer
Definition: LFGMgr.h:189
LFGDungeonData(LFGDungeonEntry const *dbc)
Definition: LFGMgr.h:274
ObjectGuid victim
Player guid to be kicked (can't vote)
Definition: LFGMgr.h:264
uint32 map
Definition: LFGMgr.h:283
uint8 tanks
Definition: LFGMgr.h:192
uint32 dungeonId
Dungeon to join.
Definition: LFGMgr.h:235
std::unordered_map< uint32, LFGDungeonData > LFGDungeonContainer
Definition: LFGMgr.h:148
std::map< ObjectGuid, LfgGroupData > LfgGroupDataContainer
Definition: LFGMgr.h:146
std::set< ObjectGuid > GuidSet
Definition: ObjectGuid.h:332
#define TC_GAME_API
Definition: Define.h:134
uint32 otherQuest
Definition: LFGMgr.h:215
std::string name
Definition: LFGMgr.h:282
int32 waitTimeDps
Definition: LFGMgr.h:190
Stores player data related to proposal to join.
Definition: LFGMgr.h:219
LfgRolesMap roles
Player selected roles.
Definition: LFGMgr.h:251
LfgLockPartyMap lockmap
Definition: LFGMgr.h:157
uint8_t uint8
Definition: Define.h:152
LfgProposalState state
State of the proposal.
Definition: LFGMgr.h:236
LfgRewardContainer RewardMapStore
Stores rewards for random dungeons.
Definition: LFGMgr.h:469
time_t cancelTime
Time when we will cancel this proposal.
Definition: LFGMgr.h:239
LfgRoleCheckState
Role check states.
Definition: LFGMgr.h:117
LfgProposalPlayer()
Definition: LFGMgr.h:221
ObjectGuid leader
Leader of the group.
Definition: LFGMgr.h:255
uint32 encounters
Dungeon Encounters.
Definition: LFGMgr.h:240
uint8 expansion
Definition: LFGMgr.h:285
uint32 firstQuest
Definition: LFGMgr.h:214
Definition: ObjectGuid.h:189
Difficulty difficulty
Definition: LFGMgr.h:289
std::map< uint8, LFGQueue > LfgQueueContainer
Definition: LFGMgr.h:135
std::string reason
kick reason
Definition: LFGMgr.h:265
uint32 Entry() const
Definition: LFGMgr.h:295
LfgState state
Definition: LFGMgr.h:170
T check(T value)
Definition: format.h:305
Type
Type of JSON value.
Definition: rapidjson.h:642
LfgGroupDataContainer GroupsStore
Group data.
Definition: LFGMgr.h:476
uint32 rDungeonId
Random Dungeon Id.
Definition: LFGMgr.h:254
LfgProposal(uint32 dungeon=0)
Definition: LFGMgr.h:230
std::map< ObjectGuid, LfgPlayerData > LfgPlayerDataContainer
Definition: LFGMgr.h:147
uint8 type
Definition: LFGMgr.h:284
uint32 id
Definition: LFGMgr.h:281
void Update(uint32 diff)
Definition: WeatherMgr.cpp:150
LfgCachedDungeonContainer CachedDungeonMapStore
Stores all dungeons by groupType.
Definition: LFGMgr.h:467
std::map< ObjectGuid, LfgProposalPlayer > LfgProposalPlayerContainer
Definition: LFGMgr.h:144
std::pair< LfgRewardContainer::const_iterator, LfgRewardContainer::const_iterator > LfgRewardContainerBounds
Definition: LFGMgr.h:139