#include "BattlegroundQueue.h"
◆ SelectionPool()
BattlegroundQueue::SelectionPool::SelectionPool |
( |
| ) |
|
|
inline |
uint32 PlayerCount
Definition BattlegroundQueue.h:122
◆ AddGroup()
◆ GetPlayerCount()
uint32 BattlegroundQueue::SelectionPool::GetPlayerCount |
( |
| ) |
const |
|
inline |
◆ Init()
void BattlegroundQueue::SelectionPool::Init |
( |
| ) |
|
◆ KickGroup()
bool BattlegroundQueue::SelectionPool::KickGroup |
( |
uint32 |
size | ) |
|
85{
87 return false;
88
89
90 bool foundProper = false;
92
94 {
95
96 if (std::abs(
int32(gInfo->Players.size()) - (
int32)size) <= 1)
97 {
98 groupToKick = gInfo;
99 foundProper = true;
100 }
101 else if (!foundProper && gInfo->Players.size() >= groupToKick->Players.size())
102 groupToKick = gInfo;
103 }
104
105
106 auto playersCountInGroup{ groupToKick->
Players.size() };
109
110 if (foundProper)
111 return false;
112
113 return playersCountInGroup > size;
114}
std::int32_t int32
Definition Define.h:103
Definition BattlegroundQueue.h:31
References GroupQueueInfo::Players.
Referenced by BattlegroundQueue::FillPlayersToBG().
◆ PlayerCount
uint32 BattlegroundQueue::SelectionPool::PlayerCount |
|
private |
◆ SelectedGroups
The documentation for this class was generated from the following files: