Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
BattlegroundQueue Class Reference

#include <BattlegroundQueue.h>

Collaboration diagram for BattlegroundQueue:

Classes

class  SelectionPool

Public Types

typedef std::deque< GroupQueueInfo * > GroupsQueueType
typedef std::map< uint64, PlayerQueueInfoQueuedPlayersMap

Public Member Functions

GroupQueueInfoAddGroup (Player *leader, Group *group, BattlegroundTypeId bgTypeId, PvPDifficultyEntry const *bracketEntry, uint8 ArenaTypeArenaType, bool isRated, bool isPremade, uint32 ArenaRating, uint32 MatchmakerRating)
 BattlegroundQueue ()
void BattlegroundQueueUpdate (uint32 diff, BattlegroundTypeId bgTypeId, BattlegroundBracketId bracket_id, uint8 arenaType=0, bool isRated=false, uint32 minRating=0)
bool CheckNormalMatch (Battleground *bg_template, BattlegroundBracketId bracket_id, uint32 minPlayers, uint32 maxPlayers)
bool CheckPremadeMatch (BattlegroundBracketId bracket_id, uint32 MinPlayersPerTeam, uint32 MaxPlayersPerTeam)
bool CheckSkirmishForSameFaction (BattlegroundBracketId bracket_id, uint32 minPlayersPerTeam)
void FillPlayersToBG (Battleground *bg, BattlegroundBracketId bracket_id)
uint32 GetAverageQueueWaitTime (GroupQueueInfo *ginfo, BattlegroundBracketId bracket_id) const
bool GetPlayerGroupInfoData (uint64 guid, GroupQueueInfo *ginfo)
uint32 GetPlayersInQueue (TeamId id)
bool IsPlayerInvited (uint64 pl_guid, const uint32 bgInstanceGuid, const uint32 removeTime)
void PlayerInvitedToBGUpdateAverageWaitTime (GroupQueueInfo *ginfo, BattlegroundBracketId bracket_id)
void RemovePlayer (uint64 guid, bool decreaseInvitedCount)
void UpdateEvents (uint32 diff)
 ~BattlegroundQueue ()

Public Attributes

GroupsQueueType m_QueuedGroups [MAX_BATTLEGROUND_BRACKETS][BG_QUEUE_GROUP_TYPES_COUNT]
QueuedPlayersMap m_QueuedPlayers
SelectionPool m_SelectionPools [BG_TEAMS_COUNT]

Private Member Functions

bool InviteGroupToBG (GroupQueueInfo *ginfo, Battleground *bg, uint32 side)

Private Attributes

EventProcessor m_events
uint32 m_SumOfWaitTimes [BG_TEAMS_COUNT][MAX_BATTLEGROUND_BRACKETS]
uint32 m_WaitTimeLastPlayer [BG_TEAMS_COUNT][MAX_BATTLEGROUND_BRACKETS]
uint32 m_WaitTimes [BG_TEAMS_COUNT][MAX_BATTLEGROUND_BRACKETS][COUNT_OF_PLAYERS_TO_AVERAGE_WAIT_TIME]

Detailed Description

Definition at line 55 of file BattlegroundQueue.h.

Member Typedef Documentation

◆ GroupsQueueType

Definition at line 79 of file BattlegroundQueue.h.

◆ QueuedPlayersMap

Definition at line 75 of file BattlegroundQueue.h.

Constructor & Destructor Documentation

◆ BattlegroundQueue()

BattlegroundQueue::BattlegroundQueue ( )

◆ ~BattlegroundQueue()

BattlegroundQueue::~BattlegroundQueue ( )

Member Function Documentation

◆ AddGroup()

◆ BattlegroundQueueUpdate()

◆ CheckNormalMatch()

bool BattlegroundQueue::CheckNormalMatch ( Battleground * bg_template,
BattlegroundBracketId bracket_id,
uint32 minPlayers,
uint32 maxPlayers )

◆ CheckPremadeMatch()

◆ CheckSkirmishForSameFaction()

bool BattlegroundQueue::CheckSkirmishForSameFaction ( BattlegroundBracketId bracket_id,
uint32 minPlayersPerTeam )

◆ FillPlayersToBG()

◆ GetAverageQueueWaitTime()

◆ GetPlayerGroupInfoData()

bool BattlegroundQueue::GetPlayerGroupInfoData ( uint64 guid,
GroupQueueInfo * ginfo )

◆ GetPlayersInQueue()

uint32 BattlegroundQueue::GetPlayersInQueue ( TeamId id)

Definition at line 402 of file BattlegroundQueue.cpp.

References m_SelectionPools.

◆ InviteGroupToBG()

◆ IsPlayerInvited()

bool BattlegroundQueue::IsPlayerInvited ( uint64 pl_guid,
const uint32 bgInstanceGuid,
const uint32 removeTime )

Definition at line 385 of file BattlegroundQueue.cpp.

References m_QueuedPlayers.

Referenced by BGQueueInviteEvent::Execute(), and BGQueueRemoveEvent::Execute().

◆ PlayerInvitedToBGUpdateAverageWaitTime()

◆ RemovePlayer()

◆ UpdateEvents()

void BattlegroundQueue::UpdateEvents ( uint32 diff)

Definition at line 712 of file BattlegroundQueue.cpp.

References m_events.

Member Data Documentation

◆ m_events

EventProcessor BattlegroundQueue::m_events
private

Definition at line 118 of file BattlegroundQueue.h.

Referenced by InviteGroupToBG(), UpdateEvents(), and ~BattlegroundQueue().

◆ m_QueuedGroups

◆ m_QueuedPlayers

QueuedPlayersMap BattlegroundQueue::m_QueuedPlayers

◆ m_SelectionPools

◆ m_SumOfWaitTimes

uint32 BattlegroundQueue::m_SumOfWaitTimes[BG_TEAMS_COUNT][MAX_BATTLEGROUND_BRACKETS]
private

◆ m_WaitTimeLastPlayer

uint32 BattlegroundQueue::m_WaitTimeLastPlayer[BG_TEAMS_COUNT][MAX_BATTLEGROUND_BRACKETS]
private

◆ m_WaitTimes


The documentation for this class was generated from the following files: