![]() |
TrinityCore
|
#include <Battleground.h>
Inheritance diagram for Battleground:Public Types | |
| typedef std::map< ObjectGuid, BattlegroundPlayer > | BattlegroundPlayerMap |
| typedef std::map< ObjectGuid, BattlegroundScore * > | BattlegroundScoreMap |
Static Public Member Functions | |
| static TeamId | GetTeamIndexByTeamId (uint32 Team) |
Public Attributes | |
| GuidVector | BgObjects |
| GuidVector | BgCreatures |
Protected Member Functions | |
| void | EndNow () |
| void | PlayerAddedToBGCheckIfBGIsRunning (Player *player) |
| Player * | _GetPlayer (ObjectGuid guid, bool offlineRemove, char const *context) const |
| Player * | _GetPlayer (BattlegroundPlayerMap::iterator itr, char const *context) |
| Player * | _GetPlayer (BattlegroundPlayerMap::const_iterator itr, char const *context) const |
| Player * | _GetPlayerForTeam (uint32 teamId, BattlegroundPlayerMap::const_iterator itr, char const *context) const |
| void | _ProcessOfflineQueue () |
| void | _ProcessResurrect (uint32 diff) |
| void | _ProcessProgress (uint32 diff) |
| void | _ProcessLeave (uint32 diff) |
| void | _ProcessJoin (uint32 diff) |
| void | _CheckSafePositions (uint32 diff) |
| virtual void | RemovePlayer (Player *, ObjectGuid, uint32) |
Private Member Functions | |
| virtual bool | PreUpdateImpl (uint32) |
| Pre-update hook. | |
| virtual void | PostUpdateImpl (uint32) |
| Post-update hook. | |
Definition at line 248 of file Battleground.h.
| typedef std::map<ObjectGuid, BattlegroundPlayer> Battleground::BattlegroundPlayerMap |
Definition at line 342 of file Battleground.h.
| typedef std::map<ObjectGuid, BattlegroundScore*> Battleground::BattlegroundScoreMap |
Definition at line 346 of file Battleground.h.
| Battleground::Battleground | ( | ) |
Definition at line 71 of file Battleground.cpp.
References _winnerTeamId, BATTLEGROUND_TYPE_NONE, BG_BRACKET_ID_FIRST, BG_NORMAL, BG_START_DELAY_1M, BG_START_DELAY_2M, BG_START_DELAY_30S, BG_START_DELAY_NONE, BG_STARTING_EVENT_FIRST, BG_STARTING_EVENT_FOURTH, BG_STARTING_EVENT_SECOND, BG_STARTING_EVENT_THIRD, BG_TEXT_BATTLE_HAS_BEGUN, BG_TEXT_START_HALF_MINUTE, BG_TEXT_START_ONE_MINUTE, BG_TEXT_START_TWO_MINUTES, m_ArenaTeamIds, m_ArenaTeamMMR, m_ArenaType, m_BgRaids, m_BracketId, m_BuffChange, m_ClientInstanceID, m_EndTime, m_Events, m_HonorMode, m_InBGFreeSlotQueue, m_InstanceID, m_InvitedAlliance, m_InvitedHorde, m_IsArena, m_IsRandom, m_IsRated, m_LastResurrectTime, m_LevelMax, m_LevelMin, m_Map, m_MapId, m_MaxPlayers, m_MaxPlayersPerTeam, m_MinPlayers, m_MinPlayersPerTeam, m_PlayersCount, m_PrematureCountDown, m_PrematureCountDownTimer, m_RandomTypeID, m_ResetStatTimer, m_SetDeleteThis, m_StartDelayTime, m_StartMaxDist, m_StartTime, m_Status, m_TeamScores, m_TypeID, m_ValidStartPositionTimer, PVP_TEAM_NEUTRAL, ScriptId, StartDelayTimes, StartMessageIds, STATUS_NONE, TEAM_ALLIANCE, and TEAM_HORDE.
|
virtual |
Definition at line 140 of file Battleground.cpp.
References BgCreatures, BgObjects, DelCreature(), DelObject(), m_BgRaids, m_Map, PlayerScores, RemoveFromBGFreeSlotQueue(), BattlegroundMap::SetBG(), and BattlegroundMap::SetUnload().
|
inlineprotected |
Definition at line 238 of file Battleground.cpp.
References CHECK_PLAYER_POSITION_INVERVAL, ObjectAccessor::FindPlayer(), Position::GetExactDistSq(), GetMapId(), Position::GetOrientation(), GetPlayers(), Position::GetPosition(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetStartMaxDist(), GetTeamIndexByTeamId(), GetTeamStartPosition(), m_ValidStartPositionTimer, and TC_LOG_DEBUG.
Referenced by Update().
|
inlineprotected |
|
inlineprotected |
|
protected |
Definition at line 537 of file Battleground.cpp.
References ObjectAccessor::FindPlayer(), m_InstanceID, m_MapId, TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by _GetPlayerForTeam(), BroadcastWorker(), EndBattleground(), Arena::EndBattleground(), Arena::RemovePlayerAtLeave(), SendPacketToAll(), and BattlegroundDS::StartingEventOpenDoors().
|
protected |
Definition at line 551 of file Battleground.cpp.
References _GetPlayer(), and Player::GetTeam().
Referenced by CastSpellOnTeam(), PlaySoundToTeam(), RemoveAuraOnTeam(), RewardHonorToTeam(), RewardReputationToTeam(), and SendPacketToTeam().
|
inlineprotected |
Definition at line 401 of file Battleground.cpp.
References BG_STARTING_EVENT_1, BG_STARTING_EVENT_2, BG_STARTING_EVENT_3, BG_STARTING_EVENT_4, BG_STARTING_EVENT_FIRST, BG_STARTING_EVENT_FOURTH, BG_STARTING_EVENT_SECOND, BG_STARTING_EVENT_THIRD, BattlegroundMgr::BGQueueTypeId(), BattlegroundMgr::BuildBattlegroundStatusActive(), CHAT_MSG_BG_SYSTEM_NEUTRAL, CheckWinConditions(), CONFIG_BATTLEGROUND_QUEUE_ANNOUNCER_ENABLE, EndNow(), FindBgMap(), ObjectAccessor::FindPlayer(), GetArenaType(), AuraApplication::GetBase(), GetBracketId(), Aura::GetDuration(), GetMaxLevel(), GetMinLevel(), GetName(), GetPlayers(), Aura::GetSpellInfo(), GetStartDelayTime(), SpellInfo::HasAttribute(), Aura::HasEffectType(), IN_MILLISECONDS, isArena(), Aura::IsPermanent(), AuraApplication::IsPositive(), LANG_BG_STARTED_ANNOUNCE_WORLD, m_Events, m_InstanceID, m_MapId, m_ResetStatTimer, m_TypeID, ModifyStartDelayTime(), PlaySoundToAll(), SendBroadcastText(), SetStartDelayTime(), SetStatus(), SetupBattleground(), SOUND_BG_START, SPELL_ARENA_PREPARATION, SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY, SPELL_AURA_MOD_INVISIBILITY, SPELL_PREPARATION, StartDelayTimes, StartingEventCloseDoors(), StartingEventOpenDoors(), StartMessageIds, STATUS_IN_PROGRESS, sWorld, TC_LOG_ERROR, and WorldPackets::Battleground::BattlefieldStatusActive::Write().
Referenced by Update().
|
inlineprotected |
Definition at line 515 of file Battleground.cpp.
References GetRemainingTime(), m_Players, RemovePlayerAtLeave(), and SetRemainingTime().
Referenced by Update().
|
inlineprotected |
Definition at line 268 of file Battleground.cpp.
References BG_DESERTION_TYPE_OFFLINE, CHAR_INS_DESERTER_TRACK, CharacterDatabase, CONFIG_BATTLEGROUND_TRACK_DESERTERS, GameTime::GetGameTime(), GetStatus(), isBattleground(), m_OfflineQueue, m_Players, RemovePlayerAtLeave(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), STATUS_IN_PROGRESS, STATUS_WAIT_JOIN, and sWorld.
Referenced by Update().
|
inlineprotected |
Definition at line 365 of file Battleground.cpp.
References CHAT_MSG_SYSTEM, EndBattleground(), GetPrematureWinner(), IN_MILLISECONDS, LANG_BATTLEGROUND_PREMATURE_FINISH_WARNING, LANG_BATTLEGROUND_PREMATURE_FINISH_WARNING_SECS, m_PrematureCountDown, m_PrematureCountDownTimer, MINUTE, PSendMessageToAll(), and sBattlegroundMgr.
Referenced by Update().
|
inlineprotected |
Definition at line 295 of file Battleground.cpp.
References WorldObject::CastSpell(), ObjectAccessor::FindPlayer(), Map::GetCreature(), WorldObject::GetMap(), GetReviveQueueSize(), Object::IsInWorld(), m_LastResurrectTime, m_ResurrectQueue, m_ReviveQueue, RESURRECTION_INTERVAL, Player::ResurrectPlayer(), Player::SpawnCorpseBones(), SPELL_RESURRECTION_VISUAL, SPELL_SPIRIT_HEAL, and SPELL_SPIRIT_HEAL_MANA.
Referenced by Update().
|
virtual |
Definition at line 1462 of file Battleground.cpp.
References Map::AddToMap(), ASSERT, BgCreatures, Creature::Create(), FindBgMap(), Map::GenerateLowGuid(), Object::GetGUID(), m_InstanceID, m_MapId, PHASEMASK_NORMAL, Creature::SetHomePosition(), Creature::SetRespawnDelay(), sObjectMgr, Transport::SummonPassenger(), TC_LOG_ERROR, TEMPSUMMON_MANUAL_DESPAWN, and Unit.
Referenced by BattlegroundAB::_NodeOccupied(), BattlegroundAV::AddAVCreature(), AddCreature(), AddSpiritGuide(), BattlegroundSA::CaptureGraveyard(), BattlegroundIC::DestroyGate(), BattlegroundEY::EventTeamCapturedPoint(), BattlegroundIC::HandleCapturedNodes(), BattlegroundAV::PopulateNode(), BattlegroundSA::ResetObjs(), BattlegroundDS::SetupBattleground(), and BattlegroundIC::SetupBattleground().
| Creature * Battleground::AddCreature | ( | uint32 | entry, |
| uint32 | type, | ||
| Position const & | pos, | ||
| TeamId | teamId = TEAM_NEUTRAL, |
||
| uint32 | respawntime = 0, |
||
| Transport * | transport = nullptr |
||
| ) |
Definition at line 1517 of file Battleground.cpp.
References AddCreature(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), and Position::GetPositionZ().
|
virtual |
Definition at line 1308 of file Battleground.cpp.
References Map::AddToMap(), ASSERT, BgObjects, GameObject::Create(), FindBgMap(), QuaternionData::fromEulerAnglesZYX(), GetBgMap(), Object::GetGUID(), m_InstanceID, m_MapId, PHASEMASK_NORMAL, TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by AddObject(), BattlegroundSA::CaptureGraveyard(), BattlegroundIC::EventPlayerClickedOnFlag(), BattlegroundIC::HandleCapturedNodes(), BattlegroundIC::PostUpdateImpl(), BattlegroundSA::ResetObjs(), BattlegroundAB::SetupBattleground(), BattlegroundAV::SetupBattleground(), BattlegroundBE::SetupBattleground(), BattlegroundDS::SetupBattleground(), BattlegroundEY::SetupBattleground(), BattlegroundIC::SetupBattleground(), BattlegroundNA::SetupBattleground(), BattlegroundRL::SetupBattleground(), BattlegroundRV::SetupBattleground(), and BattlegroundWS::SetupBattleground().
| bool Battleground::AddObject | ( | uint32 | type, |
| uint32 | entry, | ||
| Position const & | pos, | ||
| float | rotation0, | ||
| float | rotation1, | ||
| float | rotation2, | ||
| float | rotation3, | ||
| uint32 | respawnTime = 0, |
||
| GOState | goState = GO_STATE_READY |
||
| ) |
Definition at line 1370 of file Battleground.cpp.
References AddObject(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), and Position::GetPositionZ().
Definition at line 1050 of file Battleground.cpp.
References Group::AddMember(), Group::ChangeLeader(), Group::Create(), GetBgRaid(), Object::GetGUID(), Group::GetMemberGroup(), Player::GetOriginalGroup(), Group::IsMember(), Group::SendUpdate(), Player::SetBattlegroundOrBattlefieldRaid(), SetBgRaid(), and sGroupMgr.
Referenced by AddPlayer().
|
virtual |
Reimplemented in Arena, BattlegroundAB, BattlegroundAV, BattlegroundEY, BattlegroundIC, BattlegroundSA, and BattlegroundWS.
Definition at line 994 of file Battleground.cpp.
References ACHIEVEMENT_CRITERIA_CONDITION_BG_MAP, AddOrSetPlayerToCorrectBgGroup(), WorldObject::CastSpell(), Player::DestroyConjuredItems(), Player::GetBGTeam(), Object::GetGUID(), GetMapId(), GetStatus(), WorldPackets::Battleground::BattlegroundPlayerJoined::Guid, Object::HasFlag(), isArena(), IsPlayerInBattleground(), m_Players, BattlegroundPlayer::OfflineRemoveTime, PLAYER_FLAGS, PLAYER_FLAGS_AFK, PlayerAddedToBGCheckIfBGIsRunning(), Player::RemoveArenaEnchantments(), Unit::RemoveAurasByType(), Player::ResetAchievementCriteria(), Player::ResetAllPowers(), SendPacketToTeam(), SPELL_ARENA_PREPARATION, SPELL_AURA_MOUNTED, SPELL_PREPARATION, STATUS_WAIT_JOIN, BattlegroundPlayer::Team, TEMP_ENCHANTMENT_SLOT, Player::ToggleAFK(), Player::UnsummonPetTemporaryIfAny(), UpdatePlayersCountByTeam(), and WorldPackets::Battleground::BattlegroundPlayerJoined::Write().
Referenced by Arena::AddPlayer(), BattlegroundAB::AddPlayer(), BattlegroundAV::AddPlayer(), BattlegroundEY::AddPlayer(), BattlegroundIC::AddPlayer(), BattlegroundSA::AddPlayer(), BattlegroundWS::AddPlayer(), and Player::LoadFromDB().
| void Battleground::AddPlayerToResurrectQueue | ( | ObjectGuid | npc_guid, |
| ObjectGuid | player_guid | ||
| ) |
Definition at line 1257 of file Battleground.cpp.
References WorldObject::CastSpell(), ObjectAccessor::FindPlayer(), m_ReviveQueue, and SPELL_WAITING_FOR_RESURRECT.
Referenced by WorldSession::HandleGossipHelloOpcode().
|
virtual |
Definition at line 1574 of file Battleground.cpp.
References AddCreature(), BG_CREATURE_ENTRY_A_SPIRITGUIDE, BG_CREATURE_ENTRY_H_SPIRITGUIDE, EndNow(), m_InstanceID, m_MapId, SPELL_SPIRIT_HEAL_CHANNEL, TC_LOG_ERROR, and TEAM_ALLIANCE.
Referenced by BattlegroundAB::_NodeOccupied(), AddSpiritGuide(), BattlegroundSA::CaptureGraveyard(), BattlegroundEY::EventTeamCapturedPoint(), BattlegroundIC::HandleCapturedNodes(), BattlegroundAV::PopulateNode(), BattlegroundSA::ResetObjs(), BattlegroundAV::SetupBattleground(), BattlegroundEY::SetupBattleground(), BattlegroundIC::SetupBattleground(), and BattlegroundWS::SetupBattleground().
| bool Battleground::AddSpiritGuide | ( | uint32 | type, |
| Position const & | pos, | ||
| TeamId | teamId = TEAM_NEUTRAL |
||
| ) |
Definition at line 1597 of file Battleground.cpp.
References AddSpiritGuide(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), and Position::GetPositionZ().
| void Battleground::AddToBGFreeSlotQueue | ( | ) |
Definition at line 1123 of file Battleground.cpp.
References isBattleground(), m_InBGFreeSlotQueue, m_TypeID, and sBattlegroundMgr.
Referenced by RemovePlayerAtLeave(), and StartBattleground().
| void Battleground::BlockMovement | ( | Player * | player | ) |
Definition at line 828 of file Battleground.cpp.
References Player::SetClientControl().
Referenced by EndBattleground(), and PlayerAddedToBGCheckIfBGIsRunning().
| void Battleground::BroadcastWorker | ( | Do & | _do | ) |
Definition at line 64 of file Battleground.cpp.
References _GetPlayer(), and m_Players.
Referenced by PSendMessageToAll(), SendBroadcastText(), and SendMessageToAll().
| void Battleground::BuildPvPLogDataPacket | ( | WorldPackets::Battleground::PVPMatchStatistics & | pvpLogData | ) |
Definition at line 1214 of file Battleground.cpp.
References _arenaTeamScores, WorldPackets::Battleground::PVPMatchStatistics::Arena, GetStatus(), GetWinner(), isArena(), ArenaTeamScore::MatchmakerRating, WorldPackets::Battleground::PVPMatchStatistics::Players, PlayerScores, WorldPackets::Battleground::PVPLogData_RatingData::Postmatch, WorldPackets::Battleground::PVPLogData_RatingData::Prematch, WorldPackets::Battleground::PVPLogData_RatingData::PrematchMMR, PVP_TEAMS_COUNT, ArenaTeamScore::RatingChange, WorldPackets::Battleground::PVPLogData_Arena::Ratings, STATUS_WAIT_LEAVE, ArenaTeamScore::TeamName, WorldPackets::Battleground::PVPLogData_Arena::TeamName, and WorldPackets::Battleground::PVPMatchStatistics::Winner.
Referenced by EndBattleground(), WorldSession::HandlePVPLogDataOpcode(), and PlayerAddedToBGCheckIfBGIsRunning().
Reimplemented in BattlegroundAV.
Definition at line 495 of file Battleground.h.
|
inline |
Definition at line 490 of file Battleground.h.
References BG_AWARD_ARENA_POINTS_MIN_LEVEL.
Referenced by EndBattleground().
Definition at line 628 of file Battleground.cpp.
References _GetPlayerForTeam(), and m_Players.
Referenced by BattlegroundAB::_NodeOccupied(), BattlegroundIC::HandleCapturedNodes(), BattlegroundAV::HandleKillUnit(), BattlegroundAV::PostUpdateImpl(), BattlegroundSA::PostUpdateImpl(), and BattlegroundSA::TitanRelicActivated().
|
virtual |
Reimplemented in BattlegroundAV, BattlegroundWS, BattlegroundSA, and BattlegroundAB.
Definition at line 1834 of file Battleground.cpp.
References TC_LOG_ERROR.
Referenced by BattlegroundAV::CheckAchievementCriteriaMeet(), BattlegroundWS::CheckAchievementCriteriaMeet(), BattlegroundSA::CheckAchievementCriteriaMeet(), and BattlegroundAB::CheckAchievementCriteriaMeet().
|
inlinevirtual |
Reimplemented in Arena.
Definition at line 420 of file Battleground.h.
Referenced by _ProcessJoin().
|
inline |
Definition at line 330 of file Battleground.h.
References ALLIANCE.
Referenced by RemovePlayerAtLeave().
| bool Battleground::DelCreature | ( | uint32 | type | ) |
Definition at line 1522 of file Battleground.cpp.
References BgCreatures, GetBgMap(), m_InstanceID, m_MapId, and TC_LOG_ERROR.
Referenced by BattlegroundAB::_NodeDeOccupied(), BattlegroundSA::CaptureGraveyard(), BattlegroundAV::ChangeMineOwner(), BattlegroundAV::DePopulateNode(), BattlegroundIC::EventPlayerClickedOnFlag(), BattlegroundAV::EventPlayerDestroyedPoint(), BattlegroundEY::EventTeamCapturedPoint(), BattlegroundEY::EventTeamLostPoint(), BattlegroundIC::HandleCapturedNodes(), BattlegroundIC::HandleContestedNodes(), BattlegroundAV::HandleKillUnit(), BattlegroundAV::PopulateNode(), BattlegroundAB::Reset(), BattlegroundAV::ResetBGSubclass(), BattlegroundSA::ResetObjs(), and ~Battleground().
| bool Battleground::DelObject | ( | uint32 | type | ) |
Definition at line 1540 of file Battleground.cpp.
References BgObjects, GetBgMap(), m_InstanceID, m_MapId, and TC_LOG_ERROR.
Referenced by BattlegroundSA::CaptureGraveyard(), BattlegroundIC::EventPlayerClickedOnFlag(), BattlegroundIC::HandleContestedNodes(), BattlegroundBE::PostUpdateImpl(), BattlegroundIC::PostUpdateImpl(), BattlegroundNA::PostUpdateImpl(), BattlegroundRL::PostUpdateImpl(), BattlegroundSA::ProcessEvent(), BattlegroundSA::ResetObjs(), and ~Battleground().
|
inlinevirtual |
Reimplemented in BattlegroundIC, and BattlegroundSA.
Definition at line 265 of file Battleground.h.
|
inlinevirtual |
Definition at line 444 of file Battleground.h.
| void Battleground::DoorClose | ( | uint32 | type | ) |
Definition at line 1377 of file Battleground.cpp.
References BgObjects, GetBgMap(), GO_ACTIVATED, GO_READY, GO_STATE_READY, m_InstanceID, m_MapId, and TC_LOG_ERROR.
Referenced by BattlegroundDS::PostUpdateImpl(), BattlegroundRV::PostUpdateImpl(), BattlegroundAB::StartingEventCloseDoors(), BattlegroundAV::StartingEventCloseDoors(), BattlegroundWS::StartingEventCloseDoors(), and BattlegroundRV::TogglePillarCollision().
| void Battleground::DoorOpen | ( | uint32 | type | ) |
Definition at line 1393 of file Battleground.cpp.
References BgObjects, GetBgMap(), GO_ACTIVATED, GO_STATE_ACTIVE, m_InstanceID, m_MapId, and TC_LOG_ERROR.
Referenced by BattlegroundIC::DestroyGate(), BattlegroundDS::PostUpdateImpl(), BattlegroundRV::PostUpdateImpl(), BattlegroundAB::StartingEventOpenDoors(), BattlegroundAV::StartingEventOpenDoors(), BattlegroundBE::StartingEventOpenDoors(), BattlegroundDS::StartingEventOpenDoors(), BattlegroundIC::StartingEventOpenDoors(), BattlegroundNA::StartingEventOpenDoors(), BattlegroundRL::StartingEventOpenDoors(), BattlegroundRV::StartingEventOpenDoors(), BattlegroundWS::StartingEventOpenDoors(), BattlegroundSA::StartShips(), and BattlegroundRV::TogglePillarCollision().
|
virtual |
Reimplemented in Arena, BattlegroundAB, BattlegroundAV, BattlegroundEY, BattlegroundSA, and BattlegroundWS.
Definition at line 676 of file Battleground.cpp.
References _GetPlayer(), ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_BATTLEGROUND, ACHIEVEMENT_CRITERIA_TYPE_WIN_BG, ALLIANCE, BG_TEXT_ALLIANCE_WINS, BG_TEXT_HORDE_WINS, BattlegroundMgr::BGQueueTypeId(), BlockMovement(), BattlegroundMgr::BuildBattlegroundStatusActive(), BuildPvPLogDataPacket(), CanAwardArenaPoints(), CHAR_INS_PVPSTATS_BATTLEGROUND, CHAR_INS_PVPSTATS_PLAYER, CHAR_SEL_PVPSTATS_MAXID, CharacterDatabase, CHAT_MSG_BG_SYSTEM_NEUTRAL, Unit::CombatStop(), Unit::CombatStopWithPets(), CONFIG_BATTLEGROUND_STORE_STATISTICS_ENABLE, CONFIG_BG_REWARD_LOSER_HONOR_FIRST, CONFIG_BG_REWARD_LOSER_HONOR_LAST, CONFIG_BG_REWARD_WINNER_ARENA_FIRST, CONFIG_BG_REWARD_WINNER_ARENA_LAST, CONFIG_BG_REWARD_WINNER_HONOR_FIRST, CONFIG_BG_REWARD_WINNER_HONOR_LAST, GetArenaType(), Player::GetBattlegroundQueueIndex(), GetBonusHonorFromKill(), GetBracketId(), ObjectGuid::GetCounter(), Object::GetGUID(), WorldLocation::GetMapId(), Player::GetRandomWinner(), WorldPackets::Packet::GetRawPacket(), GetTypeID(), Field::GetUInt64(), GetUniqueBracketId(), GetWinner(), Unit::HasAuraType(), HORDE, Unit::IsAlive(), isBattleground(), BattlegroundMgr::IsBGWeekend(), IsRandom(), m_Players, Player::ModifyArenaPoints(), PlayerScores, PlaySoundToAll(), PVP_TEAM_ALLIANCE, PVP_TEAM_HORDE, PVP_TEAM_NEUTRAL, Unit::RemoveAura(), Unit::RemoveAurasByType(), RemoveFromBGFreeSlotQueue(), Player::ResetAllPowers(), Player::ResurrectPlayer(), SCORE_BONUS_HONOR, SendBroadcastText(), Player::SendDirectMessage(), PreparedStatementBase::setBool(), Player::SetRandomWinner(), SetRemainingTime(), SetStatus(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), SetWinner(), SOUND_ALLIANCE_WINS, SOUND_HORDE_WINS, Player::SpawnCorpseBones(), SPELL_AURA_MOD_SHAPESHIFT, SPELL_AURA_SPIRIT_OF_REDEMPTION, SPELL_HONORABLE_DEFENDER_25Y, SPELL_HONORABLE_DEFENDER_60Y, STATUS_WAIT_LEAVE, sWorld, TIME_AUTOCLOSE_BATTLEGROUND, Player::UpdateAchievementCriteria(), UpdatePlayerScore(), WorldPackets::Battleground::PVPMatchStatistics::Write(), and WorldPackets::Battleground::BattlefieldStatusActive::Write().
Referenced by _ProcessProgress(), Arena::EndBattleground(), BattlegroundAB::EndBattleground(), BattlegroundAV::EndBattleground(), BattlegroundEY::EndBattleground(), BattlegroundSA::EndBattleground(), BattlegroundWS::EndBattleground(), BattlegroundIC::EventPlayerClickedOnFlag(), EventPlayerLoggedOut(), bg_commandscript::HandleBgStopCommand(), BattlegroundIC::HandleKillPlayer(), BattlegroundIC::HandleKillUnit(), and Update().
|
protected |
Definition at line 1627 of file Battleground.cpp.
References RemoveFromBGFreeSlotQueue(), SetRemainingTime(), SetStatus(), and STATUS_WAIT_LEAVE.
Referenced by _ProcessJoin(), and AddSpiritGuide().
|
inlinevirtual |
Reimplemented in BattlegroundWS, BattlegroundIC, BattlegroundSA, BattlegroundAB, BattlegroundAV, and BattlegroundEY.
Definition at line 438 of file Battleground.h.
Referenced by GameObject::Use().
|
inlinevirtual |
Reimplemented in BattlegroundWS, and BattlegroundEY.
Definition at line 437 of file Battleground.h.
| void Battleground::EventPlayerLoggedIn | ( | Player * | player | ) |
Definition at line 1082 of file Battleground.cpp.
References Object::GetGUID(), m_OfflineQueue, m_Players, and PlayerAddedToBGCheckIfBGIsRunning().
Referenced by Player::LoadFromDB().
| void Battleground::EventPlayerLoggedOut | ( | Player * | player | ) |
Definition at line 1101 of file Battleground.cpp.
References EndBattleground(), GetAlivePlayersCountByTeam(), Player::GetBGTeam(), GameTime::GetGameTime(), Object::GetGUID(), GetOtherTeam(), GetPlayersCountByTeam(), GetPlayerTeam(), GetStatus(), Unit::IsAlive(), isArena(), IsPlayerInBattleground(), m_OfflineQueue, m_Players, MAX_OFFLINE_TIME, RemovePlayer(), and STATUS_IN_PROGRESS.
|
inlinevirtual |
Reimplemented in Arena, BattlegroundAB, BattlegroundAV, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundIC, BattlegroundNA, BattlegroundRL, BattlegroundRV, BattlegroundSA, and BattlegroundWS.
Definition at line 379 of file Battleground.h.
Referenced by Player::SendInitWorldStates().
|
inline |
Definition at line 369 of file Battleground.h.
Referenced by _ProcessJoin(), AddCreature(), AddObject(), HandleTriggerBuff(), and SpawnBGObject().
Definition at line 1755 of file Battleground.cpp.
References ObjectAccessor::FindPlayer(), FORM_SPIRITOFREDEMPTION, Unit::GetShapeshiftForm(), Unit::IsAlive(), and m_Players.
Referenced by Arena::CheckWinConditions(), Arena::EndBattleground(), EventPlayerLoggedOut(), Arena::FillInitialWorldStates(), and Arena::UpdateArenaWorldState().
Definition at line 427 of file Battleground.h.
Referenced by Arena::EndBattleground(), and Arena::RemovePlayerAtLeave().
Definition at line 425 of file Battleground.h.
Referenced by Arena::EndBattleground().
Definition at line 424 of file Battleground.h.
Referenced by Arena::EndBattleground(), and Arena::RemovePlayerAtLeave().
|
inline |
Definition at line 293 of file Battleground.h.
Referenced by _ProcessJoin(), EndBattleground(), Arena::EndBattleground(), Player::LoadFromDB(), PlayerAddedToBGCheckIfBGIsRunning(), RemovePlayerAtLeave(), and AchievementMgr::RequirementsSatisfied().
|
inline |
Definition at line 504 of file Battleground.h.
Referenced by WorldSession::HandleRequestBattlefieldStatusOpcode().
Definition at line 1420 of file Battleground.cpp.
References BgCreatures, GetBgMap(), Map::GetCreature(), m_InstanceID, m_MapId, TC_LOG_ERROR, and TC_LOG_INFO.
Referenced by BattlegroundAB::_NodeOccupied(), BattlegroundSA::CaptureGraveyard(), BattlegroundAV::ChangeMineOwner(), BattlegroundSA::DemolisherStartState(), BattlegroundAV::EventPlayerAssaultsPoint(), BattlegroundAV::EventPlayerDefendsPoint(), BattlegroundAV::EventPlayerDestroyedPoint(), BattlegroundEY::EventTeamCapturedPoint(), BattlegroundIC::HandleCapturedNodes(), BattlegroundAV::HandleKillUnit(), BattlegroundSA::OverrideGunFaction(), BattlegroundAV::PopulateNode(), BattlegroundAV::PostUpdateImpl(), BattlegroundDS::PostUpdateImpl(), BattlegroundIC::PostUpdateImpl(), BattlegroundSA::PostUpdateImpl(), BattlegroundIC::SetupBattleground(), BattlegroundSA::TitanRelicActivated(), and BattlegroundSA::UpdateDemolisherSpawns().
|
inline |
Definition at line 368 of file Battleground.h.
References ASSERT.
Referenced by AddObject(), BattlegroundEY::CheckSomeoneJoinedPoint(), BattlegroundEY::CheckSomeoneLeftPoint(), DelCreature(), DelObject(), BattlegroundIC::DestroyGate(), DoorClose(), DoorOpen(), BattlegroundAB::EventPlayerClickedOnFlag(), GetBGCreature(), GetBGObject(), BattlegroundWS::HandleFlagRoomCapturePoint(), HandleTriggerBuff(), Player::LoadFromDB(), BattlegroundSA::PostUpdateImpl(), RemoveObjectFromWorld(), BattlegroundEY::RespawnFlagAfterDrop(), BattlegroundWS::RespawnFlagAfterDrop(), BattlegroundIC::SetupBattleground(), and BattlegroundSA::TitanRelicActivated().
| GameObject * Battleground::GetBGObject | ( | uint32 | type, |
| bool | logError = true |
||
| ) |
Definition at line 1405 of file Battleground.cpp.
References BgObjects, GetBgMap(), Map::GetGameObject(), m_InstanceID, m_MapId, TC_LOG_ERROR, and TC_LOG_INFO.
Referenced by BattlegroundIC::DestroyGate(), BattlegroundIC::EventPlayerClickedOnFlag(), BattlegroundIC::HandleCapturedNodes(), BattlegroundIC::PostUpdateImpl(), BattlegroundSA::ResetObjs(), BattlegroundSA::SendTransportInit(), BattlegroundSA::SendTransportsRemove(), BattlegroundIC::SetupBattleground(), BattlegroundIC::StartingEventOpenDoors(), BattlegroundSA::StartShips(), BattlegroundRV::TogglePillarCollision(), and BattlegroundSA::UpdateObjectInteractionFlags().
Definition at line 403 of file Battleground.h.
References ALLIANCE, TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by AddOrSetPlayerToCorrectBgGroup(), RemovePlayerAtLeave(), and Group::~Group().
Definition at line 821 of file Battleground.cpp.
References GetMaxLevel(), and Trinity::Honor::hk_honor_at_level().
Referenced by BattlegroundEY::AddPoints(), EndBattleground(), BattlegroundAB::EndBattleground(), BattlegroundAV::EndBattleground(), BattlegroundEY::EndBattleground(), BattlegroundSA::EndBattleground(), BattlegroundWS::EndBattleground(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundAV::EventPlayerDestroyedPoint(), BattlegroundAV::HandleKillUnit(), BattlegroundAB::PostUpdateImpl(), and BattlegroundSA::ProcessEvent().
|
inline |
Definition at line 276 of file Battleground.h.
Referenced by _ProcessJoin(), BattlegroundQueue::BattlegroundQueueUpdate(), EndBattleground(), Player::LoadFromDB(), PlayerAddedToBGCheckIfBGIsRunning(), RemovePlayerAtLeave(), and BattlegroundMgr::Update().
|
inline |
Definition at line 279 of file Battleground.h.
Referenced by BattlegroundMgr::BuildBattlegroundStatusHeader(), and BattlegroundMgr::Update().
|
virtual |
Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundEY, BattlegroundIC, BattlegroundSA, and BattlegroundWS.
Definition at line 1795 of file Battleground.cpp.
References WorldLocation::GetMapId(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::GetTeam(), and sObjectMgr.
Referenced by RelocateDeadPlayers().
|
inline |
Definition at line 280 of file Battleground.h.
Referenced by BattlegroundMgr::BuildBattlegroundStatusActive(), BattlegroundWS::PostUpdateImpl(), and Update().
|
inlinevirtual |
Reimplemented in BattlegroundWS, and BattlegroundEY.
Definition at line 492 of file Battleground.h.
References ObjectGuid::Empty.
Referenced by WorldSession::HandleBattlegroundPlayerPositionsOpcode().
Definition at line 1144 of file Battleground.cpp.
References ALLIANCE, BG_QUEUE_INVITATION_TYPE_NO_BALANCE, CONFIG_BATTLEGROUND_INVITATION_TYPE, GetInvitedCount(), GetMaxPlayersPerTeam(), GetMinPlayersPerTeam(), GetPlayersCountByTeam(), GetStatus(), HORDE, STATUS_IN_PROGRESS, STATUS_WAIT_JOIN, and sWorld.
Referenced by BattlegroundQueue::FillPlayersToBG().
|
inline |
Definition at line 277 of file Battleground.h.
Referenced by BattlegroundMgr::AddBattleground(), WorldSession::HandleBattleFieldPortOpcode(), BattlegroundQueue::InviteGroupToBG(), and Player::LoadFromDB().
Definition at line 334 of file Battleground.h.
References ALLIANCE.
Referenced by GetFreeSlotsForTeam(), and Update().
|
inline |
Definition at line 282 of file Battleground.h.
Referenced by BattlegroundMgr::SendAreaSpiritHealerQueryOpcode().
|
inline |
Definition at line 364 of file Battleground.h.
Referenced by _CheckSafePositions(), AddPlayer(), BattlegroundQueue::BattlegroundQueueUpdate(), BattlegroundMgr::BuildBattlegroundStatusActive(), BattlegroundMgr::BuildBattlegroundStatusNeedConfirmation(), Group::CanJoinBattlegroundQueue(), MapInstanced::CreateBattleground(), Arena::EndBattleground(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleRequestBattlefieldStatusOpcode(), RelocateDeadPlayers(), and RemovePlayerAtLeave().
|
inline |
Definition at line 287 of file Battleground.h.
Referenced by _ProcessJoin(), BattlegroundMgr::BuildBattlegroundStatusHeader(), Player::GetBGAccessByLevel(), GetBonusHonorFromKill(), and WorldSession::HandleBattleFieldPortOpcode().
|
inline |
Definition at line 283 of file Battleground.h.
Referenced by HasFreeSlots().
|
inline |
Definition at line 289 of file Battleground.h.
Referenced by BattlegroundQueue::BattlegroundQueueUpdate(), GetFreeSlotsForTeam(), and WorldSession::HandleBattlemasterJoinOpcode().
|
inline |
Definition at line 286 of file Battleground.h.
Referenced by _ProcessJoin(), BattlegroundMgr::BuildBattlegroundStatusHeader(), MapInstanced::CreateBattleground(), and GetUniqueBracketId().
|
inline |
Definition at line 284 of file Battleground.h.
|
inline |
Definition at line 290 of file Battleground.h.
Referenced by BattlegroundQueue::BattlegroundQueueUpdate(), GetFreeSlotsForTeam(), GetPrematureWinner(), WorldSession::HandleBattlemasterJoinOpcode(), and Update().
|
inline |
Definition at line 274 of file Battleground.h.
Referenced by _ProcessJoin().
| int32 Battleground::GetObjectType | ( | ObjectGuid | guid | ) |
Definition at line 1775 of file Battleground.cpp.
References BgObjects, m_InstanceID, m_MapId, TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by BattlegroundAV::EventPlayerClickedOnFlag().
Definition at line 1724 of file Battleground.cpp.
References ALLIANCE, and HORDE.
Referenced by Arena::EndBattleground(), EventPlayerLoggedOut(), and Arena::RemovePlayerAtLeave().
|
inline |
Definition at line 343 of file Battleground.h.
Referenced by _CheckSafePositions(), _ProcessJoin(), Arena::EndBattleground(), BattlegroundSA::PostUpdateImpl(), BattlegroundSA::ResetObjs(), BattlegroundDS::StartingEventOpenDoors(), BattlegroundSA::StartShips(), StartTimedAchievement(), BattlegroundSA::TeleportPlayers(), BattlegroundSA::TitanRelicActivated(), and BattlegroundRV::TogglePillarCollision().
|
inline |
Definition at line 347 of file Battleground.h.
Definition at line 410 of file Battleground.h.
Referenced by Arena::CheckWinConditions(), EventPlayerLoggedOut(), GetFreeSlotsForTeam(), GetPrematureWinner(), and Update().
|
inline |
Definition at line 344 of file Battleground.h.
Referenced by HasFreeSlots(), and Update().
| uint32 Battleground::GetPlayerTeam | ( | ObjectGuid | guid | ) | const |
Definition at line 1716 of file Battleground.cpp.
References m_Players.
Referenced by EventPlayerLoggedOut(), and RemovePlayerAtLeave().
|
virtual |
Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundEY, and BattlegroundWS.
Definition at line 354 of file Battleground.cpp.
References ALLIANCE, GetMinPlayersPerTeam(), GetPlayersCountByTeam(), and HORDE.
Referenced by _ProcessProgress(), BattlegroundAB::GetPrematureWinner(), BattlegroundAV::GetPrematureWinner(), BattlegroundEY::GetPrematureWinner(), and BattlegroundWS::GetPrematureWinner().
|
inline |
Definition at line 281 of file Battleground.h.
Referenced by _ProcessLeave(), and BattlegroundMgr::BuildBattlegroundStatusActive().
|
inline |
Definition at line 349 of file Battleground.h.
Referenced by _ProcessResurrect().
|
inline |
Definition at line 295 of file Battleground.h.
|
inline |
Definition at line 292 of file Battleground.h.
Referenced by _ProcessJoin().
|
inline |
Definition at line 375 of file Battleground.h.
Referenced by _CheckSafePositions().
|
inline |
Definition at line 278 of file Battleground.h.
Referenced by _ProcessOfflineQueue(), AddPlayer(), BattlegroundQueue::BattlegroundQueueUpdate(), BuildPvPLogDataPacket(), SpellInfo::CheckLocation(), BattlegroundAV::EventPlayerAssaultsPoint(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundIC::EventPlayerClickedOnFlag(), BattlegroundAB::EventPlayerClickedOnFlag(), BattlegroundAV::EventPlayerClickedOnFlag(), BattlegroundEY::EventPlayerClickedOnFlag(), BattlegroundAV::EventPlayerDefendsPoint(), BattlegroundWS::EventPlayerDroppedFlag(), BattlegroundEY::EventPlayerDroppedFlag(), EventPlayerLoggedOut(), BattlegroundEY::EventTeamCapturedPoint(), BattlegroundEY::EventTeamLostPoint(), BGQueueRemoveEvent::Execute(), BattlegroundAV::FillInitialWorldStates(), BattlegroundWS::FillInitialWorldStates(), BattlegroundWS::GetClosestGraveyard(), GetFreeSlotsForTeam(), BattlegroundAV::HandleAreaTrigger(), BattlegroundIC::HandleAreaTrigger(), BattlegroundWS::HandleAreaTrigger(), BattlegroundAB::HandleAreaTrigger(), BattlegroundBE::HandleAreaTrigger(), BattlegroundDS::HandleAreaTrigger(), BattlegroundEY::HandleAreaTrigger(), BattlegroundNA::HandleAreaTrigger(), BattlegroundRL::HandleAreaTrigger(), BattlegroundRV::HandleAreaTrigger(), BattlegroundSA::HandleAreaTrigger(), WorldSession::HandleBattleFieldPortOpcode(), Arena::HandleKillPlayer(), BattlegroundAV::HandleKillPlayer(), BattlegroundEY::HandleKillPlayer(), BattlegroundIC::HandleKillPlayer(), BattlegroundWS::HandleKillPlayer(), BattlegroundAV::HandleKillUnit(), BattlegroundIC::HandleKillUnit(), BattlegroundAV::HandleQuestComplete(), Player::LeaveBattleground(), Player::LoadFromDB(), PlayerAddedToBGCheckIfBGIsRunning(), BattlegroundAB::PostUpdateImpl(), BattlegroundAV::PostUpdateImpl(), BattlegroundBE::PostUpdateImpl(), BattlegroundDS::PostUpdateImpl(), BattlegroundEY::PostUpdateImpl(), BattlegroundIC::PostUpdateImpl(), BattlegroundNA::PostUpdateImpl(), BattlegroundRL::PostUpdateImpl(), BattlegroundRV::PostUpdateImpl(), BattlegroundSA::PostUpdateImpl(), BattlegroundWS::PostUpdateImpl(), Arena::RemovePlayer(), RemovePlayerAtLeave(), Arena::RemovePlayerAtLeave(), Player::ReportedAfkBy(), BattlegroundWS::RespawnFlagAfterDrop(), and Update().
Definition at line 409 of file Battleground.h.
References ALLIANCE, TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by _CheckSafePositions(), BattlegroundAB::_NodeOccupied(), BattlegroundWS::AddPoint(), BattlegroundEY::AddPoints(), BattlegroundSA::CheckAchievementCriteriaMeet(), BattlegroundAB::CheckAchievementCriteriaMeet(), BattlegroundEY::CheckSomeoneLeftPoint(), BattlegroundAV::EventPlayerAssaultsPoint(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundAB::EventPlayerClickedOnFlag(), BattlegroundAV::EventPlayerDefendsPoint(), BattlegroundAV::EventPlayerDestroyedPoint(), BattlegroundWS::EventPlayerDroppedFlag(), BattlegroundEY::EventTeamCapturedPoint(), BattlegroundAB::GetClosestGraveyard(), BattlegroundAV::GetClosestGraveyard(), BattlegroundIC::GetClosestGraveyard(), BattlegroundWS::GetDroppedFlagGUID(), BattlegroundWS::GetFlagState(), BattlegroundAV::GetPrematureWinner(), BattlegroundAV::HandleQuestComplete(), BattlegroundAV::PopulateNode(), BattlegroundEY::RemovePoint(), BattlegroundWS::RemovePoint(), BattlegroundWS::RespawnFlagAfterDrop(), BattlegroundMgr::SendToBattleground(), BattlegroundEY::SetTeamPoint(), BattlegroundWS::SetTeamPoint(), and BattlegroundAV::UpdateScore().
Definition at line 1819 of file Battleground.cpp.
References GetTypeID(), m_TeamScores, TC_LOG_ERROR, TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundEY::FillInitialWorldStates(), BattlegroundWS::FillInitialWorldStates(), BattlegroundEY::GetPrematureWinner(), BattlegroundWS::GetPrematureWinner(), AchievementCriteriaData::Meets(), BattlegroundWS::PostUpdateImpl(), BattlegroundEY::UpdateTeamScore(), and BattlegroundWS::UpdateTeamScore().
Definition at line 571 of file Battleground.cpp.
References ASSERT, StartPosition, and TEAM_NEUTRAL.
Referenced by _CheckSafePositions().
|
inline |
Definition at line 275 of file Battleground.h.
Referenced by BattlegroundMgr::AddBattleground(), BattlegroundQueue::BattlegroundQueueUpdate(), BattlegroundMgr::BuildBattlegroundStatusActive(), Group::CanJoinBattlegroundQueue(), EndBattleground(), GetTeamScore(), WorldSession::HandleBattleFieldPortOpcode(), WorldSession::HandleBattlemasterJoinArena(), BattlegroundQueue::InviteGroupToBG(), Player::LoadFromDB(), PlayerAddedToBGCheckIfBGIsRunning(), RemovePlayerAtLeave(), BattlegroundAB::Reset(), BattlegroundEY::Reset(), BattlegroundWS::Reset(), Player::SendInitWorldStates(), and GameObject::Use().
| uint8 Battleground::GetUniqueBracketId | ( | ) | const |
Definition at line 1840 of file Battleground.cpp.
References GetMinLevel().
Referenced by EndBattleground().
|
inline |
Definition at line 513 of file Battleground.h.
|
inline |
Definition at line 294 of file Battleground.h.
Referenced by BuildPvPLogDataPacket(), and EndBattleground().
Reimplemented in BattlegroundAV, BattlegroundIC, BattlegroundWS, BattlegroundAB, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundNA, BattlegroundRL, BattlegroundRV, and BattlegroundSA.
Definition at line 1828 of file Battleground.cpp.
References WorldLocation::GetMapId(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and TC_LOG_DEBUG.
Referenced by BattlegroundAV::HandleAreaTrigger(), BattlegroundWS::HandleAreaTrigger(), BattlegroundAB::HandleAreaTrigger(), BattlegroundBE::HandleAreaTrigger(), BattlegroundDS::HandleAreaTrigger(), BattlegroundEY::HandleAreaTrigger(), BattlegroundNA::HandleAreaTrigger(), BattlegroundRL::HandleAreaTrigger(), and BattlegroundRV::HandleAreaTrigger().
Reimplemented in Arena, BattlegroundAV, BattlegroundEY, BattlegroundIC, and BattlegroundWS.
Definition at line 1679 of file Battleground.cpp.
References ObjectAccessor::FindPlayer(), Player::GetTeam(), isArena(), Player::IsAtGroupRewardDistance(), m_Players, RewardXPAtKill(), SCORE_DEATHS, SCORE_HONORABLE_KILLS, SCORE_KILLING_BLOWS, Unit::SetUnitFlag(), UNIT_FLAG_SKINNABLE, and UpdatePlayerScore().
Referenced by Arena::HandleKillPlayer(), BattlegroundAV::HandleKillPlayer(), BattlegroundEY::HandleKillPlayer(), BattlegroundIC::HandleKillPlayer(), and BattlegroundWS::HandleKillPlayer().
Reimplemented in BattlegroundSA, BattlegroundAV, and BattlegroundIC.
Definition at line 434 of file Battleground.h.
|
inlinevirtual |
Reimplemented in BattlegroundIC.
Definition at line 446 of file Battleground.h.
|
inlinevirtual |
Definition at line 479 of file Battleground.h.
Referenced by WorldSession::HandleMovementOpcode().
Reimplemented in BattlegroundAV.
Definition at line 494 of file Battleground.h.
| void Battleground::HandleTriggerBuff | ( | ObjectGuid | go_guid | ) |
Definition at line 1637 of file Battleground.cpp.
References BgObjects, Buff_Entries, BUFF_RESPAWN_TIME, FindBgMap(), GAMEOBJECT_TYPE_TRAP, GetBgMap(), Object::GetEntry(), Map::GetGameObject(), GameObject::GetGoType(), GameObject::isSpawned(), m_BuffChange, m_InstanceID, m_MapId, RESPAWN_ONE_DAY, SpawnBGObject(), TC_LOG_ERROR, ObjectGuid::ToString(), and urand().
| bool Battleground::HasFreeSlots | ( | ) | const |
Definition at line 1209 of file Battleground.cpp.
References GetMaxPlayers(), and GetPlayersSize().
Referenced by BattlegroundQueue::BattlegroundQueueUpdate().
|
inline |
Definition at line 331 of file Battleground.h.
References ALLIANCE.
Referenced by BattlegroundQueue::InviteGroupToBG().
|
inlinevirtual |
Reimplemented in BattlegroundAB, BattlegroundEY, and BattlegroundIC.
Definition at line 268 of file Battleground.h.
|
inline |
Definition at line 338 of file Battleground.h.
Referenced by _ProcessJoin(), AddPlayer(), BattlegroundQueue::BattlegroundQueueUpdate(), BuildPvPLogDataPacket(), Group::CanJoinBattlegroundQueue(), Player::CanJoinToBattleground(), BattlegroundMgr::CreateNewBattleground(), EventPlayerLoggedOut(), BattlegroundMgr::GetBattlegroundThroughClientInstance(), WorldSession::HandleBattleFieldPortOpcode(), HandleKillPlayer(), WorldSession::HandlePVPLogDataOpcode(), Player::InArena(), BattlegroundQueue::InviteGroupToBG(), Unit::Mount(), RemovePlayerAtLeave(), AchievementMgr::RequirementsSatisfied(), and Update().
|
inline |
Definition at line 339 of file Battleground.h.
Referenced by _ProcessOfflineQueue(), AddToBGFreeSlotQueue(), BattlegroundQueue::BattlegroundQueueUpdate(), BattlegroundQueue::CheckNormalMatch(), EndBattleground(), BGQueueRemoveEvent::Execute(), WorldSession::HandleBattleFieldPortOpcode(), Player::LeaveBattleground(), RemovePlayerAtLeave(), and UpdatePlayerScore().
| bool Battleground::IsPlayerInBattleground | ( | ObjectGuid | guid | ) | const |
Definition at line 1729 of file Battleground.cpp.
References m_Players.
Referenced by AddPlayer(), Arena::AddPlayer(), BattlegroundAB::AddPlayer(), BattlegroundAV::AddPlayer(), BattlegroundEY::AddPlayer(), BattlegroundIC::AddPlayer(), BattlegroundSA::AddPlayer(), BattlegroundWS::AddPlayer(), EventPlayerLoggedOut(), and Player::LoadFromDB().
|
inline |
Definition at line 297 of file Battleground.h.
Referenced by BattlegroundMgr::BuildBattlegroundStatusActive(), Player::CanJoinToBattleground(), and EndBattleground().
|
inline |
Definition at line 340 of file Battleground.h.
Referenced by BattlegroundQueue::BattlegroundQueueUpdate(), BattlegroundMgr::BuildBattlegroundStatusHeader(), Arena::EndBattleground(), BattlegroundQueue::InviteGroupToBG(), and Arena::RemovePlayerAtLeave().
Reimplemented in BattlegroundIC, and BattlegroundSA.
Definition at line 496 of file Battleground.h.
|
inline |
Definition at line 320 of file Battleground.h.
Referenced by _ProcessJoin().
|
protected |
Definition at line 1737 of file Battleground.cpp.
References BattlegroundMgr::BGQueueTypeId(), BlockMovement(), BattlegroundMgr::BuildBattlegroundStatusActive(), BuildPvPLogDataPacket(), GetArenaType(), Player::GetBattlegroundQueueIndex(), GetBracketId(), GetStatus(), GetTypeID(), Player::SendDirectMessage(), STATUS_WAIT_LEAVE, WorldPackets::Battleground::PVPMatchStatistics::Write(), and WorldPackets::Battleground::BattlefieldStatusActive::Write().
Referenced by AddPlayer(), and EventPlayerLoggedIn().
| void Battleground::PlaySoundToAll | ( | uint32 | soundID | ) |
Definition at line 614 of file Battleground.cpp.
References SendPacketToAll().
Referenced by _ProcessJoin(), EndBattleground(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundAB::EventPlayerClickedOnFlag(), BattlegroundEY::EventPlayerClickedOnFlag(), BattlegroundAB::PostUpdateImpl(), BattlegroundSA::ProcessEvent(), BattlegroundEY::RespawnFlag(), BattlegroundWS::RespawnFlag(), BattlegroundWS::RespawnFlagAfterDrop(), and BattlegroundAV::UpdateScore().
Definition at line 619 of file Battleground.cpp.
References _GetPlayerForTeam(), m_Players, and WorldPackets::Misc::PlaySound::Write().
|
inlineprivatevirtual |
Post-update hook.
Will be called after battleground update has passed. May be used to implement custom update effects in subclasses.
| diff | a time difference between two worldserver update loops in milliseconds. |
Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundIC, BattlegroundNA, BattlegroundRL, BattlegroundRV, BattlegroundSA, and BattlegroundWS.
Definition at line 609 of file Battleground.h.
Referenced by Update().
|
inlineprivatevirtual |
Pre-update hook.
Will be called before battleground update is started. Depending on the result of this call actual update body may be skipped.
| diff | a time difference between two worldserver update loops in milliseconds. |
true if update must be performed, false otherwise.Definition at line 596 of file Battleground.h.
Referenced by Update().
|
inlinevirtual |
Reimplemented in BattlegroundSA.
Definition at line 441 of file Battleground.h.
Definition at line 1612 of file Battleground.cpp.
References BroadcastWorker().
Referenced by _ProcessProgress().
| void Battleground::RelocateDeadPlayers | ( | ObjectGuid | guideGuid | ) |
Relocate all players in ReviveQueue to the closest graveyard.
Definition at line 1285 of file Battleground.cpp.
References ObjectAccessor::FindPlayer(), GetClosestGraveyard(), GetMapId(), Position::GetOrientation(), WorldSafeLocsEntry::Loc, m_ReviveQueue, Player::TeleportTo(), DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by BattlegroundAB::_NodeDeOccupied(), BattlegroundAV::EventPlayerAssaultsPoint(), and BattlegroundIC::EventPlayerClickedOnFlag().
Definition at line 635 of file Battleground.cpp.
References _GetPlayerForTeam(), and m_Players.
Referenced by BattlegroundIC::HandleCapturedNodes().
| void Battleground::RemoveFromBGFreeSlotQueue | ( | ) |
Definition at line 1133 of file Battleground.cpp.
References m_InBGFreeSlotQueue, m_InstanceID, m_TypeID, and sBattlegroundMgr.
Referenced by BattlegroundQueue::BattlegroundQueueUpdate(), EndBattleground(), EndNow(), and ~Battleground().
|
inline |
Definition at line 328 of file Battleground.h.
| bool Battleground::RemoveObjectFromWorld | ( | uint32 | type | ) |
Definition at line 1558 of file Battleground.cpp.
References BgObjects, GetBgMap(), m_InstanceID, m_MapId, and TC_LOG_INFO.
Referenced by BattlegroundIC::PostUpdateImpl().
|
inlineprotectedvirtual |
Reimplemented in Arena, BattlegroundAB, BattlegroundAV, BattlegroundEY, BattlegroundIC, BattlegroundSA, and BattlegroundWS.
Definition at line 536 of file Battleground.h.
Referenced by EventPlayerLoggedOut(), and RemovePlayerAtLeave().
|
virtual |
Reimplemented in Arena.
Definition at line 834 of file Battleground.cpp.
References ACHIEVEMENT_CRITERIA_CONDITION_BG_MAP, AddToBGFreeSlotQueue(), BATTLEGROUND_AA, BATTLEGROUND_TYPE_NONE, BattlegroundQueueTypeId::BattlemasterListId, BattlegroundMgr::BGQueueTypeId(), BattlegroundMgr::BuildBattlegroundStatusNone(), Player::ClearAfkReports(), DecreaseInvitedCount(), ObjectAccessor::FindPlayer(), GetArenaType(), Player::GetBattlegroundQueueIndex(), GetBgRaid(), GetBracketId(), GetMapId(), WorldObject::GetName(), GetPlayerTeam(), GetStatus(), GetTypeID(), WorldPackets::Battleground::BattlegroundPlayerLeft::Guid, Unit::HasAuraType(), Unit::IsAlive(), isArena(), isBattleground(), m_Players, Player::OfflineResurrect(), PET_SAVE_NOT_IN_SLOT, PlayerScores, Unit::RemoveAurasByType(), Player::RemoveBattlegroundQueueId(), Player::RemovePet(), RemovePlayer(), RemovePlayerFromResurrectQueue(), Player::ResetAchievementCriteria(), Player::ResummonPetTemporaryUnSummonedIfAny(), Player::ResurrectPlayer(), sBattlegroundMgr, Player::SendDirectMessage(), SendPacketToTeam(), Player::SetBattlegroundId(), SetBgRaid(), Player::SetBGTeam(), Player::SpawnCorpseBones(), SPELL_AURA_MOD_SHAPESHIFT, SPELL_AURA_MOUNTED, SPELL_AURA_SPIRIT_OF_REDEMPTION, STATUS_WAIT_LEAVE, TC_LOG_DEBUG, Player::TeleportToBGEntryPoint(), UpdatePlayersCountByTeam(), WorldPackets::Battleground::BattlefieldStatusNone::Write(), and WorldPackets::Battleground::BattlegroundPlayerLeft::Write().
Referenced by _ProcessLeave(), _ProcessOfflineQueue(), Player::LeaveBattleground(), Player::LoadFromDB(), and Arena::RemovePlayerAtLeave().
| void Battleground::RemovePlayerFromResurrectQueue | ( | ObjectGuid | player_guid | ) |
Definition at line 1268 of file Battleground.cpp.
References ObjectAccessor::FindPlayer(), m_ReviveQueue, and SPELL_WAITING_FOR_RESURRECT.
Referenced by RemovePlayerAtLeave().
|
virtual |
Reimplemented in BattlegroundAB, BattlegroundEY, BattlegroundSA, and BattlegroundWS.
Definition at line 949 of file Battleground.cpp.
References _arenaTeamScores, m_Events, m_InBGFreeSlotQueue, m_InstanceID, m_InvitedAlliance, m_InvitedHorde, m_MapId, m_Players, PlayerScores, PVP_TEAM_NEUTRAL, PVP_TEAMS_COUNT, Reset(), ResetBGSubclass(), SetElapsedTime(), SetLastResurrectTime(), SetRemainingTime(), SetStatus(), SetWinner(), STATUS_WAIT_QUEUE, and TC_LOG_ERROR.
Referenced by BattlegroundMgr::CreateNewBattleground(), Reset(), BattlegroundAB::Reset(), BattlegroundEY::Reset(), and BattlegroundWS::Reset().
|
inlinevirtual |
Reimplemented in BattlegroundAV.
Definition at line 263 of file Battleground.h.
Referenced by Reset().
Definition at line 642 of file Battleground.cpp.
References _GetPlayerForTeam(), m_Players, SCORE_BONUS_HONOR, and UpdatePlayerScore().
Referenced by BattlegroundEY::AddPoints(), BattlegroundAB::EndBattleground(), BattlegroundAV::EndBattleground(), BattlegroundEY::EndBattleground(), BattlegroundSA::EndBattleground(), BattlegroundWS::EndBattleground(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundAV::EventPlayerDestroyedPoint(), BattlegroundAV::HandleKillUnit(), BattlegroundIC::HandleKillUnit(), BattlegroundAB::PostUpdateImpl(), and BattlegroundIC::PostUpdateImpl().
Definition at line 649 of file Battleground.cpp.
References _GetPlayerForTeam(), AddPct(), Player::GetReputationMgr(), Unit::GetTotalAuraModifier(), Unit::GetTotalAuraModifierByMiscValue(), m_Players, ReputationMgr::ModifyReputation(), sFactionStore, SPELL_AURA_MOD_FACTION_REPUTATION_GAIN, and SPELL_AURA_MOD_REPUTATION_GAIN.
Referenced by BattlegroundAV::EndBattleground(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundAV::EventPlayerDestroyedPoint(), BattlegroundAV::HandleKillUnit(), BattlegroundAV::HandleQuestComplete(), and BattlegroundAB::PostUpdateImpl().
Definition at line 1813 of file Battleground.cpp.
References CONFIG_BG_XP_FOR_KILL, Player::RewardPlayerAndGroupAtKill(), and sWorld.
Referenced by HandleKillPlayer().
| void Battleground::SendBroadcastText | ( | uint32 | id, |
| ChatMsg | msgType, | ||
| WorldObject const * | target = nullptr |
||
| ) |
Definition at line 601 of file Battleground.cpp.
References BroadcastWorker(), GENDER_MALE, sObjectMgr, and TC_LOG_ERROR.
Referenced by _ProcessJoin(), BattlegroundIC::DestroyGate(), EndBattleground(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundIC::EventPlayerClickedOnFlag(), BattlegroundAB::EventPlayerClickedOnFlag(), BattlegroundEY::EventPlayerClickedOnFlag(), BattlegroundWS::EventPlayerDroppedFlag(), BattlegroundEY::EventPlayerDroppedFlag(), BattlegroundEY::EventTeamCapturedPoint(), BattlegroundEY::EventTeamLostPoint(), BattlegroundAB::PostUpdateImpl(), BattlegroundIC::PostUpdateImpl(), BattlegroundSA::PostUpdateImpl(), BattlegroundEY::RespawnFlag(), BattlegroundWS::RespawnFlag(), BattlegroundWS::RespawnFlagAfterDrop(), BattlegroundSA::TitanRelicActivated(), and BattlegroundAV::UpdateScore().
| void Battleground::SendChatMessage | ( | Creature * | source, |
| uint8 | textId, | ||
| WorldObject * | target = nullptr |
||
| ) |
Definition at line 596 of file Battleground.cpp.
References sCreatureTextMgr.
Referenced by BattlegroundSA::CaptureGraveyard(), BattlegroundSA::PostUpdateImpl(), BattlegroundSA::ProcessEvent(), and BattlegroundSA::TitanRelicActivated().
Definition at line 1602 of file Battleground.cpp.
References BroadcastWorker().
| void Battleground::SendPacketToAll | ( | WorldPacket const * | packet | ) | const |
Definition at line 577 of file Battleground.cpp.
References _GetPlayer(), and m_Players.
Referenced by PlaySoundToAll(), and UpdateWorldState().
| void Battleground::SendPacketToTeam | ( | uint32 | TeamID, |
| WorldPacket const * | packet, | ||
| Player * | sender = nullptr, |
||
| bool | self = true |
||
| ) | const |
Definition at line 584 of file Battleground.cpp.
References _GetPlayerForTeam(), and m_Players.
Referenced by AddPlayer(), and RemovePlayerAtLeave().
Definition at line 426 of file Battleground.h.
Referenced by BattlegroundQueue::BattlegroundQueueUpdate(), and Arena::EndBattleground().
|
inline |
Definition at line 316 of file Battleground.h.
Referenced by BattlegroundMgr::CreateBattleground().
Definition at line 423 of file Battleground.h.
Referenced by BattlegroundQueue::InviteGroupToBG().
|
inline |
Definition at line 315 of file Battleground.h.
Referenced by BattlegroundMgr::CreateNewBattleground().
|
inline |
Definition at line 367 of file Battleground.h.
Referenced by MapInstanced::CreateBattleground(), and BattlegroundMap::~BattlegroundMap().
Definition at line 1785 of file Battleground.cpp.
References ALLIANCE, m_BgRaids, Group::SetBattlegroundGroup(), TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by AddOrSetPlayerToCorrectBgGroup(), RemovePlayerAtLeave(), and Group::~Group().
| void Battleground::SetBracket | ( | PvPDifficultyEntry const * | bracketEntry | ) |
Definition at line 1807 of file Battleground.cpp.
References PvPDifficultyEntry::GetBracketId(), m_BracketId, PvPDifficultyEntry::MaxLevel, PvPDifficultyEntry::MinLevel, and SetLevelRange().
Referenced by BattlegroundMgr::CreateNewBattleground().
|
inline |
Definition at line 307 of file Battleground.h.
Referenced by BattlegroundMgr::CreateNewBattleground().
|
inline |
Definition at line 487 of file Battleground.h.
|
inlinevirtual |
Reimplemented in BattlegroundWS, and BattlegroundEY.
Definition at line 493 of file Battleground.h.
|
inline |
Definition at line 308 of file Battleground.h.
References Time.
Referenced by Reset(), StartBattleground(), and Update().
| void Battleground::SetHoliday | ( | bool | is_holiday | ) |
Definition at line 1770 of file Battleground.cpp.
References BG_HOLIDAY, BG_NORMAL, and m_HonorMode.
|
inline |
Definition at line 305 of file Battleground.h.
Referenced by BattlegroundMgr::CreateBattleground(), and BattlegroundMgr::CreateNewBattleground().
|
inline |
Definition at line 310 of file Battleground.h.
References Time.
Referenced by Reset(), and StartBattleground().
Definition at line 313 of file Battleground.h.
Referenced by BattlegroundMgr::CreateBattleground(), and SetBracket().
|
inline |
Definition at line 363 of file Battleground.h.
Referenced by BattlegroundMgr::CreateBattleground().
|
inline |
Definition at line 311 of file Battleground.h.
Referenced by BattlegroundMgr::CreateBattleground(), and BattlegroundMgr::CreateNewBattleground().
|
inline |
Definition at line 323 of file Battleground.h.
Referenced by BattlegroundMgr::CreateBattleground(), and BattlegroundMgr::CreateNewBattleground().
|
inline |
Definition at line 312 of file Battleground.h.
Referenced by BattlegroundMgr::CreateBattleground().
|
inline |
Definition at line 324 of file Battleground.h.
Referenced by BattlegroundMgr::CreateBattleground().
|
inline |
Definition at line 300 of file Battleground.h.
Referenced by BattlegroundMgr::CreateBattleground().
|
inline |
Definition at line 333 of file Battleground.h.
Referenced by BattlegroundMgr::CreateBattleground(), and BattlegroundMgr::CreateNewBattleground().
|
inline |
Definition at line 302 of file Battleground.h.
Referenced by BattlegroundMgr::CreateNewBattleground().
|
inline |
Definition at line 314 of file Battleground.h.
Referenced by BattlegroundMgr::CreateNewBattleground(), and WorldSession::HandleBattlemasterJoinArena().
|
inline |
Definition at line 309 of file Battleground.h.
References Time.
Referenced by _ProcessLeave(), EndBattleground(), EndNow(), and Reset().
|
inline |
Definition at line 318 of file Battleground.h.
Referenced by BattlegroundMgr::CreateBattleground().
|
inline |
Definition at line 321 of file Battleground.h.
References Time.
Referenced by _ProcessJoin(), and bg_commandscript::HandleBgStartCommand().
|
inline |
Definition at line 374 of file Battleground.h.
Referenced by BattlegroundMgr::CreateBattleground().
|
inline |
Definition at line 306 of file Battleground.h.
Referenced by _ProcessJoin(), BattlegroundMgr::CreateNewBattleground(), EndBattleground(), EndNow(), BattlegroundSA::PostUpdateImpl(), Reset(), and BattlegroundSA::ResetObjs().
Definition at line 565 of file Battleground.cpp.
References ASSERT, StartPosition, and TEAM_NEUTRAL.
Referenced by BattlegroundMgr::CreateBattleground().
|
inline |
Definition at line 301 of file Battleground.h.
Referenced by BattlegroundMgr::CreateBattleground(), and BattlegroundMgr::CreateNewBattleground().
|
inlinevirtual |
Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundIC, BattlegroundNA, BattlegroundRL, BattlegroundRV, BattlegroundSA, and BattlegroundWS.
Definition at line 256 of file Battleground.h.
Referenced by _ProcessJoin().
|
inline |
Definition at line 514 of file Battleground.h.
Referenced by BattlegroundMgr::AddBattleground().
|
inline |
Definition at line 317 of file Battleground.h.
Referenced by EndBattleground(), and Reset().
Definition at line 1435 of file Battleground.cpp.
References BgObjects, FindBgMap(), GO_FLAG_NODESPAWN, GO_JUST_DEACTIVATED, GO_READY, and WorldObject::SendObjectDeSpawnAnim().
Referenced by BattlegroundAB::_CreateBanner(), BattlegroundAB::_DelBanner(), BattlegroundAV::EventPlayerAssaultsPoint(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundEY::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundEY::EventPlayerClickedOnFlag(), BattlegroundAV::EventPlayerDefendsPoint(), BattlegroundAV::EventPlayerDestroyedPoint(), BattlegroundEY::EventTeamCapturedPoint(), BattlegroundEY::EventTeamLostPoint(), BattlegroundAV::HandleKillUnit(), HandleTriggerBuff(), BattlegroundSA::ResetObjs(), BattlegroundEY::RespawnFlag(), BattlegroundWS::RespawnFlag(), BattlegroundWS::RespawnFlagAfterDrop(), BattlegroundAV::SetupBattleground(), BattlegroundAB::StartingEventCloseDoors(), BattlegroundBE::StartingEventCloseDoors(), BattlegroundDS::StartingEventCloseDoors(), BattlegroundEY::StartingEventCloseDoors(), BattlegroundNA::StartingEventCloseDoors(), BattlegroundRL::StartingEventCloseDoors(), BattlegroundWS::StartingEventCloseDoors(), BattlegroundAB::StartingEventOpenDoors(), BattlegroundAV::StartingEventOpenDoors(), BattlegroundBE::StartingEventOpenDoors(), BattlegroundDS::StartingEventOpenDoors(), BattlegroundEY::StartingEventOpenDoors(), BattlegroundNA::StartingEventOpenDoors(), BattlegroundRL::StartingEventOpenDoors(), BattlegroundRV::StartingEventOpenDoors(), and BattlegroundWS::StartingEventOpenDoors().
| void Battleground::StartBattleground | ( | ) |
Definition at line 978 of file Battleground.cpp.
References AddToBGFreeSlotQueue(), m_ArenaTeamIds, m_ArenaType, m_IsRated, sBattlegroundMgr, SetElapsedTime(), SetLastResurrectTime(), TC_LOG_DEBUG, TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by BattlegroundQueue::BattlegroundQueueUpdate().
|
inlinevirtual |
Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundIC, BattlegroundNA, BattlegroundRL, BattlegroundSA, and BattlegroundWS.
Definition at line 261 of file Battleground.h.
Referenced by _ProcessJoin().
|
inlinevirtual |
Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundIC, BattlegroundNA, BattlegroundRL, BattlegroundRV, BattlegroundSA, and BattlegroundWS.
Definition at line 262 of file Battleground.h.
Referenced by _ProcessJoin().
| void Battleground::StartTimedAchievement | ( | AchievementCriteriaTimedTypes | type, |
| uint32 | entry | ||
| ) |
Definition at line 1800 of file Battleground.cpp.
References ObjectAccessor::FindPlayer(), and GetPlayers().
Referenced by BattlegroundSA::PostUpdateImpl(), BattlegroundAB::StartingEventOpenDoors(), BattlegroundAV::StartingEventOpenDoors(), BattlegroundEY::StartingEventOpenDoors(), and BattlegroundWS::StartingEventOpenDoors().
|
inline |
Definition at line 486 of file Battleground.h.
Referenced by BattlegroundMgr::Update().
| void Battleground::Update | ( | uint32 | diff | ) |
Definition at line 173 of file Battleground.cpp.
References _CheckSafePositions(), _ProcessJoin(), _ProcessLeave(), _ProcessOfflineQueue(), _ProcessProgress(), _ProcessResurrect(), ALLIANCE, EndBattleground(), GetElapsedTime(), GetInvitedCount(), GetMinPlayersPerTeam(), GetPlayersCountByTeam(), GetPlayersSize(), GetStatus(), HORDE, IN_MILLISECONDS, isArena(), m_PrematureCountDown, m_ResetStatTimer, m_SetDeleteThis, MINUTE, PostUpdateImpl(), PreUpdateImpl(), sBattlegroundMgr, SetElapsedTime(), STATUS_IN_PROGRESS, STATUS_WAIT_JOIN, and STATUS_WAIT_LEAVE.
Referenced by BattlegroundMgr::Update().
|
virtual |
Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundEY, and BattlegroundWS.
Definition at line 1243 of file Battleground.cpp.
References Object::GetGUID(), isBattleground(), PlayerScores, Player::RewardHonor(), and SCORE_BONUS_HONOR.
Referenced by EndBattleground(), BattlegroundIC::EventPlayerClickedOnFlag(), HandleKillPlayer(), BattlegroundSA::HandleKillUnit(), BattlegroundSA::ProcessEvent(), RewardHonorToTeam(), BattlegroundAB::UpdatePlayerScore(), BattlegroundAV::UpdatePlayerScore(), BattlegroundEY::UpdatePlayerScore(), and BattlegroundWS::UpdatePlayerScore().
|
inline |
Definition at line 412 of file Battleground.h.
Referenced by AddPlayer(), and RemovePlayerAtLeave().
Definition at line 668 of file Battleground.cpp.
References SendPacketToAll(), WorldPackets::WorldState::UpdateWorldState::Value, WorldPackets::WorldState::UpdateWorldState::VariableID, and WorldPackets::WorldState::UpdateWorldState::Write().
Referenced by BattlegroundAB::_SendNodeUpdate(), BattlegroundSA::CaptureGraveyard(), BattlegroundIC::DestroyGate(), BattlegroundWS::EventPlayerCapturedFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundEY::EventPlayerClickedOnFlag(), BattlegroundWS::EventPlayerDroppedFlag(), BattlegroundEY::EventPlayerDroppedFlag(), BattlegroundIC::HandleKillPlayer(), BattlegroundAB::PostUpdateImpl(), BattlegroundIC::PostUpdateImpl(), BattlegroundWS::PostUpdateImpl(), BattlegroundSA::ProcessEvent(), BattlegroundSA::ResetObjs(), BattlegroundEY::RespawnFlag(), BattlegroundAV::SendMineWorldStates(), BattlegroundSA::SendTime(), BattlegroundWS::StartingEventCloseDoors(), BattlegroundAV::StartingEventOpenDoors(), BattlegroundSA::ToggleTimer(), Arena::UpdateArenaWorldState(), BattlegroundWS::UpdateFlagState(), BattlegroundAV::UpdateNodeWorldState(), BattlegroundIC::UpdateNodeWorldState(), BattlegroundEY::UpdatePointsCount(), BattlegroundEY::UpdatePointsIcons(), BattlegroundAV::UpdateScore(), BattlegroundEY::UpdateTeamScore(), and BattlegroundWS::UpdateTeamScore().
|
protected |
Definition at line 555 of file Battleground.h.
Referenced by BuildPvPLogDataPacket(), Arena::EndBattleground(), and Reset().
|
private |
Definition at line 574 of file Battleground.h.
Referenced by Battleground().
| GuidVector Battleground::BgCreatures |
Definition at line 463 of file Battleground.h.
Referenced by BattlegroundAB::_NodeDeOccupied(), BattlegroundAB::_NodeOccupied(), AddCreature(), BattlegroundAB::BattlegroundAB(), BattlegroundAV::BattlegroundAV(), BattlegroundDS::BattlegroundDS(), BattlegroundEY::BattlegroundEY(), BattlegroundIC::BattlegroundIC(), BattlegroundSA::BattlegroundSA(), BattlegroundWS::BattlegroundWS(), BattlegroundAV::ChangeMineOwner(), DelCreature(), BattlegroundSA::DemolisherStartState(), BattlegroundAV::DePopulateNode(), BattlegroundIC::DestroyGate(), BattlegroundAV::EventPlayerAssaultsPoint(), BattlegroundIC::EventPlayerClickedOnFlag(), BattlegroundAV::EventPlayerDestroyedPoint(), BattlegroundEY::EventTeamCapturedPoint(), GetBGCreature(), BattlegroundSA::OverrideGunFaction(), BattlegroundAV::PopulateNode(), BattlegroundAB::Reset(), BattlegroundAV::ResetBGSubclass(), BattlegroundSA::UpdateDemolisherSpawns(), and ~Battleground().
| GuidVector Battleground::BgObjects |
Definition at line 462 of file Battleground.h.
Referenced by AddObject(), BattlegroundAB::BattlegroundAB(), BattlegroundAV::BattlegroundAV(), BattlegroundBE::BattlegroundBE(), BattlegroundDS::BattlegroundDS(), BattlegroundEY::BattlegroundEY(), BattlegroundIC::BattlegroundIC(), BattlegroundNA::BattlegroundNA(), BattlegroundRL::BattlegroundRL(), BattlegroundRV::BattlegroundRV(), BattlegroundSA::BattlegroundSA(), BattlegroundWS::BattlegroundWS(), BattlegroundEY::CheckSomeoneJoinedPoint(), BattlegroundEY::CheckSomeoneLeftPoint(), DelObject(), DoorClose(), DoorOpen(), BattlegroundWS::EventPlayerClickedOnFlag(), BattlegroundAB::EventPlayerClickedOnFlag(), GetBGObject(), GetObjectType(), HandleTriggerBuff(), RemoveObjectFromWorld(), BattlegroundSA::SendTransportInit(), BattlegroundSA::SendTransportsRemove(), SpawnBGObject(), and ~Battleground().
|
private |
Definition at line 628 of file Battleground.h.
Referenced by Battleground(), and StartBattleground().
|
private |
Definition at line 630 of file Battleground.h.
Referenced by Battleground().
|
private |
Definition at line 570 of file Battleground.h.
Referenced by Battleground(), and StartBattleground().
|
private |
Definition at line 622 of file Battleground.h.
Referenced by Battleground(), SetBgRaid(), and ~Battleground().
|
private |
Definition at line 569 of file Battleground.h.
Referenced by Battleground(), and SetBracket().
|
protected |
Definition at line 549 of file Battleground.h.
Referenced by Battleground(), BattlegroundAB::BattlegroundAB(), BattlegroundEY::BattlegroundEY(), and HandleTriggerBuff().
|
private |
Definition at line 563 of file Battleground.h.
Referenced by Battleground().
|
private |
Definition at line 567 of file Battleground.h.
Referenced by Battleground().
|
protected |
Definition at line 544 of file Battleground.h.
Referenced by _ProcessJoin(), Battleground(), and Reset().
|
protected |
Definition at line 552 of file Battleground.h.
Referenced by Battleground(), BattlegroundWS::EventPlayerCapturedFlag(), and SetHoliday().
|
private |
Definition at line 571 of file Battleground.h.
Referenced by AddToBGFreeSlotQueue(), Battleground(), RemoveFromBGFreeSlotQueue(), and Reset().
|
private |
Definition at line 561 of file Battleground.h.
Referenced by _GetPlayer(), _ProcessJoin(), AddCreature(), AddObject(), AddSpiritGuide(), Battleground(), DelCreature(), DelObject(), DoorClose(), DoorOpen(), GetBGCreature(), GetBGObject(), GetObjectType(), HandleTriggerBuff(), RemoveFromBGFreeSlotQueue(), RemoveObjectFromWorld(), and Reset().
|
private |
Definition at line 618 of file Battleground.h.
Referenced by Battleground(), and Reset().
|
private |
Definition at line 619 of file Battleground.h.
Referenced by Battleground(), and Reset().
|
private |
Definition at line 573 of file Battleground.h.
Referenced by Battleground().
|
protected |
Definition at line 550 of file Battleground.h.
Referenced by Battleground().
|
private |
Definition at line 576 of file Battleground.h.
Referenced by Battleground(), and StartBattleground().
|
private |
Definition at line 568 of file Battleground.h.
Referenced by _ProcessResurrect(), and Battleground().
|
private |
Definition at line 634 of file Battleground.h.
Referenced by Battleground().
|
private |
Definition at line 633 of file Battleground.h.
Referenced by Battleground().
|
private |
Definition at line 642 of file Battleground.h.
Referenced by Battleground(), and ~Battleground().
|
private |
Definition at line 641 of file Battleground.h.
Referenced by _GetPlayer(), _ProcessJoin(), AddCreature(), AddObject(), AddSpiritGuide(), Battleground(), DelCreature(), DelObject(), DoorClose(), DoorOpen(), GetBGCreature(), GetBGObject(), GetObjectType(), HandleTriggerBuff(), RemoveObjectFromWorld(), and Reset().
|
private |
Definition at line 636 of file Battleground.h.
Referenced by Battleground().
|
private |
Definition at line 635 of file Battleground.h.
Referenced by Battleground().
|
private |
Definition at line 638 of file Battleground.h.
Referenced by Battleground().
|
private |
Definition at line 637 of file Battleground.h.
Referenced by Battleground().
|
private |
Definition at line 579 of file Battleground.h.
|
private |
Definition at line 613 of file Battleground.h.
Referenced by _ProcessOfflineQueue(), EventPlayerLoggedIn(), and EventPlayerLoggedOut().
|
protected |
Definition at line 539 of file Battleground.h.
Referenced by _ProcessLeave(), _ProcessOfflineQueue(), AddPlayer(), BroadcastWorker(), CastSpellOnTeam(), EndBattleground(), EventPlayerLoggedIn(), EventPlayerLoggedOut(), GetAlivePlayersCountByTeam(), GetPlayerTeam(), HandleKillPlayer(), IsPlayerInBattleground(), PlaySoundToTeam(), RemoveAuraOnTeam(), RemovePlayerAtLeave(), Arena::RemovePlayerAtLeave(), Reset(), RewardHonorToTeam(), RewardReputationToTeam(), SendPacketToAll(), and SendPacketToTeam().
|
private |
Definition at line 625 of file Battleground.h.
Referenced by Battleground().
|
private |
Definition at line 577 of file Battleground.h.
Referenced by _ProcessProgress(), Battleground(), and Update().
|
private |
Definition at line 578 of file Battleground.h.
Referenced by _ProcessProgress(), and Battleground().
|
private |
Definition at line 560 of file Battleground.h.
Referenced by Battleground().
|
private |
Definition at line 565 of file Battleground.h.
Referenced by _ProcessJoin(), Battleground(), and Update().
|
private |
Definition at line 612 of file Battleground.h.
Referenced by _ProcessResurrect().
|
protected |
Definition at line 541 of file Battleground.h.
Referenced by _ProcessResurrect(), AddPlayerToResurrectQueue(), RelocateDeadPlayers(), and RemovePlayerFromResurrectQueue().
|
private |
Definition at line 572 of file Battleground.h.
Referenced by Battleground(), and Update().
|
private |
Definition at line 575 of file Battleground.h.
Referenced by Battleground().
|
private |
Definition at line 644 of file Battleground.h.
Referenced by Battleground().
|
private |
Definition at line 564 of file Battleground.h.
Referenced by Battleground().
|
private |
Definition at line 562 of file Battleground.h.
Referenced by Battleground().
|
protected |
Definition at line 553 of file Battleground.h.
Referenced by BattlegroundWS::AddPoint(), BattlegroundEY::AddPoints(), Battleground(), BattlegroundAB::FillInitialWorldStates(), GetTeamScore(), BattlegroundAB::PostUpdateImpl(), BattlegroundEY::RemovePoint(), BattlegroundWS::RemovePoint(), BattlegroundAB::Reset(), BattlegroundEY::Reset(), BattlegroundWS::Reset(), BattlegroundEY::SetTeamPoint(), and BattlegroundWS::SetTeamPoint().
|
private |
Definition at line 559 of file Battleground.h.
Referenced by _ProcessJoin(), AddToBGFreeSlotQueue(), Battleground(), and RemoveFromBGFreeSlotQueue().
|
private |
Definition at line 566 of file Battleground.h.
Referenced by _CheckSafePositions(), and Battleground().
|
private |
Definition at line 647 of file Battleground.h.
|
protected |
Definition at line 534 of file Battleground.h.
Referenced by Arena::AddPlayer(), BattlegroundAB::AddPlayer(), BattlegroundAV::AddPlayer(), BattlegroundEY::AddPlayer(), BattlegroundIC::AddPlayer(), BattlegroundSA::AddPlayer(), BattlegroundWS::AddPlayer(), BuildPvPLogDataPacket(), EndBattleground(), Arena::EndBattleground(), RemovePlayerAtLeave(), Reset(), UpdatePlayerScore(), and ~Battleground().
|
private |
Definition at line 645 of file Battleground.h.
Referenced by Battleground().
|
protected |
Definition at line 545 of file Battleground.h.
Referenced by _ProcessJoin(), Arena::Arena(), and Battleground().
|
protected |
Definition at line 547 of file Battleground.h.
Referenced by _ProcessJoin(), Arena::Arena(), Battleground(), BattlegroundAV::BattlegroundAV(), BattlegroundSA::BattlegroundSA(), and BattlegroundWS::BattlegroundWS().
|
private |
Definition at line 643 of file Battleground.h.
Referenced by GetTeamStartPosition(), and SetTeamStartPosition().