AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Arena.h"
Protected Member Functions | |
Arena () | |
void | AddPlayer (Player *player) override |
void | RemovePlayer (Player *) override |
void | FillInitialWorldStates (WorldPacket &data) override |
void | UpdateArenaWorldState () |
void | HandleKillPlayer (Player *player, Player *killer) override |
Protected Member Functions inherited from Battleground | |
void | EndNow () |
void | PlayerAddedToBGCheckIfBGIsRunning (Player *player) |
void | _ProcessResurrect (uint32 diff) |
void | _ProcessProgress (uint32 diff) |
void | _ProcessLeave (uint32 diff) |
void | _ProcessJoin (uint32 diff) |
void | _CheckSafePositions (uint32 diff) |
virtual void | RemovePlayer (Player *) |
Private Member Functions | |
void | RemovePlayerAtLeave (Player *player) override |
void | CheckWinConditions () override |
void | EndBattleground (TeamId winnerTeamId) override |
|
protected |
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.
References Group::AddMember(), Battleground::AddPlayer(), Unit::CastSpell(), Group::Create(), Group::Disband(), ObjectAccessor::FindPlayer(), Player::GetBgTeamId(), ObjectGuid::GetCounter(), Player::GetGroup(), Object::GetGUID(), Group::GetMemberSlots(), Player::GetTeamId(), Battleground::PlayerScores, Battleground::SetBgRaid(), sGroupMgr, SPELL_ALLIANCE_GOLD_FLAG, SPELL_ALLIANCE_GREEN_FLAG, SPELL_HORDE_GOLD_FLAG, SPELL_HORDE_GREEN_FLAG, TEAM_ALLIANCE, TEAM_HORDE, and UpdateArenaWorldState().
|
overrideprivatevirtual |
Reimplemented from Battleground.
References EndBattleground(), Battleground::GetAlivePlayersCountByTeam(), Battleground::GetPlayersCountByTeam(), sScriptMgr, TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by HandleKillPlayer(), and RemovePlayer().
|
overrideprivatevirtual |
Reimplemented from Battleground.
References Battleground::_arenaTeamScores, ACHIEVEMENT_CRITERIA_CONDITION_NO_LOSE, ACHIEVEMENT_CRITERIA_TYPE_PLAY_ARENA, ACHIEVEMENT_CRITERIA_TYPE_WIN_ARENA, ACHIEVEMENT_CRITERIA_TYPE_WIN_RATED_ARENA, ARENA_TIMELIMIT_POINTS_LOSS, ARENA_TYPE_5v5, Battleground::ArenaLogEntries, ArenaTeamScore::Assign(), CHAR_INS_ARENA_LOG_FIGHT, CHAR_INS_ARENA_LOG_MEMBERSTATS, CharacterDatabase, Battleground::EndBattleground(), ArenaTeam::FinishGame(), Battleground::GetAlivePlayersCountByTeam(), Battleground::GetArenaMatchmakerRating(), Battleground::GetArenaTeamIdForTeam(), Battleground::GetArenaType(), Battleground::GetBgMap(), ArenaTeam::GetId(), Battleground::GetMapId(), ArenaTeam::GetName(), Battleground::GetOtherTeamId(), Battleground::GetPlayers(), ArenaTeam::GetRating(), ArenaTeam::GetSlot(), Battleground::GetStartDelayTime(), Battleground::GetStartTime(), Battleground::GetStatus(), Battleground::isRated(), LOG_DEBUG, ArenaTeam::LostAgainst(), ArenaTeam::MemberLost(), ArenaTeam::MemberWon(), ArenaTeam::NotifyStatsChanged(), Battleground::PlayerScores, PVP_TEAM_ALLIANCE, PVP_TEAM_HORDE, sArenaTeamMgr, ArenaTeam::SaveToDB(), Battleground::SetArenaMatchmakerRating(), PreparedStatementBase::SetData(), ArenaTeam::SetPreviousOpponents(), SPELL_LAST_MAN_STANDING, sScriptMgr, STATUS_IN_PROGRESS, sWorld, TEAM_ALLIANCE, TEAM_HORDE, TEAM_NEUTRAL, and ArenaTeam::WonAgainst().
Referenced by CheckWinConditions().
|
overrideprotectedvirtual |
Reimplemented from Battleground.
Reimplemented in BattlegroundBE, BattlegroundDS, BattlegroundNA, BattlegroundRL, and BattlegroundRV.
References ARENA_WORLD_STATE_ALIVE_PLAYERS_GOLD, ARENA_WORLD_STATE_ALIVE_PLAYERS_GREEN, Battleground::GetAlivePlayersCountByTeam(), TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by BattlegroundBE::FillInitialWorldStates(), BattlegroundDS::FillInitialWorldStates(), BattlegroundNA::FillInitialWorldStates(), BattlegroundRL::FillInitialWorldStates(), and BattlegroundRV::FillInitialWorldStates().
Reimplemented from Battleground.
References CheckWinConditions(), Battleground::GetStatus(), Battleground::HandleKillPlayer(), STATUS_IN_PROGRESS, and UpdateArenaWorldState().
|
overrideprotectedvirtual |
Reimplemented from Battleground.
References CheckWinConditions(), Battleground::GetStatus(), STATUS_WAIT_LEAVE, and UpdateArenaWorldState().
|
overrideprivatevirtual |
Reimplemented from Battleground.
References Battleground::GetArenaMatchmakerRating(), Battleground::GetArenaTeamIdForTeam(), Object::GetGUID(), Battleground::GetOtherTeamId(), Battleground::GetStatus(), Battleground::isRated(), Battleground::m_Players, Acore::Containers::MapGetValuePtr(), ArenaTeam::MemberLost(), Battleground::RemovePlayerAtLeave(), sArenaTeamMgr, and STATUS_IN_PROGRESS.
|
protected |
References ARENA_WORLD_STATE_ALIVE_PLAYERS_GOLD, ARENA_WORLD_STATE_ALIVE_PLAYERS_GREEN, Battleground::GetAlivePlayersCountByTeam(), TEAM_ALLIANCE, TEAM_HORDE, and Battleground::UpdateWorldState().
Referenced by AddPlayer(), HandleKillPlayer(), and RemovePlayer().