TrinityCore
|
#include <BattlegroundMgr.h>
Static Public Member Functions | |
static BattlegroundMgr * | instance () |
static BattlegroundQueueTypeId | BGQueueTypeId (BattlegroundTypeId bgTypeId, uint8 arenaType) |
static BattlegroundTypeId | BGTemplateId (BattlegroundQueueTypeId bgQueueTypeId) |
static uint8 | BGArenaType (BattlegroundQueueTypeId bgQueueTypeId) |
static HolidayIds | BGTypeToWeekendHolidayId (BattlegroundTypeId bgTypeId) |
static BattlegroundTypeId | WeekendHolidayIdToBGType (HolidayIds holiday) |
static bool | IsBGWeekend (BattlegroundTypeId bgTypeId) |
Private Types | |
typedef std::map < BattlegroundTypeId, BattlegroundData > | BattlegroundDataContainer |
typedef std::map < BattlegroundTypeId, uint8 > | BattlegroundSelectionWeightMap |
typedef std::map < BattlegroundTypeId, BattlegroundTemplate > | BattlegroundTemplateMap |
typedef std::map< uint32, BattlegroundTemplate * > | BattlegroundMapTemplateContainer |
Private Member Functions | |
BattlegroundMgr () | |
~BattlegroundMgr () | |
bool | CreateBattleground (BattlegroundTemplate const *bgTemplate) |
uint32 | CreateClientVisibleInstanceId (BattlegroundTypeId bgTypeId, BattlegroundBracketId bracket_id) |
BattlegroundTypeId | GetRandomBG (BattlegroundTypeId id) |
BattlegroundTemplate const * | GetBattlegroundTemplateByTypeId (BattlegroundTypeId id) |
BattlegroundTemplate const * | GetBattlegroundTemplateByMapId (uint32 mapId) |
Static Private Member Functions | |
static bool | IsArenaType (BattlegroundTypeId bgTypeId) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void BattlegroundMgr::AddBattleground | ( | Battleground * | bg | ) |
void BattlegroundMgr::AddToBGFreeSlotQueue | ( | BattlegroundTypeId | bgTypeId, |
Battleground * | bg | ||
) |
|
static |
|
static |
|
static |
|
static |
void BattlegroundMgr::BuildBattlegroundStatusActive | ( | WorldPackets::Battleground::BattlefieldStatusActive * | battlefieldStatus, |
Battleground * | bg, | ||
Player * | player, | ||
uint32 | ticketId, | ||
uint32 | joinTime, | ||
uint32 | arenaType | ||
) |
void BattlegroundMgr::BuildBattlegroundStatusFailed | ( | WorldPackets::Battleground::BattlefieldStatusFailed * | battlefieldStatus, |
Battleground * | bg, | ||
Player * | pPlayer, | ||
uint32 | ticketId, | ||
uint32 | arenaType, | ||
GroupJoinBattlegroundResult | result, | ||
ObjectGuid const * | errorGuid = nullptr |
||
) |
void BattlegroundMgr::BuildBattlegroundStatusHeader | ( | WorldPackets::Battleground::BattlefieldStatusHeader * | battlefieldStatus, |
Battleground * | bg, | ||
Player * | player, | ||
uint32 | ticketId, | ||
uint32 | joinTime, | ||
uint32 | arenaType | ||
) |
void BattlegroundMgr::BuildBattlegroundStatusNeedConfirmation | ( | WorldPackets::Battleground::BattlefieldStatusNeedConfirmation * | battlefieldStatus, |
Battleground * | bg, | ||
Player * | player, | ||
uint32 | ticketId, | ||
uint32 | joinTime, | ||
uint32 | timeout, | ||
uint32 | arenaType | ||
) |
void BattlegroundMgr::BuildBattlegroundStatusNone | ( | WorldPackets::Battleground::BattlefieldStatusNone * | battlefieldStatus, |
Player * | player, | ||
uint32 | ticketId, | ||
uint32 | joinTime, | ||
uint32 | arenaType | ||
) |
void BattlegroundMgr::BuildBattlegroundStatusQueued | ( | WorldPackets::Battleground::BattlefieldStatusQueued * | battlefieldStatus, |
Battleground * | bg, | ||
Player * | player, | ||
uint32 | ticketId, | ||
uint32 | joinTime, | ||
uint32 | avgWaitTime, | ||
uint32 | arenaType, | ||
bool | asGroup | ||
) |
void BattlegroundMgr::CheckBattleMasters | ( | ) |
|
private |
|
private |
Battleground * BattlegroundMgr::CreateNewBattleground | ( | BattlegroundTypeId | bgTypeId, |
PvPDifficultyEntry const * | bracketEntry, | ||
uint8 | arenaType, | ||
bool | isRated | ||
) |
void BattlegroundMgr::DeleteAllBattlegrounds | ( | ) |
Battleground * BattlegroundMgr::GetBattleground | ( | uint32 | InstanceID, |
BattlegroundTypeId | bgTypeId | ||
) |
|
inline |
Battleground * BattlegroundMgr::GetBattlegroundTemplate | ( | BattlegroundTypeId | bgTypeId | ) |
|
inlineprivate |
|
inlineprivate |
|
inline |
BGFreeSlotQueueContainer & BattlegroundMgr::GetBGFreeSlotQueueStore | ( | BattlegroundTypeId | bgTypeId | ) |
uint32 BattlegroundMgr::GetMaxRatingDifference | ( | ) | const |
uint32 BattlegroundMgr::GetPrematureFinishTime | ( | ) | const |
|
private |
uint32 BattlegroundMgr::GetRatingDiscardTimer | ( | ) | const |
|
static |
|
inline |
|
staticprivate |
|
static |
|
inline |
void BattlegroundMgr::LoadBattlegroundTemplates | ( | ) |
void BattlegroundMgr::LoadBattleMastersEntry | ( | ) |
void BattlegroundMgr::RemoveBattleground | ( | BattlegroundTypeId | bgTypeId, |
uint32 | instanceId | ||
) |
void BattlegroundMgr::RemoveFromBGFreeSlotQueue | ( | BattlegroundTypeId | bgTypeId, |
uint32 | instanceId | ||
) |
void BattlegroundMgr::ScheduleQueueUpdate | ( | uint32 | arenaMatchmakerRating, |
uint8 | arenaType, | ||
BattlegroundQueueTypeId | bgQueueTypeId, | ||
BattlegroundTypeId | bgTypeId, | ||
BattlegroundBracketId | bracket_id | ||
) |
void BattlegroundMgr::SendAreaSpiritHealerQueryOpcode | ( | Player * | player, |
Battleground * | bg, | ||
ObjectGuid const & | guid | ||
) |
void BattlegroundMgr::SendBattlegroundList | ( | Player * | player, |
ObjectGuid const & | guid, | ||
BattlegroundTypeId | bgTypeId | ||
) |
void BattlegroundMgr::SendToBattleground | ( | Player * | player, |
uint32 | InstanceID, | ||
BattlegroundTypeId | bgTypeId | ||
) |
void BattlegroundMgr::SetHolidayWeekends | ( | uint32 | mask | ) |
void BattlegroundMgr::ToggleArenaTesting | ( | ) |
void BattlegroundMgr::ToggleTesting | ( | ) |
void BattlegroundMgr::Update | ( | uint32 | diff | ) |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |