#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 | ) |
|
83{
85 return false;
86
87
88 bool foundProper = false;
90
92 {
93
94 if (std::abs(
int32(gInfo->Players.size()) - (
int32)size) <= 1)
95 {
96 groupToKick = gInfo;
97 foundProper = true;
98 }
99 else if (!foundProper && gInfo->Players.size() >= groupToKick->Players.size())
100 groupToKick = gInfo;
101 }
102
103
104 auto playersCountInGroup{ groupToKick->Players.size() };
107
108 if (foundProper)
109 return false;
110
111 return playersCountInGroup > size;
112}
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