OregonCore  revision be9e804-git
Your Favourite TBC server
LookingForGroup Struct Reference

#include <Player.h>

Public Member Functions

 LookingForGroup ()
 
bool HaveInSlot (LookingForGroupSlot const &slot) const
 
bool HaveInSlot (uint32 _entry, uint32 _type) const
 
bool canAutoJoin () const
 
bool Empty () const
 

Public Attributes

LookingForGroupSlot slots [MAX_LOOKING_FOR_GROUP_SLOT]
 
LookingForGroupSlot more
 
std::string comment
 

Detailed Description

Definition at line 297 of file Player.h.

Constructor & Destructor Documentation

LookingForGroup::LookingForGroup ( )
inline

Definition at line 299 of file Player.h.

299 {}

Member Function Documentation

bool LookingForGroup::canAutoJoin ( ) const
inline

Definition at line 312 of file Player.h.

References MAX_LOOKING_FOR_GROUP_SLOT.

313  {
314  for (int i = 0; i < MAX_LOOKING_FOR_GROUP_SLOT; ++i)
315  if (slots[i].canAutoJoin())
316  return true;
317  return false;
318  }
bool canAutoJoin() const
Definition: Player.h:312
#define MAX_LOOKING_FOR_GROUP_SLOT
Definition: Player.h:295
LookingForGroupSlot slots[MAX_LOOKING_FOR_GROUP_SLOT]
Definition: Player.h:328
bool LookingForGroup::Empty ( ) const
inline

Definition at line 320 of file Player.h.

References MAX_LOOKING_FOR_GROUP_SLOT.

Referenced by Channel::Join().

321  {
322  for (int i = 0; i < MAX_LOOKING_FOR_GROUP_SLOT; ++i)
323  if (!slots[i].Empty())
324  return false;
325  return more.Empty();
326  }
LookingForGroupSlot more
Definition: Player.h:329
bool Empty() const
Definition: Player.h:320
bool Empty() const
Definition: Player.h:268
#define MAX_LOOKING_FOR_GROUP_SLOT
Definition: Player.h:295
LookingForGroupSlot slots[MAX_LOOKING_FOR_GROUP_SLOT]
Definition: Player.h:328
bool LookingForGroup::HaveInSlot ( LookingForGroupSlot const &  slot) const
inline

Definition at line 300 of file Player.h.

References LookingForGroupSlot::entry, and LookingForGroupSlot::type.

Referenced by WorldSession::SendLfgResult().

301  {
302  return HaveInSlot(slot.entry, slot.type);
303  }
bool HaveInSlot(LookingForGroupSlot const &slot) const
Definition: Player.h:300
bool LookingForGroup::HaveInSlot ( uint32  _entry,
uint32  _type 
) const
inline

Definition at line 304 of file Player.h.

References MAX_LOOKING_FOR_GROUP_SLOT.

305  {
306  for (int i = 0; i < MAX_LOOKING_FOR_GROUP_SLOT; ++i)
307  if (slots[i].Is(_entry, _type))
308  return true;
309  return false;
310  }
#define MAX_LOOKING_FOR_GROUP_SLOT
Definition: Player.h:295
LookingForGroupSlot slots[MAX_LOOKING_FOR_GROUP_SLOT]
Definition: Player.h:328

Member Data Documentation

std::string LookingForGroup::comment
LookingForGroupSlot LookingForGroup::more

The documentation for this struct was generated from the following file: