TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cs_lfg.cpp File Reference
#include "ScriptMgr.h"
#include "Chat.h"
#include "Language.h"
#include "LFGMgr.h"
#include "ObjectMgr.h"
#include "Group.h"
#include "GroupMgr.h"
#include "Player.h"
+ Include dependency graph for cs_lfg.cpp:

Classes

class  lfg_commandscript
 

Functions

void GetPlayerInfo (ChatHandler *handler, Player *player)
 
void AddSC_lfg_commandscript ()
 

Function Documentation

void AddSC_lfg_commandscript ( )
164 {
165  new lfg_commandscript();
166 }
Definition: cs_lfg.cpp:41

+ Here is the caller graph for this function:

void GetPlayerInfo ( ChatHandler handler,
Player *  player 
)
28 {
29  if (!player)
30  return;
31 
32  ObjectGuid guid = player->GetGUID();
33  lfg::LfgDungeonSet dungeons = sLFGMgr->GetSelectedDungeons(guid);
34 
35  std::string const& state = lfg::GetStateString(sLFGMgr->GetState(guid));
36  handler->PSendSysMessage(LANG_LFG_PLAYER_INFO, player->GetName().c_str(),
37  state.c_str(), uint8(dungeons.size()), lfg::ConcatenateDungeons(dungeons).c_str(),
38  lfg::GetRolesString(sLFGMgr->GetRoles(guid)).c_str(), sLFGMgr->GetComment(guid).c_str());
39 }
std::string ConcatenateDungeons(LfgDungeonSet const &dungeons)
Definition: LFG.cpp:25
Definition: Language.h:1156
std::string GetStateString(LfgState state)
Definition: LFG.cpp:74
#define sLFGMgr
Definition: LFGMgr.h:481
std::set< uint32 > LfgDungeonSet
Definition: LFG.h:112
std::string GetRolesString(uint8 roles)
Definition: LFG.cpp:40
uint8_t uint8
Definition: g3dmath.h:164
void PSendSysMessage(const char *fmt, Args &&...args)
Definition: Chat.h:72
Definition: ObjectGuid.h:189

+ Here is the call graph for this function:

+ Here is the caller graph for this function: