![]() |
TrinityCore
|
#include <Arena.h>
Inheritance diagram for Arena:Protected Member Functions | |
| Arena () | |
| void | AddPlayer (Player *player) override |
| void | RemovePlayer (Player *, ObjectGuid, uint32) override |
| void | FillInitialWorldStates (WorldPackets::WorldState::InitWorldStates &packet) override |
| void | UpdateArenaWorldState () |
| void | HandleKillPlayer (Player *player, Player *killer) override |
Protected Member Functions inherited from Battleground | |
| 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) |
Private Member Functions | |
| void | RemovePlayerAtLeave (ObjectGuid guid, bool transport, bool sendPacket) override |
| void | CheckWinConditions () override |
| void | EndBattleground (uint32 winner) override |
|
protected |
Definition at line 45 of file Arena.cpp.
References ARENA_TEXT_START_BATTLE_HAS_BEGUN, ARENA_TEXT_START_FIFTEEN_SECONDS, ARENA_TEXT_START_ONE_MINUTE, ARENA_TEXT_START_THIRTY_SECONDS, BG_START_DELAY_15S, BG_START_DELAY_1M, BG_START_DELAY_30S, BG_START_DELAY_NONE, BG_STARTING_EVENT_FIRST, BG_STARTING_EVENT_FOURTH, BG_STARTING_EVENT_SECOND, BG_STARTING_EVENT_THIRD, Battleground::StartDelayTimes, and Battleground::StartMessageIds.
|
overrideprotectedvirtual |
Reimplemented from Battleground.
Definition at line 58 of file Arena.cpp.
References Battleground::AddPlayer(), ALLIANCE, WorldObject::CastSpell(), Player::GetBGTeam(), Object::GetGUID(), Player::GetTeam(), HORDE, Battleground::IsPlayerInBattleground(), Battleground::PlayerScores, SPELL_ALLIANCE_GOLD_FLAG, SPELL_ALLIANCE_GREEN_FLAG, SPELL_HORDE_GOLD_FLAG, SPELL_HORDE_GREEN_FLAG, and UpdateArenaWorldState().
|
overrideprivatevirtual |
Reimplemented from Battleground.
Definition at line 143 of file Arena.cpp.
References ALLIANCE, EndBattleground(), Battleground::GetAlivePlayersCountByTeam(), Battleground::GetPlayersCountByTeam(), and HORDE.
Referenced by HandleKillPlayer(), and RemovePlayer().
|
overrideprivatevirtual |
Reimplemented from Battleground.
Definition at line 151 of file Arena.cpp.
References Battleground::_arenaTeamScores, Battleground::_GetPlayer(), ACHIEVEMENT_CRITERIA_CONDITION_NO_LOSE, ACHIEVEMENT_CRITERIA_TYPE_WIN_ARENA, ACHIEVEMENT_CRITERIA_TYPE_WIN_RATED_ARENA, ALLIANCE, ARENA_TIMELIMIT_POINTS_LOSS, ARENA_TYPE_5v5, ArenaTeamScore::Assign(), WorldObject::CastSpell(), CONFIG_ARENA_LOG_EXTENDED_INFO, Battleground::EndBattleground(), ObjectAccessor::FindConnectedPlayer(), ArenaTeam::FinishGame(), Battleground::GetAlivePlayersCountByTeam(), Battleground::GetArenaMatchmakerRating(), Player::GetArenaPersonalRating(), Battleground::GetArenaTeamIdByIndex(), Battleground::GetArenaTeamIdForTeam(), Battleground::GetArenaType(), ArenaTeam::GetId(), Battleground::GetMapId(), ArenaTeam::GetName(), Battleground::GetOtherTeam(), Battleground::GetPlayers(), ArenaTeam::GetRating(), ArenaTeam::GetSlot(), HORDE, Unit::IsAlive(), Battleground::isRated(), ArenaTeam::LostAgainst(), ArenaTeam::MemberLost(), ArenaTeam::MemberWon(), ArenaTeam::NotifyStatsChanged(), ArenaTeam::OfflineMemberLost(), Battleground::PlayerScores, PVP_TEAM_ALLIANCE, PVP_TEAM_HORDE, Player::ResetAchievementCriteria(), sArenaTeamMgr, ArenaTeam::SaveToDB(), Battleground::SetArenaMatchmakerRating(), ArenaTeam::SetPreviousOpponents(), SPELL_LAST_MAN_STANDING, sWorld, TC_LOG_DEBUG, TEAM_ALLIANCE, TEAM_HORDE, Player::UpdateAchievementCriteria(), and ArenaTeam::WonAgainst().
Referenced by CheckWinConditions().
|
overrideprotectedvirtual |
Reimplemented from Battleground.
Reimplemented in BattlegroundBE, BattlegroundDS, BattlegroundNA, BattlegroundRL, and BattlegroundRV.
Definition at line 92 of file Arena.cpp.
References ALLIANCE, ARENA_WORLD_STATE_ALIVE_PLAYERS_GOLD, ARENA_WORLD_STATE_ALIVE_PLAYERS_GREEN, Battleground::GetAlivePlayersCountByTeam(), HORDE, and WorldPackets::WorldState::InitWorldStates::Worldstates.
Referenced by BattlegroundBE::FillInitialWorldStates(), BattlegroundDS::FillInitialWorldStates(), BattlegroundNA::FillInitialWorldStates(), BattlegroundRL::FillInitialWorldStates(), and BattlegroundRV::FillInitialWorldStates().
Reimplemented from Battleground.
Definition at line 104 of file Arena.cpp.
References CheckWinConditions(), Battleground::GetStatus(), Battleground::HandleKillPlayer(), STATUS_IN_PROGRESS, and UpdateArenaWorldState().
|
overrideprotectedvirtual |
Reimplemented from Battleground.
Definition at line 83 of file Arena.cpp.
References CheckWinConditions(), Battleground::GetStatus(), STATUS_WAIT_LEAVE, and UpdateArenaWorldState().
|
overrideprivatevirtual |
Reimplemented from Battleground.
Definition at line 115 of file Arena.cpp.
References Battleground::_GetPlayer(), Battleground::GetArenaMatchmakerRating(), Battleground::GetArenaTeamIdForTeam(), Battleground::GetOtherTeam(), Battleground::GetStatus(), Battleground::isRated(), Battleground::m_Players, ArenaTeam::MemberLost(), ArenaTeam::OfflineMemberLost(), Battleground::RemovePlayerAtLeave(), sArenaTeamMgr, and STATUS_IN_PROGRESS.
|
protected |
Definition at line 98 of file Arena.cpp.
References ALLIANCE, ARENA_WORLD_STATE_ALIVE_PLAYERS_GOLD, ARENA_WORLD_STATE_ALIVE_PLAYERS_GREEN, Battleground::GetAlivePlayersCountByTeam(), HORDE, and Battleground::UpdateWorldState().
Referenced by AddPlayer(), HandleKillPlayer(), and RemovePlayer().