|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <BattlegroundMgr.h>
Classes | |
| struct | ScheduledQueueUpdate |
Static Public Member Functions | |
| static uint8 | BGArenaType (BattlegroundQueueTypeId bgQueueTypeId) |
| static BattlegroundQueueTypeId | BGQueueTypeId (BattlegroundTypeId bgTypeId, uint8 arenaType) |
| static BattlegroundTypeId | BGTemplateId (BattlegroundQueueTypeId bgQueueTypeId) |
| static HolidayIds | BGTypeToWeekendHolidayId (BattlegroundTypeId bgTypeId) |
| static bool | IsBGWeekend (BattlegroundTypeId bgTypeId) |
| static BattlegroundTypeId | WeekendHolidayIdToBGType (HolidayIds holiday) |
Private Types | |
| typedef std::map< BattlegroundTypeId, BattlegroundData > | BattlegroundDataContainer |
| typedef std::map< BattlegroundTypeId, uint8 > | BattlegroundSelectionWeightMap |
Private Member Functions | |
| BattlegroundMgr () | |
| bool | CreateBattleground (CreateBattlegroundData &data) |
| uint32 | CreateClientVisibleInstanceId (BattlegroundTypeId bgTypeId, BattlegroundBracketId bracket_id) |
| BattlegroundTypeId | GetRandomBG (BattlegroundTypeId id) |
| ~BattlegroundMgr () | |
Static Private Member Functions | |
| static bool | IsArenaType (BattlegroundTypeId bgTypeId) |
Friends | |
| class | Skyfire::Singleton< BattlegroundMgr, Skyfire::NullMutex > |
Definition at line 51 of file BattlegroundMgr.h.
|
private |
Definition at line 128 of file BattlegroundMgr.h.
|
private |
Definition at line 147 of file BattlegroundMgr.h.
|
private |
Definition at line 44 of file BattlegroundMgr.cpp.
References m_ArenaTesting, m_NextRatedArenaUpdate, m_Testing, and sWorld.
|
private |
Definition at line 49 of file BattlegroundMgr.cpp.
References DeleteAllBattlegrounds().
| void BattlegroundMgr::AddBattleground | ( | Battleground * | bg | ) |
Definition at line 1504 of file BattlegroundMgr.cpp.
References bgDataStore, Battleground::GetInstanceID(), and Battleground::GetTypeID().
Referenced by CreateBattleground().
| void BattlegroundMgr::AddToBGFreeSlotQueue | ( | BattlegroundTypeId | bgTypeId, |
| Battleground * | bg ) |
Definition at line 1488 of file BattlegroundMgr.cpp.
References bgDataStore.
|
static |
Definition at line 1289 of file BattlegroundMgr.cpp.
References ARENA_TYPE_2v2, ARENA_TYPE_3v3, ARENA_TYPE_5v5, BATTLEGROUND_QUEUE_2v2, BATTLEGROUND_QUEUE_3v3, and BATTLEGROUND_QUEUE_5v5.
Referenced by WorldSession::HandleBattlefieldStatusOpcode(), and Update().
|
static |
Definition at line 1209 of file BattlegroundMgr.cpp.
References ARENA_TYPE_2v2, ARENA_TYPE_3v3, ARENA_TYPE_5v5, BATTLEGROUND_AA, BATTLEGROUND_AB, BATTLEGROUND_AV, BATTLEGROUND_BE, BATTLEGROUND_BFG, BATTLEGROUND_DS, BATTLEGROUND_EY, BATTLEGROUND_IC, BATTLEGROUND_NA, BATTLEGROUND_QUEUE_2v2, BATTLEGROUND_QUEUE_3v3, BATTLEGROUND_QUEUE_5v5, BATTLEGROUND_QUEUE_AB, BATTLEGROUND_QUEUE_AV, BATTLEGROUND_QUEUE_BFG, BATTLEGROUND_QUEUE_EY, BATTLEGROUND_QUEUE_IC, BATTLEGROUND_QUEUE_NONE, BATTLEGROUND_QUEUE_RB, BATTLEGROUND_QUEUE_SA, BATTLEGROUND_QUEUE_TP, BATTLEGROUND_QUEUE_VOP, BATTLEGROUND_QUEUE_WS, BATTLEGROUND_RB, BATTLEGROUND_RL, BATTLEGROUND_RV, BATTLEGROUND_SA, BATTLEGROUND_TP, BATTLEGROUND_TV, BATTLEGROUND_VOP, and BATTLEGROUND_WS.
Referenced by Group::CanJoinBattlegroundQueue(), Battleground::EndBattleground(), BGQueueInviteEvent::Execute(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), BattlegroundQueue::InviteGroupToBG(), Battleground::PlayerAddedToBGCheckIfBGIsRunning(), BattlegroundQueue::RemovePlayer(), and Battleground::RemovePlayerAtLeave().
|
static |
Definition at line 1256 of file BattlegroundMgr.cpp.
References BATTLEGROUND_AA, BATTLEGROUND_AB, BATTLEGROUND_AV, BATTLEGROUND_BFG, BATTLEGROUND_EY, BATTLEGROUND_IC, BATTLEGROUND_QUEUE_2v2, BATTLEGROUND_QUEUE_3v3, BATTLEGROUND_QUEUE_5v5, BATTLEGROUND_QUEUE_AB, BATTLEGROUND_QUEUE_AV, BATTLEGROUND_QUEUE_BFG, BATTLEGROUND_QUEUE_EY, BATTLEGROUND_QUEUE_IC, BATTLEGROUND_QUEUE_RB, BATTLEGROUND_QUEUE_SA, BATTLEGROUND_QUEUE_TP, BATTLEGROUND_QUEUE_VOP, BATTLEGROUND_QUEUE_WS, BATTLEGROUND_RB, BATTLEGROUND_SA, BATTLEGROUND_TP, BATTLEGROUND_VOP, and BATTLEGROUND_WS.
Referenced by WorldSession::HandleBattleFieldPortOpcode(), and WorldSession::HandleBattlefieldStatusOpcode().
|
static |
Definition at line 1391 of file BattlegroundMgr.cpp.
References BATTLEGROUND_AB, BATTLEGROUND_AV, BATTLEGROUND_BFG, BATTLEGROUND_DG, BATTLEGROUND_EY, BATTLEGROUND_IC, BATTLEGROUND_SA, BATTLEGROUND_SM, BATTLEGROUND_TP, BATTLEGROUND_VOP, BATTLEGROUND_WS, HOLIDAY_CALL_TO_ARMS_AB, HOLIDAY_CALL_TO_ARMS_AV, HOLIDAY_CALL_TO_ARMS_BFG, HOLIDAY_CALL_TO_ARMS_DG, HOLIDAY_CALL_TO_ARMS_EY, HOLIDAY_CALL_TO_ARMS_IC, HOLIDAY_CALL_TO_ARMS_SA, HOLIDAY_CALL_TO_ARMS_SM, HOLIDAY_CALL_TO_ARMS_TK, HOLIDAY_CALL_TO_ARMS_TP, HOLIDAY_CALL_TO_ARMS_WS, and HOLIDAY_NONE.
Referenced by IsBGWeekend().
| void BattlegroundMgr::BuildBattlegroundListPacket | ( | WorldPacket * | data, |
| uint64 | guid, | ||
| Player * | player, | ||
| BattlegroundTypeId | bgTypeId ) |
Definition at line 1097 of file BattlegroundMgr.cpp.
References bgDataStore, ByteBuffer::bitwpos(), CONFIG_BG_REWARD_LOSER_HONOR_FIRST, CONFIG_BG_REWARD_LOSER_HONOR_LAST, CONFIG_BG_REWARD_WINNER_CONQUEST_FIRST, CONFIG_BG_REWARD_WINNER_CONQUEST_LAST, CONFIG_BG_REWARD_WINNER_HONOR_FIRST, CONFIG_BG_REWARD_WINNER_HONOR_LAST, CURRENCY_PRECISION, ByteBuffer::FlushBits(), GetBattlegroundBracketByLevel(), PvPDifficultyEntry::GetBracketId(), Unit::getLevel(), Player::GetRandomWinner(), WorldPacket::Initialize(), PvPDifficultyEntry::maxLevel, PvPDifficultyEntry::minLevel, ByteBuffer::PutBits(), SMSG_BATTLEFIELD_LIST, sWorld, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
| void BattlegroundMgr::BuildBattlegroundStatusPacket | ( | WorldPacket * | data, |
| Battleground * | bg, | ||
| Player * | player, | ||
| uint8 | queueSlot, | ||
| uint8 | statusId, | ||
| uint32 | time1, | ||
| uint32 | time2, | ||
| uint8 | arenaType ) |
Definition at line 140 of file BattlegroundMgr.cpp.
References ByteBuffer::FlushBits(), Player::GetBGTeam(), Battleground::GetClientInstanceID(), Battleground::GetGUID(), Object::GetGUID(), Battleground::GetMapId(), Battleground::GetMaxLevel(), Battleground::GetMinLevel(), GetMSTimeDiffToNow(), Battleground::GetRemainingTime(), HORDE, WorldPacket::Initialize(), Battleground::isArena(), Battleground::isRated(), SMSG_BATTLEFIELD_STATUS, SMSG_BATTLEFIELD_STATUS_ACTIVE, SMSG_BATTLEFIELD_STATUS_NEEDCONFIRMATION, SMSG_BATTLEFIELD_STATUS_QUEUED, STATUS_IN_PROGRESS, STATUS_NONE, STATUS_WAIT_JOIN, STATUS_WAIT_LEAVE, STATUS_WAIT_QUEUE, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
| void BattlegroundMgr::BuildPlayerJoinedBattlegroundPacket | ( | WorldPacket * | data, |
| uint64 | guid ) |
Definition at line 660 of file BattlegroundMgr.cpp.
References WorldPacket::Initialize(), SMSG_BATTLEGROUND_PLAYER_JOINED, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
| void BattlegroundMgr::BuildPlayerLeftBattlegroundPacket | ( | WorldPacket * | data, |
| uint64 | guid ) |
Definition at line 636 of file BattlegroundMgr.cpp.
References WorldPacket::Initialize(), SMSG_BATTLEGROUND_PLAYER_LEFT, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
| void BattlegroundMgr::BuildPlaySoundPacket | ( | WorldPacket * | data, |
| uint32 | soundId ) |
Definition at line 629 of file BattlegroundMgr.cpp.
References WorldPacket::Initialize(), SMSG_PLAY_SOUND, and ByteBuffer::WriteBits().
| void BattlegroundMgr::BuildPvpLogDataPacket | ( | WorldPacket * | data, |
| Battleground * | bg ) |
Definition at line 343 of file BattlegroundMgr.cpp.
References ALLIANCE, ByteBuffer::append(), BATTLEGROUND_AA, BATTLEGROUND_AB, BATTLEGROUND_AV, BATTLEGROUND_BE, BATTLEGROUND_BFG, BATTLEGROUND_DS, BATTLEGROUND_EY, BATTLEGROUND_IC, BATTLEGROUND_NA, BATTLEGROUND_RB, BATTLEGROUND_RL, BATTLEGROUND_RV, BATTLEGROUND_SA, BATTLEGROUND_TP, BATTLEGROUND_TV, BATTLEGROUND_VOP, BATTLEGROUND_WS, BattlegroundScore::BonusHonor, BattlegroundScore::DamageDone, BattlegroundScore::Deaths, ObjectAccessor::FindPlayer(), ByteBuffer::FlushBits(), Player::GetBGTeam(), Battleground::GetMapId(), Battleground::GetPlayerActiveSpec(), Battleground::GetPlayerScoresBegin(), Battleground::GetPlayerScoresEnd(), Battleground::GetPlayerScoresSize(), Battleground::GetPlayersCountByTeam(), Battleground::GetStatus(), Battleground::GetTypeID(), Battleground::GetWinner(), BattlegroundScore::HealingDone, BattlegroundScore::HonorableKills, HORDE, WorldPacket::Initialize(), Battleground::isArena(), Object::IsInWorld(), Battleground::IsPlayerInBattleground(), BattlegroundScore::KillingBlows, SF_LOG_ERROR, SMSG_PVP_LOG_DATA, STATUS_WAIT_LEAVE, UI64FMTD, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteByteSeq().
| void BattlegroundMgr::BuildStatusFailedPacket | ( | WorldPacket * | data, |
| Battleground * | bg, | ||
| Player * | pPlayer, | ||
| uint8 | QueueSlot, | ||
| GroupJoinBattlegroundResult | result ) |
Definition at line 557 of file BattlegroundMgr.cpp.
References Player::GetBattlegroundQueueJoinTime(), Battleground::GetGUID(), Object::GetGUID(), Battleground::GetTypeID(), WorldPacket::Initialize(), SMSG_BATTLEFIELD_STATUS_FAILED, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
| void BattlegroundMgr::BuildUpdateWorldStatePacket | ( | WorldPacket * | data, |
| uint32 | field, | ||
| uint32 | value ) |
Definition at line 621 of file BattlegroundMgr.cpp.
References WorldPacket::Initialize(), SMSG_UPDATE_WORLD_STATE, and ByteBuffer::WriteBit().
|
private |
Definition at line 897 of file BattlegroundMgr.cpp.
References AddBattleground(), ALLIANCE, BATTLEGROUND_AA, BATTLEGROUND_AB, BATTLEGROUND_AV, BATTLEGROUND_BE, BATTLEGROUND_BFG, BATTLEGROUND_DS, BATTLEGROUND_EY, BATTLEGROUND_IC, BATTLEGROUND_NA, BATTLEGROUND_RB, BATTLEGROUND_RL, BATTLEGROUND_RV, BATTLEGROUND_SA, BATTLEGROUND_TP, BATTLEGROUND_TV, BATTLEGROUND_VOP, BATTLEGROUND_WS, CreateBattlegroundData::BattlegroundName, CreateBattlegroundData::bgTypeId, HIGHGUID_BATTLEGROUND, HORDE, CreateBattlegroundData::IsArena, CreateBattlegroundData::LevelMax, CreateBattlegroundData::LevelMin, MAKE_NEW_GUID(), CreateBattlegroundData::MapID, CreateBattlegroundData::MaxPlayersPerTeam, CreateBattlegroundData::MinPlayersPerTeam, CreateBattlegroundData::scriptId, Battleground::SetArenaorBGType(), Battleground::SetGuid(), Battleground::SetInstanceID(), Battleground::SetLevelRange(), Battleground::SetMapId(), Battleground::SetMaxPlayers(), Battleground::SetMaxPlayersPerTeam(), Battleground::SetMinPlayers(), Battleground::SetMinPlayersPerTeam(), Battleground::SetName(), Battleground::SetRandom(), Battleground::SetScriptId(), Battleground::SetStartMaxDist(), Battleground::SetTeamStartLoc(), Battleground::SetTypeID(), CreateBattlegroundData::StartMaxDist, CreateBattlegroundData::Team1StartLocO, CreateBattlegroundData::Team1StartLocX, CreateBattlegroundData::Team1StartLocY, CreateBattlegroundData::Team1StartLocZ, CreateBattlegroundData::Team2StartLocO, CreateBattlegroundData::Team2StartLocX, CreateBattlegroundData::Team2StartLocY, and CreateBattlegroundData::Team2StartLocZ.
Referenced by CreateInitialBattlegrounds().
|
private |
Definition at line 750 of file BattlegroundMgr.cpp.
References bgDataStore, and IsArenaType().
Referenced by CreateNewBattleground().
| void BattlegroundMgr::CreateInitialBattlegrounds | ( | ) |
Definition at line 980 of file BattlegroundMgr.cpp.
References BATTLEGROUND_AA, BATTLEGROUND_RB, CreateBattlegroundData::BattlegroundName, CreateBattlegroundData::bgTypeId, CreateBattleground(), DISABLE_TYPE_BATTLEGROUND, Field::GetFloat(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), CreateBattlegroundData::IsArena, DisableMgr::IsDisabledFor(), CreateBattlegroundData::LevelMax, CreateBattlegroundData::LevelMin, m_ArenaSelectionWeights, m_BGSelectionWeights, CreateBattlegroundData::MapID, BattlemasterListEntry::mapid, CreateBattlegroundData::MaxPlayersPerTeam, CreateBattlegroundData::MinPlayersPerTeam, BattlemasterListEntry::name, sBattlemasterListStore, CreateBattlegroundData::scriptId, SF_LOG_ERROR, SF_LOG_INFO, sObjectMgr, CreateBattlegroundData::StartMaxDist, sWorldSafeLocsStore, CreateBattlegroundData::Team1StartLocO, CreateBattlegroundData::Team1StartLocX, CreateBattlegroundData::Team1StartLocY, CreateBattlegroundData::Team1StartLocZ, CreateBattlegroundData::Team2StartLocO, CreateBattlegroundData::Team2StartLocX, CreateBattlegroundData::Team2StartLocY, CreateBattlegroundData::Team2StartLocZ, BattlemasterListEntry::type, TYPE_ARENA, and WorldDatabase.
| Battleground * BattlegroundMgr::CreateNewBattleground | ( | BattlegroundTypeId | bgTypeId, |
| PvPDifficultyEntry const * | bracketEntry, | ||
| uint8 | arenaType, | ||
| bool | isRated ) |
Intentional fallback, "All Arenas" is random too
Definition at line 777 of file BattlegroundMgr.cpp.
References ARENA_TYPE_2v2, ARENA_TYPE_3v3, ARENA_TYPE_5v5, BATTLEGROUND_AA, BATTLEGROUND_AB, BATTLEGROUND_AV, BATTLEGROUND_BE, BATTLEGROUND_BFG, BATTLEGROUND_DS, BATTLEGROUND_EY, BATTLEGROUND_IC, BATTLEGROUND_NA, BATTLEGROUND_RB, BATTLEGROUND_RL, BATTLEGROUND_RV, BATTLEGROUND_SA, BATTLEGROUND_TP, BATTLEGROUND_TV, BATTLEGROUND_VOP, BATTLEGROUND_WS, CreateClientVisibleInstanceId(), GetBattlegroundTemplate(), PvPDifficultyEntry::GetBracketId(), GetRandomBG(), HIGHGUID_BATTLEGROUND, Battleground::isArena(), MAKE_NEW_GUID(), Battleground::Reset(), Battleground::SetArenaType(), Battleground::SetBracket(), Battleground::SetClientInstanceID(), Battleground::SetGuid(), Battleground::SetInstanceID(), Battleground::SetMaxPlayers(), Battleground::SetMaxPlayersPerTeam(), Battleground::SetRandom(), Battleground::SetRandomTypeID(), Battleground::SetRated(), Battleground::SetStatus(), Battleground::SetTypeID(), SF_LOG_ERROR, sMapMgr, and STATUS_WAIT_JOIN.
| void BattlegroundMgr::DeleteAllBattlegrounds | ( | ) |
Definition at line 54 of file BattlegroundMgr.cpp.
References bgDataStore, BattlegroundData::BGFreeSlotQueue, and BattlegroundData::m_Battlegrounds.
Referenced by ~BattlegroundMgr().
| Battleground * BattlegroundMgr::GetBattleground | ( | uint32 | InstanceID, |
| BattlegroundTypeId | bgTypeId ) |
Definition at line 708 of file BattlegroundMgr.cpp.
References BATTLEGROUND_TYPE_NONE, and bgDataStore.
Referenced by GetBattlegroundThroughClientInstance(), and SendToBattleground().
|
inline |
Definition at line 91 of file BattlegroundMgr.h.
References GetBattlegroundQueue(), and m_BattlegroundQueues.
Referenced by GetBattlegroundQueue().
| Battleground * BattlegroundMgr::GetBattlegroundTemplate | ( | BattlegroundTypeId | bgTypeId | ) |
Definition at line 739 of file BattlegroundMgr.cpp.
References bgDataStore.
Referenced by CreateNewBattleground(), GetBattlegroundThroughClientInstance(), and SetHolidayWeekends().
| Battleground * BattlegroundMgr::GetBattlegroundThroughClientInstance | ( | uint32 | instanceId, |
| BattlegroundTypeId | bgTypeId ) |
Definition at line 684 of file BattlegroundMgr.cpp.
References bgDataStore, GetBattleground(), GetBattlegroundTemplate(), and Battleground::isArena().
|
inline |
Definition at line 114 of file BattlegroundMgr.h.
References BATTLEGROUND_WS, and mBattleMastersMap.
| BGFreeSlotQueueContainer & BattlegroundMgr::GetBGFreeSlotQueueStore | ( | BattlegroundTypeId | bgTypeId | ) |
Definition at line 1483 of file BattlegroundMgr.cpp.
References bgDataStore.
| uint32 BattlegroundMgr::GetMaxRatingDifference | ( | ) | const |
Definition at line 1336 of file BattlegroundMgr.cpp.
References CONFIG_ARENA_MAX_RATING_DIFFERENCE, and sWorld.
| uint32 BattlegroundMgr::GetPrematureFinishTime | ( | ) | const |
Definition at line 1350 of file BattlegroundMgr.cpp.
References CONFIG_BATTLEGROUND_PREMATURE_FINISH_TIMER, and sWorld.
|
private |
Definition at line 1434 of file BattlegroundMgr.cpp.
References BATTLEGROUND_AA, BATTLEGROUND_RB, BATTLEGROUND_TYPE_NONE, m_ArenaSelectionWeights, and m_BGSelectionWeights.
Referenced by CreateNewBattleground().
| uint32 BattlegroundMgr::GetRatingDiscardTimer | ( | ) | const |
Definition at line 1345 of file BattlegroundMgr.cpp.
References CONFIG_ARENA_RATING_DISCARD_TIMER, and sWorld.
|
inline |
Definition at line 100 of file BattlegroundMgr.h.
References m_ArenaTesting.
|
staticprivate |
Definition at line 1198 of file BattlegroundMgr.cpp.
References BATTLEGROUND_AA, BATTLEGROUND_BE, BATTLEGROUND_DS, BATTLEGROUND_NA, BATTLEGROUND_RL, BATTLEGROUND_RV, and BATTLEGROUND_TV.
Referenced by CreateClientVisibleInstanceId().
|
static |
Definition at line 1429 of file BattlegroundMgr.cpp.
References BGTypeToWeekendHolidayId(), and IsHolidayActive().
Referenced by Battleground::EndBattleground(), and Player::SendBGWeekendWorldStates().
|
inline |
Definition at line 101 of file BattlegroundMgr.h.
References m_Testing.
| void BattlegroundMgr::LoadBattleMastersEntry | ( | ) |
Definition at line 1355 of file BattlegroundMgr.cpp.
References getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), mBattleMastersMap, sBattlemasterListStore, SF_LOG_ERROR, SF_LOG_INFO, and WorldDatabase.
| void BattlegroundMgr::RemoveBattleground | ( | BattlegroundTypeId | bgTypeId, |
| uint32 | instanceId ) |
Definition at line 1510 of file BattlegroundMgr.cpp.
References bgDataStore.
| void BattlegroundMgr::RemoveFromBGFreeSlotQueue | ( | BattlegroundTypeId | bgTypeId, |
| uint32 | instanceId ) |
Definition at line 1493 of file BattlegroundMgr.cpp.
References bgDataStore.
| void BattlegroundMgr::ScheduleQueueUpdate | ( | uint32 | arenaMatchmakerRating, |
| uint8 | arenaType, | ||
| BattlegroundQueueTypeId | bgQueueTypeId, | ||
| BattlegroundTypeId | bgTypeId, | ||
| BattlegroundBracketId | bracket_id ) |
Definition at line 1327 of file BattlegroundMgr.cpp.
References m_QueueUpdateScheduler.
| void BattlegroundMgr::SendAreaSpiritHealerQueryOpcode | ( | Player * | player, |
| Battleground * | bg, | ||
| uint64 | guid ) |
Definition at line 1181 of file BattlegroundMgr.cpp.
References Battleground::GetLastResurrectTime(), Player::GetSession(), WorldSession::SendPacket(), SMSG_AREA_SPIRIT_HEALER_TIME, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
| void BattlegroundMgr::SendToBattleground | ( | Player * | player, |
| uint32 | InstanceID, | ||
| BattlegroundTypeId | bgTypeId ) |
Definition at line 1165 of file BattlegroundMgr.cpp.
References GetBattleground(), Player::GetBGTeam(), WorldObject::GetName(), SF_LOG_DEBUG, SF_LOG_ERROR, and Player::TeleportTo().
| void BattlegroundMgr::SetHolidayWeekends | ( | uint32 | mask | ) |
Definition at line 1316 of file BattlegroundMgr.cpp.
References GetBattlegroundTemplate(), and MAX_BATTLEGROUND_TYPE_ID.
| void BattlegroundMgr::ToggleArenaTesting | ( | ) |
Definition at line 1310 of file BattlegroundMgr.cpp.
References LANG_DEBUG_ARENA_OFF, LANG_DEBUG_ARENA_ON, m_ArenaTesting, and sWorld.
| void BattlegroundMgr::ToggleTesting | ( | ) |
Definition at line 1304 of file BattlegroundMgr.cpp.
References LANG_DEBUG_BG_OFF, LANG_DEBUG_BG_ON, m_Testing, and sWorld.
| void BattlegroundMgr::Update | ( | uint32 | diff | ) |
Definition at line 72 of file BattlegroundMgr.cpp.
References BATTLEGROUND_AA, BATTLEGROUND_QUEUE_2v2, BATTLEGROUND_QUEUE_5v5, BATTLEGROUND_QUEUE_NONE, BGArenaType(), bgDataStore, CONFIG_ARENA_MAX_RATING_DIFFERENCE, CONFIG_ARENA_RATED_UPDATE_TIMER, Battleground::GetBracketId(), Battleground::GetClientInstanceID(), m_BattlegroundQueues, m_NextRatedArenaUpdate, m_QueueUpdateScheduler, MAX_BATTLEGROUND_BRACKETS, MAX_BATTLEGROUND_QUEUE_TYPES, SF_LOG_TRACE, sWorld, Battleground::ToBeDeleted(), and Battleground::Update().
|
static |
Definition at line 1410 of file BattlegroundMgr.cpp.
References BATTLEGROUND_AB, BATTLEGROUND_AV, BATTLEGROUND_BFG, BATTLEGROUND_DG, BATTLEGROUND_EY, BATTLEGROUND_IC, BATTLEGROUND_SA, BATTLEGROUND_SM, BATTLEGROUND_TP, BATTLEGROUND_TYPE_NONE, BATTLEGROUND_VOP, BATTLEGROUND_WS, HOLIDAY_CALL_TO_ARMS_AB, HOLIDAY_CALL_TO_ARMS_AV, HOLIDAY_CALL_TO_ARMS_BFG, HOLIDAY_CALL_TO_ARMS_DG, HOLIDAY_CALL_TO_ARMS_EY, HOLIDAY_CALL_TO_ARMS_IC, HOLIDAY_CALL_TO_ARMS_SA, HOLIDAY_CALL_TO_ARMS_SM, HOLIDAY_CALL_TO_ARMS_TK, HOLIDAY_CALL_TO_ARMS_TP, and HOLIDAY_CALL_TO_ARMS_WS.
Referenced by GameEventMgr::UpdateWorldStates().
|
friend |
Definition at line 48 of file BattlegroundMgr.h.
|
private |
Definition at line 129 of file BattlegroundMgr.h.
Referenced by AddBattleground(), AddToBGFreeSlotQueue(), BuildBattlegroundListPacket(), CreateClientVisibleInstanceId(), DeleteAllBattlegrounds(), GetBattleground(), GetBattlegroundTemplate(), GetBattlegroundThroughClientInstance(), GetBGFreeSlotQueueStore(), RemoveBattleground(), RemoveFromBGFreeSlotQueue(), and Update().
|
private |
Definition at line 148 of file BattlegroundMgr.h.
Referenced by CreateInitialBattlegrounds(), and GetRandomBG().
|
private |
Definition at line 152 of file BattlegroundMgr.h.
Referenced by BattlegroundMgr(), isArenaTesting(), and ToggleArenaTesting().
|
private |
Definition at line 131 of file BattlegroundMgr.h.
Referenced by GetBattlegroundQueue(), and Update().
|
private |
Definition at line 149 of file BattlegroundMgr.h.
Referenced by CreateInitialBattlegrounds(), and GetRandomBG().
|
private |
Definition at line 151 of file BattlegroundMgr.h.
Referenced by BattlegroundMgr(), and Update().
|
private |
Definition at line 150 of file BattlegroundMgr.h.
Referenced by ScheduleQueueUpdate(), and Update().
|
private |
Definition at line 153 of file BattlegroundMgr.h.
Referenced by BattlegroundMgr(), isTesting(), and ToggleTesting().
|
private |
Definition at line 154 of file BattlegroundMgr.h.
Referenced by GetBattleMasterBG(), and LoadBattleMastersEntry().