![]() |
TrinityCore
|
#include <Arena.h>
Inheritance diagram for Arena:Protected Member Functions | |
| void | AddPlayer (Player *player, BattlegroundQueueTypeId queueId) override |
| void | RemovePlayer (Player *, ObjectGuid, uint32) override |
| void | UpdateArenaWorldState () |
| void | HandleKillPlayer (Player *player, Player *killer) override |
| void | BuildPvPLogDataPacket (WorldPackets::Battleground::PVPMatchStatistics &pvpLogData) const 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 (Team team, BattlegroundPlayerMap::const_iterator itr, char const *context) const |
| virtual bool | PreUpdateImpl (uint32) |
| Pre-update hook. | |
| virtual void | PostUpdateImpl (uint32) |
| Post-update hook. | |
| void | _ProcessOfflineQueue () |
| void | _ProcessProgress (uint32 diff) |
| void | _ProcessLeave (uint32 diff) |
| void | _ProcessJoin (uint32 diff) |
| void | _CheckSafePositions (uint32 diff) |
| void | _ProcessPlayerPositionBroadcast (uint32 diff) |
Private Member Functions | |
| void | RemovePlayerAtLeave (ObjectGuid guid, bool transport, bool sendPacket) override |
| void | CheckWinConditions () override |
| void | EndBattleground (Team winner) override |
Private Attributes | |
| ArenaTeamScore | _arenaTeamScores [PVP_TEAMS_COUNT] |
Additional Inherited Members | |
Public Types inherited from Battleground | |
| typedef std::map< ObjectGuid, BattlegroundPlayer > | BattlegroundPlayerMap |
| typedef std::map< ObjectGuid, BattlegroundScore * > | BattlegroundScoreMap |
Static Public Member Functions inherited from Battleground | |
| static TeamId | GetTeamIndexByTeamId (Team team) |
Protected Attributes inherited from Battleground | |
| BattlegroundScoreMap | PlayerScores |
| BattlegroundPlayerMap | m_Players |
| uint8 | m_Events |
| BattlegroundStartTimeIntervals | StartDelayTimes [BG_STARTING_EVENT_COUNT] |
| uint32 | StartMessageIds [BG_STARTING_EVENT_COUNT] |
| int32 | m_TeamScores [PVP_TEAMS_COUNT] |
| Arena::Arena | ( | BattlegroundTemplate const * | battlegroundTemplate | ) |
Definition at line 31 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 44 of file Arena.cpp.
References Battleground::AddPlayer(), ALLIANCE, WorldObject::CastSpell(), Player::GetBGTeam(), Player::GetEffectiveTeam(), HORDE, SPELL_ALLIANCE_GOLD_FLAG, SPELL_ALLIANCE_GREEN_FLAG, SPELL_HORDE_GOLD_FLAG, SPELL_HORDE_GREEN_FLAG, and UpdateArenaWorldState().
|
overrideprotectedvirtual |
Reimplemented from Battleground.
Definition at line 92 of file Arena.cpp.
References _arenaTeamScores, Battleground::BuildPvPLogDataPacket(), Battleground::isRated(), ArenaTeamScore::PostMatchRating, ArenaTeamScore::PreMatchMMR, ArenaTeamScore::PreMatchRating, PVP_TEAMS_COUNT, and WorldPackets::Battleground::PVPMatchStatistics::Ratings.
|
overrideprivatevirtual |
Reimplemented from Battleground.
Definition at line 137 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 145 of file Arena.cpp.
References _arenaTeamScores, Battleground::_GetPlayer(), ALLIANCE, ARENA_TIMELIMIT_POINTS_LOSS, ARENA_TYPE_5v5, ArenaTeamScore::Assign(), WorldObject::CastSpell(), CONFIG_ARENA_LOG_EXTENDED_INFO, Battleground::EndBattleground(), Player::FailCriteria(), ObjectAccessor::FindConnectedPlayer(), ArenaTeam::FinishGame(), Battleground::GetAlivePlayersCountByTeam(), Battleground::GetArenaMatchmakerRating(), Player::GetArenaPersonalRating(), Battleground::GetArenaType(), Battleground::GetBgMap(), Player::GetBGTeam(), ArenaTeam::GetId(), Battleground::GetMapId(), GetOtherTeam(), Map::GetOwnerGuildId(), Battleground::GetPlayers(), ArenaTeam::GetRating(), ArenaTeam::GetSlot(), HORDE, Unit::IsAlive(), Battleground::isRated(), LoseRankedArenaMatchWithTeamSize, ArenaTeam::LostAgainst(), ArenaTeam::MemberLost(), ArenaTeam::MemberWon(), ArenaTeam::NotifyStatsChanged(), ArenaTeam::OfflineMemberLost(), ParticipateInArena, Battleground::PlayerScores, PVP_TEAM_ALLIANCE, PVP_TEAM_HORDE, ArenaTeam::SaveToDB(), Battleground::SetArenaMatchmakerRating(), sGuildMgr, SPELL_LAST_MAN_STANDING, Player::StartCriteria(), sWorld, TC_LOG_DEBUG, TEAM_OTHER, Player::UpdateCriteria(), WinAnyRankedArena, WinArena, WinRankedArenaMatchWithTeamSize, and ArenaTeam::WonAgainst().
Referenced by CheckWinConditions().
Reimplemented from Battleground.
Definition at line 81 of file Arena.cpp.
References CheckWinConditions(), Battleground::GetStatus(), Battleground::HandleKillPlayer(), STATUS_IN_PROGRESS, and UpdateArenaWorldState().
|
overrideprotectedvirtual |
Reimplemented from Battleground.
Definition at line 66 of file Arena.cpp.
References CheckWinConditions(), Battleground::GetStatus(), STATUS_WAIT_LEAVE, and UpdateArenaWorldState().
|
overrideprivatevirtual |
Reimplemented from Battleground.
Definition at line 109 of file Arena.cpp.
References Battleground::_GetPlayer(), Battleground::GetArenaMatchmakerRating(), GetOtherTeam(), Battleground::GetStatus(), Battleground::isRated(), Battleground::m_Players, ArenaTeam::MemberLost(), ArenaTeam::OfflineMemberLost(), Battleground::RemovePlayerAtLeave(), and STATUS_IN_PROGRESS.
|
protected |
Definition at line 75 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().
|
private |
Definition at line 75 of file Arena.h.
Referenced by BuildPvPLogDataPacket(), and EndBattleground().