TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lfg Namespace Reference

Classes

struct  LfgCompatibilityData
 
struct  LFGDungeonData
 
class  LfgGroupData
 
class  LFGGroupScript
 
struct  LfgJoinResultData
 
struct  LfgLockInfoData
 
class  LFGMgr
 
struct  LfgPlayerBoot
 Stores information of a current vote to kick someone from a group. More...
 
class  LfgPlayerData
 
struct  LfgPlayerRewardData
 
class  LFGPlayerScript
 
struct  LfgProposal
 Stores group data related to proposal to join. More...
 
struct  LfgProposalPlayer
 Stores player data related to proposal to join. More...
 
class  LFGQueue
 
struct  LfgQueueData
 Stores player or group queue info. More...
 
struct  LfgQueueStatusData
 
struct  LfgReward
 Reward info. More...
 
struct  LfgRoleCheck
 Stores all rolecheck info of a group that wants to join. More...
 
struct  LfgUpdateData
 
struct  LfgWaitTime
 

Typedefs

typedef std::set< uint32LfgDungeonSet
 
typedef std::map< uint32,
LfgLockInfoData
LfgLockMap
 
typedef std::map< ObjectGuid,
LfgLockMap
LfgLockPartyMap
 
typedef std::map< ObjectGuid,
uint8
LfgRolesMap
 
typedef std::map< ObjectGuid,
ObjectGuid
LfgGroupsMap
 
typedef std::map< uint8, LFGQueueLfgQueueContainer
 
typedef std::multimap< uint32,
LfgReward const * > 
LfgRewardContainer
 
typedef std::pair
< LfgRewardContainer::const_iterator,
LfgRewardContainer::const_iterator > 
LfgRewardContainerBounds
 
typedef std::map< uint8,
LfgDungeonSet
LfgCachedDungeonContainer
 
typedef std::map< ObjectGuid,
LfgAnswer
LfgAnswerContainer
 
typedef std::map< ObjectGuid,
LfgRoleCheck
LfgRoleCheckContainer
 
typedef std::map< uint32,
LfgProposal
LfgProposalContainer
 
typedef std::map< ObjectGuid,
LfgProposalPlayer
LfgProposalPlayerContainer
 
typedef std::map< ObjectGuid,
LfgPlayerBoot
LfgPlayerBootContainer
 
typedef std::map< ObjectGuid,
LfgGroupData
LfgGroupDataContainer
 
typedef std::map< ObjectGuid,
LfgPlayerData
LfgPlayerDataContainer
 
typedef std::unordered_map
< uint32, LFGDungeonData
LFGDungeonContainer
 
typedef std::map< uint32,
LfgWaitTime
LfgWaitTimesContainer
 
typedef std::map< std::string,
LfgCompatibilityData
LfgCompatibleContainer
 
typedef std::map< ObjectGuid,
LfgQueueData
LfgQueueDataContainer
 

Enumerations

enum  LFGEnum { LFG_TANKS_NEEDED = 1, LFG_HEALERS_NEEDED = 1, LFG_DPS_NEEDED = 3 }
 
enum  LfgRoles {
  PLAYER_ROLE_NONE = 0x00, PLAYER_ROLE_LEADER = 0x01, PLAYER_ROLE_TANK = 0x02, PLAYER_ROLE_HEALER = 0x04,
  PLAYER_ROLE_DAMAGE = 0x08
}
 
enum  LfgUpdateType {
  LFG_UPDATETYPE_DEFAULT = 0, LFG_UPDATETYPE_LEADER_UNK1 = 1, LFG_UPDATETYPE_ROLECHECK_ABORTED = 4, LFG_UPDATETYPE_JOIN_QUEUE = 6,
  LFG_UPDATETYPE_ROLECHECK_FAILED = 7, LFG_UPDATETYPE_REMOVED_FROM_QUEUE = 8, LFG_UPDATETYPE_PROPOSAL_FAILED = 9, LFG_UPDATETYPE_PROPOSAL_DECLINED = 10,
  LFG_UPDATETYPE_GROUP_FOUND = 11, LFG_UPDATETYPE_ADDED_TO_QUEUE = 13, LFG_UPDATETYPE_PROPOSAL_BEGIN = 14, LFG_UPDATETYPE_UPDATE_STATUS = 15,
  LFG_UPDATETYPE_GROUP_MEMBER_OFFLINE = 16, LFG_UPDATETYPE_GROUP_DISBAND_UNK16 = 17, LFG_UPDATETYPE_JOIN_QUEUE_INITIAL = 24, LFG_UPDATETYPE_DUNGEON_FINISHED = 25,
  LFG_UPDATETYPE_PARTY_ROLE_NOT_AVAILABLE = 43, LFG_UPDATETYPE_JOIN_LFG_OBJECT_FAILED = 45
}
 
enum  LfgState {
  LFG_STATE_NONE, LFG_STATE_ROLECHECK, LFG_STATE_QUEUED, LFG_STATE_PROPOSAL,
  LFG_STATE_DUNGEON = 5, LFG_STATE_FINISHED_DUNGEON, LFG_STATE_RAIDBROWSER
}
 
enum  LfgLockStatusType {
  LFG_LOCKSTATUS_INSUFFICIENT_EXPANSION = 1, LFG_LOCKSTATUS_TOO_LOW_LEVEL = 2, LFG_LOCKSTATUS_TOO_HIGH_LEVEL = 3, LFG_LOCKSTATUS_TOO_LOW_GEAR_SCORE = 4,
  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, LFG_LOCKSTATUS_MISSING_ACHIEVEMENT = 1034
}
 Instance lock types. More...
 
enum  LfgAnswer { LFG_ANSWER_PENDING = -1, LFG_ANSWER_DENY = 0, LFG_ANSWER_AGREE = 1 }
 Answer state (Also used to check compatibilites) More...
 
enum  LfgGroupEnum { LFG_GROUP_MAX_KICKS = 3 }
 
enum  LfgOptions { LFG_OPTION_ENABLE_DUNGEON_FINDER = 0x01, LFG_OPTION_ENABLE_RAID_BROWSER = 0x02 }
 
enum  LFGMgrEnum {
  LFG_TIME_ROLECHECK = 45 * IN_MILLISECONDS, LFG_TIME_BOOT = 120, LFG_TIME_PROPOSAL = 45, LFG_QUEUEUPDATE_INTERVAL = 15 * IN_MILLISECONDS,
  LFG_SPELL_DUNGEON_COOLDOWN = 71328, LFG_SPELL_DUNGEON_DESERTER = 71041, LFG_SPELL_LUCK_OF_THE_DRAW = 72221, LFG_GROUP_KICK_VOTES_NEEDED = 3
}
 
enum  LfgFlags { LFG_FLAG_UNK1 = 0x1, LFG_FLAG_UNK2 = 0x2, LFG_FLAG_SEASONAL = 0x4, LFG_FLAG_UNK3 = 0x8 }
 
enum  LfgType {
  LFG_TYPE_NONE = 0, LFG_TYPE_DUNGEON = 1, LFG_TYPE_RAID = 2, LFG_TYPE_HEROIC = 5,
  LFG_TYPE_RANDOM = 6
}
 Determines the type of instance. More...
 
enum  LfgProposalState { LFG_PROPOSAL_INITIATING = 0, LFG_PROPOSAL_FAILED = 1, LFG_PROPOSAL_SUCCESS = 2 }
 Proposal states. More...
 
enum  LfgTeleportError {
  LFG_TELEPORTERROR_OK = 0, LFG_TELEPORTERROR_PLAYER_DEAD = 1, LFG_TELEPORTERROR_FALLING = 2, LFG_TELEPORTERROR_IN_VEHICLE = 3,
  LFG_TELEPORTERROR_FATIGUE = 4, LFG_TELEPORTERROR_INVALID_LOCATION = 6, LFG_TELEPORTERROR_CHARMING = 8
}
 Teleport errors. More...
 
enum  LfgJoinResult {
  LFG_JOIN_OK = 0x00, LFG_JOIN_FAILED = 0x1B, LFG_JOIN_GROUPFULL = 0x1C, LFG_JOIN_INTERNAL_ERROR = 0x1E,
  LFG_JOIN_NOT_MEET_REQS = 0x1F, LFG_JOIN_PARTY_NOT_MEET_REQS = 6, LFG_JOIN_MIXED_RAID_DUNGEON = 0x20, LFG_JOIN_MULTI_REALM = 0x21,
  LFG_JOIN_DISCONNECTED = 0x22, LFG_JOIN_PARTY_INFO_FAILED = 0x23, LFG_JOIN_DUNGEON_INVALID = 0x24, LFG_JOIN_DESERTER = 0x25,
  LFG_JOIN_PARTY_DESERTER = 0x26, LFG_JOIN_RANDOM_COOLDOWN = 0x27, LFG_JOIN_PARTY_RANDOM_COOLDOWN = 0x28, LFG_JOIN_TOO_MUCH_MEMBERS = 0x29,
  LFG_JOIN_USING_BG_SYSTEM = 0x2A, LFG_JOIN_ROLE_CHECK_FAILED = 0x2B
}
 Queue join results. More...
 
enum  LfgRoleCheckState {
  LFG_ROLECHECK_DEFAULT = 0, LFG_ROLECHECK_FINISHED = 1, LFG_ROLECHECK_INITIALITING = 2, LFG_ROLECHECK_MISSING_ROLE = 3,
  LFG_ROLECHECK_WRONG_ROLES = 4, LFG_ROLECHECK_ABORTED = 5, LFG_ROLECHECK_NO_ROLE = 6
}
 Role check states. More...
 
enum  LfgCompatibility {
  LFG_COMPATIBILITY_PENDING, LFG_INCOMPATIBLES_WRONG_GROUP_SIZE, LFG_INCOMPATIBLES_TOO_MUCH_PLAYERS, LFG_INCOMPATIBLES_MULTIPLE_LFG_GROUPS,
  LFG_INCOMPATIBLES_HAS_IGNORES, LFG_INCOMPATIBLES_NO_ROLES, LFG_INCOMPATIBLES_NO_DUNGEONS, LFG_COMPATIBLES_WITH_LESS_PLAYERS,
  LFG_COMPATIBLES_BAD_STATES, LFG_COMPATIBLES_MATCH
}
 

Functions

std::string ConcatenateDungeons (LfgDungeonSet const &dungeons)
 
std::string GetRolesString (uint8 roles)
 
std::string GetStateString (LfgState state)
 
std::string ConcatenateGuids (GuidList const &check)
 
char constGetCompatibleString (LfgCompatibility compatibles)
 

Typedef Documentation

typedef std::map<std::string, LfgCompatibilityData> lfg::LfgCompatibleContainer
typedef std::unordered_map<uint32, LFGDungeonData> lfg::LFGDungeonContainer
typedef std::set<uint32> lfg::LfgDungeonSet
typedef std::multimap<uint32, LfgReward const*> lfg::LfgRewardContainer
typedef std::pair<LfgRewardContainer::const_iterator, LfgRewardContainer::const_iterator> lfg::LfgRewardContainerBounds
typedef std::map<ObjectGuid, uint8> lfg::LfgRolesMap

Enumeration Type Documentation

Answer state (Also used to check compatibilites)

Enumerator
LFG_ANSWER_PENDING 
LFG_ANSWER_DENY 
LFG_ANSWER_AGREE 
96 {
97  LFG_ANSWER_PENDING = -1,
98  LFG_ANSWER_DENY = 0,
100 };
Definition: LFG.h:97
Definition: LFG.h:98
Definition: LFG.h:99
Enumerator
LFG_COMPATIBILITY_PENDING 
LFG_INCOMPATIBLES_WRONG_GROUP_SIZE 
LFG_INCOMPATIBLES_TOO_MUCH_PLAYERS 
LFG_INCOMPATIBLES_MULTIPLE_LFG_GROUPS 
LFG_INCOMPATIBLES_HAS_IGNORES 
LFG_INCOMPATIBLES_NO_ROLES 
LFG_INCOMPATIBLES_NO_DUNGEONS 
LFG_COMPATIBLES_WITH_LESS_PLAYERS 
LFG_COMPATIBLES_BAD_STATES 
LFG_COMPATIBLES_MATCH 
27 {
35  LFG_COMPATIBLES_WITH_LESS_PLAYERS, // Values under this = not compatible (do not modify order)
37  LFG_COMPATIBLES_MATCH // Must be the last one
38 };
Definition: LFGQueue.h:34
Definition: LFGQueue.h:36
Definition: LFGQueue.h:37
Definition: LFGQueue.h:33
Definition: LFGQueue.h:32
Definition: LFGQueue.h:28
Enumerator
LFG_TANKS_NEEDED 
LFG_HEALERS_NEEDED 
LFG_DPS_NEEDED 
28 {
29  LFG_TANKS_NEEDED = 1,
31  LFG_DPS_NEEDED = 3
32 };
Definition: LFG.h:29
Definition: LFG.h:30
Definition: LFG.h:31
Enumerator
LFG_FLAG_UNK1 
LFG_FLAG_UNK2 
LFG_FLAG_SEASONAL 
LFG_FLAG_UNK3 
54 {
55  LFG_FLAG_UNK1 = 0x1,
56  LFG_FLAG_UNK2 = 0x2,
57  LFG_FLAG_SEASONAL = 0x4,
58  LFG_FLAG_UNK3 = 0x8
59 };
Definition: LFGMgr.h:58
Definition: LFGMgr.h:56
Definition: LFGMgr.h:55
Definition: LFGMgr.h:57
Enumerator
LFG_GROUP_MAX_KICKS 
27 {
29 };
Definition: LFGGroupData.h:28

Queue join results.

Enumerator
LFG_JOIN_OK 
LFG_JOIN_FAILED 
LFG_JOIN_GROUPFULL 
LFG_JOIN_INTERNAL_ERROR 
LFG_JOIN_NOT_MEET_REQS 
LFG_JOIN_PARTY_NOT_MEET_REQS 
LFG_JOIN_MIXED_RAID_DUNGEON 
LFG_JOIN_MULTI_REALM 
LFG_JOIN_DISCONNECTED 
LFG_JOIN_PARTY_INFO_FAILED 
LFG_JOIN_DUNGEON_INVALID 
LFG_JOIN_DESERTER 
LFG_JOIN_PARTY_DESERTER 
LFG_JOIN_RANDOM_COOLDOWN 
LFG_JOIN_PARTY_RANDOM_COOLDOWN 
LFG_JOIN_TOO_MUCH_MEMBERS 
LFG_JOIN_USING_BG_SYSTEM 
LFG_JOIN_ROLE_CHECK_FAILED 
94 {
95  // 3 = No client reaction | 18 = "Rolecheck failed"
96  LFG_JOIN_OK = 0x00, // Joined (no client msg)
97  LFG_JOIN_FAILED = 0x1B, // RoleCheck Failed
98  LFG_JOIN_GROUPFULL = 0x1C, // Your group is full
99  LFG_JOIN_INTERNAL_ERROR = 0x1E, // Internal LFG Error
100  LFG_JOIN_NOT_MEET_REQS = 0x1F, // You do not meet the requirements for the chosen dungeons
101  LFG_JOIN_PARTY_NOT_MEET_REQS = 6, // One or more party members do not meet the requirements for the chosen dungeons (FIXME)
102  LFG_JOIN_MIXED_RAID_DUNGEON = 0x20, // You cannot mix dungeons, raids, and random when picking dungeons
103  LFG_JOIN_MULTI_REALM = 0x21, // The dungeon you chose does not support players from multiple realms
104  LFG_JOIN_DISCONNECTED = 0x22, // One or more party members are pending invites or disconnected
105  LFG_JOIN_PARTY_INFO_FAILED = 0x23, // Could not retrieve information about some party members
106  LFG_JOIN_DUNGEON_INVALID = 0x24, // One or more dungeons was not valid
107  LFG_JOIN_DESERTER = 0x25, // You can not queue for dungeons until your deserter debuff wears off
108  LFG_JOIN_PARTY_DESERTER = 0x26, // One or more party members has a deserter debuff
109  LFG_JOIN_RANDOM_COOLDOWN = 0x27, // You can not queue for random dungeons while on random dungeon cooldown
110  LFG_JOIN_PARTY_RANDOM_COOLDOWN = 0x28, // One or more party members are on random dungeon cooldown
111  LFG_JOIN_TOO_MUCH_MEMBERS = 0x29, // You can not enter dungeons with more that 5 party members
112  LFG_JOIN_USING_BG_SYSTEM = 0x2A, // You can not use the dungeon system while in BG or arenas
113  LFG_JOIN_ROLE_CHECK_FAILED = 0x2B // Role check failed, client shows special error
114 };
Definition: LFGMgr.h:99
Definition: LFGMgr.h:102
Definition: LFGMgr.h:106
Definition: LFGMgr.h:113
Definition: LFGMgr.h:98
Definition: LFGMgr.h:101
Definition: LFGMgr.h:111
Definition: LFGMgr.h:108
Definition: LFGMgr.h:100
Definition: LFGMgr.h:110
Definition: LFGMgr.h:97
Definition: LFGMgr.h:103
Definition: LFGMgr.h:107
Definition: LFGMgr.h:105
Definition: LFGMgr.h:96
Definition: LFGMgr.h:104
Definition: LFGMgr.h:112
Definition: LFGMgr.h:109

Instance lock types.

Enumerator
LFG_LOCKSTATUS_INSUFFICIENT_EXPANSION 
LFG_LOCKSTATUS_TOO_LOW_LEVEL 
LFG_LOCKSTATUS_TOO_HIGH_LEVEL 
LFG_LOCKSTATUS_TOO_LOW_GEAR_SCORE 
LFG_LOCKSTATUS_TOO_HIGH_GEAR_SCORE 
LFG_LOCKSTATUS_RAID_LOCKED 
LFG_LOCKSTATUS_ATTUNEMENT_TOO_LOW_LEVEL 
LFG_LOCKSTATUS_ATTUNEMENT_TOO_HIGH_LEVEL 
LFG_LOCKSTATUS_QUEST_NOT_COMPLETED 
LFG_LOCKSTATUS_MISSING_ITEM 
LFG_LOCKSTATUS_NOT_IN_SEASON 
LFG_LOCKSTATUS_MISSING_ACHIEVEMENT 
Enumerator
LFG_TIME_ROLECHECK 
LFG_TIME_BOOT 
LFG_TIME_PROPOSAL 
LFG_QUEUEUPDATE_INTERVAL 
LFG_SPELL_DUNGEON_COOLDOWN 
LFG_SPELL_DUNGEON_DESERTER 
LFG_SPELL_LUCK_OF_THE_DRAW 
LFG_GROUP_KICK_VOTES_NEEDED 
42 {
44  LFG_TIME_BOOT = 120,
45  LFG_TIME_PROPOSAL = 45,
51 };
Definition: LFGMgr.h:44
Definition: LFGMgr.h:49
Definition: LFGMgr.h:50
Definition: LFGMgr.h:46
Definition: LFGMgr.h:43
Definition: LFGMgr.h:45
Definition: LFGMgr.h:47
Definition: Common.h:103
Definition: cs_deserter.cpp:33
Enumerator
LFG_OPTION_ENABLE_DUNGEON_FINDER 
LFG_OPTION_ENABLE_RAID_BROWSER 
36 {
39 };

Proposal states.

Enumerator
LFG_PROPOSAL_INITIATING 
LFG_PROPOSAL_FAILED 
LFG_PROPOSAL_SUCCESS 
73 {
77 };
Definition: LFGMgr.h:76
Definition: LFGMgr.h:75
Definition: LFGMgr.h:74

Role check states.

Enumerator
LFG_ROLECHECK_DEFAULT 
LFG_ROLECHECK_FINISHED 
LFG_ROLECHECK_INITIALITING 
LFG_ROLECHECK_MISSING_ROLE 
LFG_ROLECHECK_WRONG_ROLES 
LFG_ROLECHECK_ABORTED 
LFG_ROLECHECK_NO_ROLE 
118 {
119  LFG_ROLECHECK_DEFAULT = 0, // Internal use = Not initialized.
120  LFG_ROLECHECK_FINISHED = 1, // Role check finished
121  LFG_ROLECHECK_INITIALITING = 2, // Role check begins
122  LFG_ROLECHECK_MISSING_ROLE = 3, // Someone didn't selected a role after 2 mins
123  LFG_ROLECHECK_WRONG_ROLES = 4, // Can't form a group with that role selection
124  LFG_ROLECHECK_ABORTED = 5, // Someone leave the group
125  LFG_ROLECHECK_NO_ROLE = 6 // Someone selected no role
126 };
Definition: LFGMgr.h:119
Definition: LFGMgr.h:122
Definition: LFGMgr.h:124
Definition: LFGMgr.h:120
Definition: LFGMgr.h:125
Definition: LFGMgr.h:123
Definition: LFGMgr.h:121
Enumerator
PLAYER_ROLE_NONE 
PLAYER_ROLE_LEADER 
PLAYER_ROLE_TANK 
PLAYER_ROLE_HEALER 
PLAYER_ROLE_DAMAGE 
35 {
36  PLAYER_ROLE_NONE = 0x00,
37  PLAYER_ROLE_LEADER = 0x01,
38  PLAYER_ROLE_TANK = 0x02,
39  PLAYER_ROLE_HEALER = 0x04,
40  PLAYER_ROLE_DAMAGE = 0x08
41 };
Definition: LFG.h:39
Definition: LFG.h:37
Definition: LFG.h:36
Definition: LFG.h:40
Definition: LFG.h:38
Enumerator
LFG_STATE_NONE 
LFG_STATE_ROLECHECK 
LFG_STATE_QUEUED 
LFG_STATE_PROPOSAL 
LFG_STATE_DUNGEON 
LFG_STATE_FINISHED_DUNGEON 
LFG_STATE_RAIDBROWSER 
66 {
67  LFG_STATE_NONE, // Not using LFG / LFR
68  LFG_STATE_ROLECHECK, // Rolecheck active
69  LFG_STATE_QUEUED, // Queued
70  LFG_STATE_PROPOSAL, // Proposal active
71  //LFG_STATE_BOOT, // Vote kick active
72  LFG_STATE_DUNGEON = 5, // In LFG Group, in a Dungeon
73  LFG_STATE_FINISHED_DUNGEON, // In LFG Group, in a finished Dungeon
74  LFG_STATE_RAIDBROWSER // Using Raid finder
75 };
Definition: LFG.h:68
Definition: LFG.h:67
Definition: LFG.h:72
Definition: LFG.h:69
Definition: LFG.h:70
Definition: LFG.h:74

Teleport errors.

Enumerator
LFG_TELEPORTERROR_OK 
LFG_TELEPORTERROR_PLAYER_DEAD 
LFG_TELEPORTERROR_FALLING 
LFG_TELEPORTERROR_IN_VEHICLE 
LFG_TELEPORTERROR_FATIGUE 
LFG_TELEPORTERROR_INVALID_LOCATION 
LFG_TELEPORTERROR_CHARMING 
81 {
82  // 7 = "You can't do that right now" | 5 = No client reaction
83  LFG_TELEPORTERROR_OK = 0, // Internal use
89  LFG_TELEPORTERROR_CHARMING = 8 // FIXME - It can be 7 or 8 (Need proper data)
90 };
Definition: LFGMgr.h:84
Definition: LFGMgr.h:85
Definition: LFGMgr.h:89
Definition: LFGMgr.h:83
Definition: LFGMgr.h:86
Definition: LFGMgr.h:87

Determines the type of instance.

Enumerator
LFG_TYPE_NONE 
LFG_TYPE_DUNGEON 
LFG_TYPE_RAID 
LFG_TYPE_HEROIC 
LFG_TYPE_RANDOM 
63 {
64  LFG_TYPE_NONE = 0,
65  LFG_TYPE_DUNGEON = 1,
66  LFG_TYPE_RAID = 2,
67  LFG_TYPE_HEROIC = 5,
68  LFG_TYPE_RANDOM = 6
69 };
Definition: LFGMgr.h:68
Definition: LFGMgr.h:65
Definition: LFGMgr.h:64
Definition: LFGMgr.h:66
Definition: LFGMgr.h:67
Enumerator
LFG_UPDATETYPE_DEFAULT 
LFG_UPDATETYPE_LEADER_UNK1 
LFG_UPDATETYPE_ROLECHECK_ABORTED 
LFG_UPDATETYPE_JOIN_QUEUE 
LFG_UPDATETYPE_ROLECHECK_FAILED 
LFG_UPDATETYPE_REMOVED_FROM_QUEUE 
LFG_UPDATETYPE_PROPOSAL_FAILED 
LFG_UPDATETYPE_PROPOSAL_DECLINED 
LFG_UPDATETYPE_GROUP_FOUND 
LFG_UPDATETYPE_ADDED_TO_QUEUE 
LFG_UPDATETYPE_PROPOSAL_BEGIN 
LFG_UPDATETYPE_UPDATE_STATUS 
LFG_UPDATETYPE_GROUP_MEMBER_OFFLINE 
LFG_UPDATETYPE_GROUP_DISBAND_UNK16 
LFG_UPDATETYPE_JOIN_QUEUE_INITIAL 
LFG_UPDATETYPE_DUNGEON_FINISHED 
LFG_UPDATETYPE_PARTY_ROLE_NOT_AVAILABLE 
LFG_UPDATETYPE_JOIN_LFG_OBJECT_FAILED 
44 {
45  LFG_UPDATETYPE_DEFAULT = 0, // Internal Use
46  LFG_UPDATETYPE_LEADER_UNK1 = 1, // FIXME: At group leave
58  LFG_UPDATETYPE_GROUP_DISBAND_UNK16 = 17, // FIXME: Sometimes at group disband
63 };
Definition: LFG.h:48
Definition: LFG.h:45

Function Documentation

TC_GAME_API std::string lfg::ConcatenateDungeons ( LfgDungeonSet const dungeons)
26 {
27  std::string dungeonstr = "";
28  if (!dungeons.empty())
29  {
30  std::ostringstream o;
31  LfgDungeonSet::const_iterator it = dungeons.begin();
32  o << (*it);
33  for (++it; it != dungeons.end(); ++it)
34  o << ", " << uint32(*it);
35  dungeonstr = o.str();
36  }
37  return dungeonstr;
38 }
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the caller graph for this function:

std::string lfg::ConcatenateGuids ( GuidList const check)

Given a list of guids returns the concatenation using | as delimiter

Parameters
[in]checklist of guids
Returns
Concatenated string
37 {
38  if (check.empty())
39  return "";
40 
41  // need the guids in order to avoid duplicates
42  GuidSet guids(check.begin(), check.end());
43 
44  std::ostringstream o;
45 
46  GuidSet::const_iterator it = guids.begin();
47  o << *it;
48  for (++it; it != guids.end(); ++it)
49  o << '|' << *it;
50 
51  return o.str();
52 }
std::set< ObjectGuid > GuidSet
Definition: ObjectGuid.h:332
T check(T value)
Definition: format.h:305

+ Here is the caller graph for this function:

char const* lfg::GetCompatibleString ( LfgCompatibility  compatibles)
55 {
56  switch (compatibles)
57  {
59  return "Pending";
61  return "Compatibles (Bad States)";
63  return "Match";
65  return "Compatibles (Not enough players)";
67  return "Has ignores";
69  return "Multiple Lfg Groups";
71  return "Incompatible dungeons";
73  return "Incompatible roles";
75  return "Too many players";
77  return "Wrong group size";
78  default:
79  return "Unknown";
80  }
81 }
Definition: LFGQueue.h:34
Definition: LFGQueue.h:36
Definition: LFGQueue.h:37
Definition: LFGQueue.h:33
Definition: LFGQueue.h:32
Definition: LFGQueue.h:28

+ Here is the caller graph for this function:

TC_GAME_API std::string lfg::GetRolesString ( uint8  roles)
41 {
42  std::string rolesstr = "";
43 
44  if (roles & PLAYER_ROLE_TANK)
45  rolesstr.append(sObjectMgr->GetTrinityStringForDBCLocale(LANG_LFG_ROLE_TANK));
46 
47  if (roles & PLAYER_ROLE_HEALER)
48  {
49  if (!rolesstr.empty())
50  rolesstr.append(", ");
51  rolesstr.append(sObjectMgr->GetTrinityStringForDBCLocale(LANG_LFG_ROLE_HEALER));
52  }
53 
54  if (roles & PLAYER_ROLE_DAMAGE)
55  {
56  if (!rolesstr.empty())
57  rolesstr.append(", ");
58  rolesstr.append(sObjectMgr->GetTrinityStringForDBCLocale(LANG_LFG_ROLE_DAMAGE));
59  }
60 
61  if (roles & PLAYER_ROLE_LEADER)
62  {
63  if (!rolesstr.empty())
64  rolesstr.append(", ");
65  rolesstr.append(sObjectMgr->GetTrinityStringForDBCLocale(LANG_LFG_ROLE_LEADER));
66  }
67 
68  if (rolesstr.empty())
69  rolesstr.append(sObjectMgr->GetTrinityStringForDBCLocale(LANG_LFG_ROLE_NONE));
70 
71  return rolesstr;
72 }
Definition: LFG.h:39
Definition: LFG.h:37
Definition: Language.h:1172
Definition: LFG.h:40
Definition: Language.h:1174
#define sObjectMgr
Definition: ObjectMgr.h:1567
Definition: Language.h:1170
Definition: Language.h:1171
Definition: Language.h:1173
Definition: LFG.h:38

+ Here is the caller graph for this function:

TC_GAME_API std::string lfg::GetStateString ( LfgState  state)
75 {
76  int32 entry = LANG_LFG_ERROR;
77  switch (state)
78  {
79  case LFG_STATE_NONE:
80  entry = LANG_LFG_STATE_NONE;
81  break;
84  break;
85  case LFG_STATE_QUEUED:
86  entry = LANG_LFG_STATE_QUEUED;
87  break;
88  case LFG_STATE_PROPOSAL:
90  break;
91  case LFG_STATE_DUNGEON:
92  entry = LANG_LFG_STATE_DUNGEON;
93  break;
96  break;
99  break;
100  }
101 
102  return std::string(sObjectMgr->GetTrinityStringForDBCLocale(entry));
103 }
Definition: LFG.h:68
Definition: LFG.h:67
Definition: LFG.h:72
Definition: LFG.h:69
Definition: LFG.h:70
Definition: Language.h:1162
#define sObjectMgr
Definition: ObjectMgr.h:1567
Definition: Language.h:1169
Definition: LFG.h:74
int32_t int32
Definition: Define.h:146
Definition: Language.h:1167
Definition: Language.h:1168
Definition: Language.h:1175
Definition: Language.h:1163
Definition: Language.h:1165
Definition: Language.h:1164

+ Here is the caller graph for this function: