![]() |
TrinityCore
|
#include <BattlegroundEY.h>
Inheritance diagram for BattlegroundEY:Private Member Functions | |
| void | PostUpdateImpl (uint32 diff) override |
| Post-update hook. | |
| void | EventPlayerCapturedFlag (Player *Source, uint32 BgObjectType) |
| void | EventTeamCapturedPoint (Player *Source, uint32 Point) |
| void | EventTeamLostPoint (Player *Source, uint32 Point) |
| void | UpdatePointsCount (uint32 Team) |
| void | UpdatePointsIcons (uint32 Team, uint32 Point) |
| void | CheckSomeoneLeftPoint () |
| void | CheckSomeoneJoinedPoint () |
| void | UpdatePointStatuses () |
| void | AddPoints (uint32 Team, uint32 Points) |
| void | RemovePoint (uint32 TeamID, uint32 Points=1) |
| void | SetTeamPoint (uint32 TeamID, uint32 Points=0) |
Definition at line 380 of file BattlegroundEY.h.
| BattlegroundEY::BattlegroundEY | ( | ) |
Definition at line 44 of file BattlegroundEY.cpp.
References BG_EY_CREATURES_MAX, BG_EY_FLAG_STATE_ON_BASE, BG_EY_OBJECT_MAX, BG_EY_PROGRESS_BAR_STATE_MIDDLE, Battleground::BgCreatures, Battleground::BgObjects, BLOOD_ELF, ObjectGuid::Clear(), DRAENEI_RUINS, EY_POINT_NO_OWNER, EY_POINT_STATE_UNCONTROLLED, EY_POINTS_MAX, FEL_REAVER, Battleground::m_BuffChange, m_CurrentPointPlayersCount, m_DroppedFlagGUID, m_FlagCapturedBgObjectType, m_FlagKeeper, m_FlagState, m_FlagsTimer, m_HonorScoreTics, m_HonorTics, m_PointAddingTimer, m_PointBarStatus, m_PointOwnedByTeam, m_Points_Trigger, m_PointState, m_TeamPointsCount, m_TowerCapCheckTimer, MAGE_TOWER, TEAM_ALLIANCE, TEAM_HORDE, TR_BLOOD_ELF_BUFF, TR_DRAENEI_RUINS_BUFF, TR_FEL_REAVER_BUFF, and TR_MAGE_TOWER_BUFF.
| BattlegroundEY::~BattlegroundEY | ( | ) |
Definition at line 77 of file BattlegroundEY.cpp.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 358 of file BattlegroundEY.cpp.
References Battleground::AddPlayer(), EY_POINTS_MAX, Object::GetGUID(), Battleground::IsPlayerInBattleground(), m_PlayersNearPoint, and Battleground::PlayerScores.
Definition at line 150 of file BattlegroundEY.cpp.
References Battleground::GetBonusHonorFromKill(), Battleground::GetTeamIndexByTeamId(), m_HonorScoreTics, m_HonorTics, Battleground::m_TeamScores, Battleground::RewardHonorToTeam(), and UpdateTeamScore().
Referenced by EventPlayerCapturedFlag(), and PostUpdateImpl().
|
private |
Definition at line 163 of file BattlegroundEY.cpp.
References BG_EY_OBJECT_TOWER_CAP_FEL_REAVER, BG_EY_POINT_RADIUS, BG_EY_PROGRESS_BAR_PERCENT_GREY, BG_EY_PROGRESS_BAR_SHOW, Battleground::BgObjects, Player::CanCaptureTowerPoint(), EY_POINTS_MAX, ObjectAccessor::FindPlayer(), Battleground::GetBgMap(), Map::GetGameObject(), WorldObject::IsWithinDistInMap(), m_PlayersNearPoint, m_PointBarStatus, PROGRESS_BAR_PERCENT_GREY, PROGRESS_BAR_SHOW, PROGRESS_BAR_STATUS, Player::SendUpdateWorldState(), and TC_LOG_ERROR.
Referenced by PostUpdateImpl().
|
private |
Definition at line 201 of file BattlegroundEY.cpp.
References BG_EY_OBJECT_TOWER_CAP_FEL_REAVER, BG_EY_POINT_RADIUS, BG_EY_PROGRESS_BAR_DONT_SHOW, Battleground::BgObjects, Player::CanCaptureTowerPoint(), EY_POINTS_MAX, ObjectAccessor::FindPlayer(), Battleground::GetBgMap(), Map::GetGameObject(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), WorldObject::IsWithinDistInMap(), m_CurrentPointPlayersCount, m_PlayersNearPoint, PROGRESS_BAR_SHOW, Player::SendUpdateWorldState(), and TC_LOG_ERROR.
Referenced by PostUpdateImpl().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 315 of file BattlegroundEY.cpp.
References ALLIANCE, Battleground::EndBattleground(), Battleground::GetBonusHonorFromKill(), HORDE, and Battleground::RewardHonorToTeam().
Referenced by UpdateTeamScore().
Definition at line 785 of file BattlegroundEY.cpp.
References AddPoints(), ALLIANCE, AURA_INTERRUPT_FLAG_ENTER_PVP_COMBAT, BG_EY_FLAG_RESPAWN_TIME, BG_EY_FLAG_STATE_WAIT_RESPAWN, BG_EY_FlagPoints, BG_EY_NETHERSTORM_FLAG_SPELL, BG_EY_SOUND_FLAG_CAPTURED_ALLIANCE, BG_EY_SOUND_FLAG_CAPTURED_HORDE, BG_EY_TEXT_ALLIANCE_CAPTURED_FLAG, BG_EY_TEXT_HORDE_CAPTURED_FLAG, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, ObjectGuid::Empty, GetFlagPickerGUID(), Object::GetGUID(), Battleground::GetStatus(), Player::GetTeam(), m_FlagCapturedBgObjectType, m_FlagState, m_FlagsTimer, m_TeamPointsCount, Battleground::PlaySoundToAll(), Unit::RemoveAurasDueToSpell(), Unit::RemoveAurasWithInterruptFlags(), RESPAWN_IMMEDIATELY, SCORE_FLAG_CAPTURES, Battleground::SendBroadcastText(), SetFlagPicker(), Battleground::SpawnBGObject(), STATUS_IN_PROGRESS, TEAM_ALLIANCE, TEAM_HORDE, and UpdatePlayerScore().
Referenced by HandleAreaTrigger(), and UpdatePointStatuses().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 643 of file BattlegroundEY.cpp.
References ALLIANCE, AURA_INTERRUPT_FLAG_ENTER_PVP_COMBAT, BG_EY_FLAG_STATE_ON_BASE, BG_EY_FLAG_STATE_ON_PLAYER, BG_EY_NETHERSTORM_FLAG_SPELL, BG_EY_OBJECT_FLAG_NETHERSTORM, BG_EY_SOUND_FLAG_PICKED_UP_ALLIANCE, BG_EY_SOUND_FLAG_PICKED_UP_HORDE, BG_EY_TEXT_TAKEN_FLAG, WorldObject::CastSpell(), CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, Object::GetGUID(), Battleground::GetStatus(), Player::GetTeam(), IsFlagPickedup(), WorldObject::IsWithinDistInMap(), m_FlagState, NETHERSTORM_FLAG, NETHERSTORM_FLAG_STATE_ALLIANCE, NETHERSTORM_FLAG_STATE_HORDE, Battleground::PlaySoundToAll(), Unit::RemoveAurasWithInterruptFlags(), RESPAWN_ONE_DAY, Battleground::SendBroadcastText(), SetFlagPicker(), Battleground::SpawnBGObject(), STATUS_IN_PROGRESS, and Battleground::UpdateWorldState().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 607 of file BattlegroundEY.cpp.
References ALLIANCE, BG_EY_FLAG_RESPAWN_TIME, BG_EY_FLAG_STATE_ON_GROUND, BG_EY_FLAG_STATE_WAIT_RESPAWN, BG_EY_NETHERSTORM_FLAG_SPELL, BG_EY_PLAYER_DROPPED_FLAG_SPELL, BG_EY_TEXT_FLAG_DROPPED, WorldObject::CastSpell(), CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, ObjectGuid::Empty, GetFlagPickerGUID(), Object::GetGUID(), Battleground::GetStatus(), Player::GetTeam(), IsFlagPickedup(), m_FlagState, m_FlagsTimer, NETHERSTORM_FLAG_STATE_ALLIANCE, NETHERSTORM_FLAG_STATE_HORDE, Unit::RemoveAurasDueToSpell(), Battleground::SendBroadcastText(), SetFlagPicker(), SPELL_RECENTLY_DROPPED_FLAG, STATUS_IN_PROGRESS, and Battleground::UpdateWorldState().
Referenced by HandleKillPlayer(), and RemovePlayer().
Definition at line 722 of file BattlegroundEY.cpp.
References Battleground::AddCreature(), Battleground::AddSpiritGuide(), ALLIANCE, BG_EY_TriggerPositions, Battleground::BgCreatures, WorldObject::CastSpell(), CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, Battleground::DelCreature(), EY_POINT_UNDER_CONTROL, FACTION_ALLIANCE_GENERIC, FACTION_HORDE_GENERIC, Battleground::GetBGCreature(), Battleground::GetStatus(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), WorldSafeLocsEntry::Loc, m_CapturingPointTypes, m_PointOwnedByTeam, m_PointState, m_TeamPointsCount, RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, Battleground::SendBroadcastText(), Unit::SetFaction(), Battleground::SpawnBGObject(), SPELL_HONORABLE_DEFENDER_25Y, STATUS_IN_PROGRESS, sWorldSafeLocsStore, TC_LOG_ERROR, TEAM_ALLIANCE, TEAM_HORDE, UpdatePointsCount(), UpdatePointsIcons(), WORLD_TRIGGER, DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by UpdatePointStatuses().
Definition at line 675 of file BattlegroundEY.cpp.
References ALLIANCE, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, Battleground::DelCreature(), EY_POINT_NO_OWNER, Battleground::GetStatus(), m_LosingPointTypes, m_PointOwnedByTeam, m_PointState, m_TeamPointsCount, RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, Battleground::SendBroadcastText(), Battleground::SpawnBGObject(), STATUS_IN_PROGRESS, TEAM_ALLIANCE, TEAM_HORDE, UpdatePointsCount(), and UpdatePointsIcons().
Referenced by UpdatePointStatuses().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 835 of file BattlegroundEY.cpp.
References ALLIANCE, BG_EY_FLAG_STATE_ON_BASE, BLOOD_ELF, BLOOD_ELF_ALLIANCE_CONTROL, BLOOD_ELF_HORDE_CONTROL, BLOOD_ELF_UNCONTROL, DRAENEI_RUINS, DRAENEI_RUINS_ALLIANCE_CONTROL, DRAENEI_RUINS_HORDE_CONTROL, DRAENEI_RUINS_UNCONTROL, EY_ALLIANCE_BASE, EY_HORDE_BASE, EY_POINT_UNDER_CONTROL, FEL_REAVER, FEL_REAVER_ALLIANCE_CONTROL, FEL_REAVER_HORDE_CONTROL, FEL_REAVER_UNCONTROL, Battleground::GetTeamScore(), HORDE, m_FlagState, m_PointOwnedByTeam, m_PointState, m_TeamPointsCount, MAGE_TOWER, MAGE_TOWER_ALLIANCE_CONTROL, MAGE_TOWER_HORDE_CONTROL, MAGE_TOWER_UNCONTROL, NETHERSTORM_FLAG, TEAM_ALLIANCE, TEAM_HORDE, and WorldPackets::WorldState::InitWorldStates::Worldstates.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 873 of file BattlegroundEY.cpp.
References ALLIANCE, EY_GRAVEYARD_MAIN_ALLIANCE, EY_GRAVEYARD_MAIN_HORDE, EY_POINT_UNDER_CONTROL, EY_POINTS_MAX, Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::GetTeam(), HORDE, WorldSafeLocsEntry::Loc, m_CapturingPointTypes, m_PointOwnedByTeam, m_PointState, sWorldSafeLocsStore, TC_LOG_ERROR, DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
|
inline |
Definition at line 410 of file BattlegroundEY.h.
References m_DroppedFlagGUID.
Referenced by RespawnFlagAfterDrop().
|
inlineoverridevirtual |
Reimplemented from Battleground.
Definition at line 392 of file BattlegroundEY.h.
References m_FlagKeeper.
Referenced by EventPlayerCapturedFlag(), EventPlayerDroppedFlag(), HandleAreaTrigger(), and UpdatePointStatuses().
|
inline |
Definition at line 395 of file BattlegroundEY.h.
References m_FlagState.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 936 of file BattlegroundEY.cpp.
References ALLIANCE, Battleground::GetPrematureWinner(), Battleground::GetTeamScore(), HORDE, TEAM_ALLIANCE, and TEAM_HORDE.
Reimplemented from Battleground.
Definition at line 392 of file BattlegroundEY.cpp.
References BG_EY_OBJECT_FLAG_BLOOD_ELF, BG_EY_OBJECT_FLAG_DRAENEI_RUINS, BG_EY_OBJECT_FLAG_FEL_REAVER, BG_EY_OBJECT_FLAG_MAGE_TOWER, BLOOD_ELF, DRAENEI_RUINS, EventPlayerCapturedFlag(), EY_POINT_UNDER_CONTROL, FEL_REAVER, GetFlagPickerGUID(), Object::GetGUID(), Battleground::GetStatus(), Player::GetTeam(), Battleground::HandleAreaTrigger(), Unit::IsAlive(), m_FlagState, m_PointOwnedByTeam, m_PointState, MAGE_TOWER, STATUS_IN_PROGRESS, TR_BLOOD_ELF_POINT, TR_DRAENEI_RUINS_POINT, TR_FEL_REAVER_POINT, and TR_MAGE_TOWER_POINT.
Reimplemented from Battleground.
Definition at line 598 of file BattlegroundEY.cpp.
References EventPlayerDroppedFlag(), Battleground::GetStatus(), Battleground::HandleKillPlayer(), and STATUS_IN_PROGRESS.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 926 of file BattlegroundEY.cpp.
References EY_POINT_UNDER_CONTROL, EY_POINTS_MAX, m_PointOwnedByTeam, and m_PointState.
|
inline |
Definition at line 394 of file BattlegroundEY.h.
References ObjectGuid::IsEmpty(), and m_FlagKeeper.
Referenced by EventPlayerClickedOnFlag(), EventPlayerDroppedFlag(), and RemovePlayer().
|
overrideprivatevirtual |
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 from Battleground.
Definition at line 79 of file BattlegroundEY.cpp.
References AddPoints(), ALLIANCE, BG_EY_FLAG_STATE_ON_GROUND, BG_EY_FLAG_STATE_WAIT_RESPAWN, BG_EY_FPOINTS_TICK_TIME, BG_EY_TickPoints, CheckSomeoneJoinedPoint(), CheckSomeoneLeftPoint(), Battleground::GetStatus(), HORDE, m_FlagState, m_FlagsTimer, m_PointAddingTimer, m_TeamPointsCount, m_TowerCapCheckTimer, RespawnFlag(), RespawnFlagAfterDrop(), STATUS_IN_PROGRESS, TEAM_ALLIANCE, TEAM_HORDE, and UpdatePointStatuses().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 368 of file BattlegroundEY.cpp.
References ObjectGuid::Empty, EventPlayerDroppedFlag(), EY_POINTS_MAX, IsFlagPickedup(), m_FlagKeeper, m_PlayersNearPoint, RespawnFlag(), and SetFlagPicker().
Definition at line 437 of file BattlegroundEY.h.
References Battleground::GetTeamIndexByTeamId(), and Battleground::m_TeamScores.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 534 of file BattlegroundEY.cpp.
References BG_EY_EYWeekendHonorTicks, BG_EY_FLAG_STATE_ON_BASE, BG_EY_NotEYWeekendHonorTicks, BG_EY_PROGRESS_BAR_STATE_MIDDLE, ObjectGuid::Clear(), EY_PLAYERS_OUT_OF_POINTS, EY_POINT_NO_OWNER, EY_POINT_STATE_UNCONTROLLED, EY_POINTS_MAX, Battleground::GetTypeID(), m_DroppedFlagGUID, m_FlagCapturedBgObjectType, m_FlagKeeper, m_FlagState, m_HonorScoreTics, m_HonorTics, m_PlayersNearPoint, m_PointAddingTimer, m_PointBarStatus, m_PointOwnedByTeam, m_PointState, m_TeamPointsCount, Battleground::m_TeamScores, m_TowerCapCheckTimer, Battleground::Reset(), sBattlegroundMgr, TEAM_ALLIANCE, and TEAM_HORDE.
| void BattlegroundEY::RespawnFlag | ( | bool | send_message | ) |
Definition at line 566 of file BattlegroundEY.cpp.
References BG_EY_FLAG_STATE_ON_BASE, BG_EY_OBJECT_FLAG_NETHERSTORM, BG_EY_SOUND_FLAG_RESET, BG_EY_TEXT_FLAG_RESET, CHAT_MSG_BG_SYSTEM_NEUTRAL, m_FlagCapturedBgObjectType, m_FlagState, NETHERSTORM_FLAG, Battleground::PlaySoundToAll(), RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, Battleground::SendBroadcastText(), Battleground::SpawnBGObject(), and Battleground::UpdateWorldState().
Referenced by PostUpdateImpl(), RemovePlayer(), and RespawnFlagAfterDrop().
| void BattlegroundEY::RespawnFlagAfterDrop | ( | ) |
Definition at line 584 of file BattlegroundEY.cpp.
References GameObject::Delete(), ObjectGuid::Empty, Battleground::GetBgMap(), GetDroppedFlagGUID(), Map::GetGameObject(), RespawnFlag(), SetDroppedFlagGUID(), and TC_LOG_ERROR.
Referenced by PostUpdateImpl().
|
inlineoverridevirtual |
Reimplemented from Battleground.
Definition at line 409 of file BattlegroundEY.h.
References m_DroppedFlagGUID.
Referenced by RespawnFlagAfterDrop().
|
inline |
Definition at line 393 of file BattlegroundEY.h.
References m_FlagKeeper.
Referenced by EventPlayerCapturedFlag(), EventPlayerClickedOnFlag(), EventPlayerDroppedFlag(), and RemovePlayer().
Definition at line 438 of file BattlegroundEY.h.
References Battleground::GetTeamIndexByTeamId(), and Battleground::m_TeamScores.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 440 of file BattlegroundEY.cpp.
References Battleground::AddObject(), Battleground::AddSpiritGuide(), BG_EY_OBJECT_A_BANNER_BLOOD_ELF_CENTER, BG_EY_OBJECT_A_BANNER_BLOOD_ELF_LEFT, BG_EY_OBJECT_A_BANNER_BLOOD_ELF_RIGHT, BG_EY_OBJECT_A_BANNER_DRAENEI_RUINS_CENTER, BG_EY_OBJECT_A_BANNER_DRAENEI_RUINS_LEFT, BG_EY_OBJECT_A_BANNER_DRAENEI_RUINS_RIGHT, BG_EY_OBJECT_A_BANNER_FEL_REAVER_CENTER, BG_EY_OBJECT_A_BANNER_FEL_REAVER_LEFT, BG_EY_OBJECT_A_BANNER_FEL_REAVER_RIGHT, BG_EY_OBJECT_A_BANNER_MAGE_TOWER_CENTER, BG_EY_OBJECT_A_BANNER_MAGE_TOWER_LEFT, BG_EY_OBJECT_A_BANNER_MAGE_TOWER_RIGHT, BG_EY_OBJECT_DOOR_A, BG_EY_OBJECT_DOOR_H, BG_EY_OBJECT_FLAG_BLOOD_ELF, BG_EY_OBJECT_FLAG_DRAENEI_RUINS, BG_EY_OBJECT_FLAG_FEL_REAVER, BG_EY_OBJECT_FLAG_MAGE_TOWER, BG_EY_OBJECT_FLAG_NETHERSTORM, BG_EY_OBJECT_H_BANNER_BLOOD_ELF_CENTER, BG_EY_OBJECT_H_BANNER_BLOOD_ELF_LEFT, BG_EY_OBJECT_H_BANNER_BLOOD_ELF_RIGHT, BG_EY_OBJECT_H_BANNER_DRAENEI_RUINS_CENTER, BG_EY_OBJECT_H_BANNER_DRAENEI_RUINS_LEFT, BG_EY_OBJECT_H_BANNER_DRAENEI_RUINS_RIGHT, BG_EY_OBJECT_H_BANNER_FEL_REAVER_CENTER, BG_EY_OBJECT_H_BANNER_FEL_REAVER_LEFT, BG_EY_OBJECT_H_BANNER_FEL_REAVER_RIGHT, BG_EY_OBJECT_H_BANNER_MAGE_TOWER_CENTER, BG_EY_OBJECT_H_BANNER_MAGE_TOWER_LEFT, BG_EY_OBJECT_H_BANNER_MAGE_TOWER_RIGHT, BG_EY_OBJECT_N_BANNER_BLOOD_ELF_CENTER, BG_EY_OBJECT_N_BANNER_BLOOD_ELF_LEFT, BG_EY_OBJECT_N_BANNER_BLOOD_ELF_RIGHT, BG_EY_OBJECT_N_BANNER_DRAENEI_RUINS_CENTER, BG_EY_OBJECT_N_BANNER_DRAENEI_RUINS_LEFT, BG_EY_OBJECT_N_BANNER_DRAENEI_RUINS_RIGHT, BG_EY_OBJECT_N_BANNER_FEL_REAVER_CENTER, BG_EY_OBJECT_N_BANNER_FEL_REAVER_LEFT, BG_EY_OBJECT_N_BANNER_FEL_REAVER_RIGHT, BG_EY_OBJECT_N_BANNER_MAGE_TOWER_CENTER, BG_EY_OBJECT_N_BANNER_MAGE_TOWER_LEFT, BG_EY_OBJECT_N_BANNER_MAGE_TOWER_RIGHT, BG_EY_OBJECT_SPEEDBUFF_FEL_REAVER, BG_EY_OBJECT_TOWER_CAP_BLOOD_ELF, BG_EY_OBJECT_TOWER_CAP_DRAENEI_RUINS, BG_EY_OBJECT_TOWER_CAP_FEL_REAVER, BG_EY_OBJECT_TOWER_CAP_MAGE_TOWER, BG_OBJECT_A_BANNER_EY_ENTRY, BG_OBJECT_A_DOOR_EY_ENTRY, BG_OBJECT_BE_TOWER_CAP_EY_ENTRY, BG_OBJECT_DR_TOWER_CAP_EY_ENTRY, BG_OBJECT_FLAG1_EY_ENTRY, BG_OBJECT_FLAG2_EY_ENTRY, BG_OBJECT_FR_TOWER_CAP_EY_ENTRY, BG_OBJECT_H_BANNER_EY_ENTRY, BG_OBJECT_H_DOOR_EY_ENTRY, BG_OBJECT_HU_TOWER_CAP_EY_ENTRY, BG_OBJECT_N_BANNER_EY_ENTRY, Buff_Entries, EY_GRAVEYARD_MAIN_ALLIANCE, EY_GRAVEYARD_MAIN_HORDE, EY_POINTS_MAX, EY_SPIRIT_MAIN_ALLIANCE, EY_SPIRIT_MAIN_HORDE, WorldSafeLocsEntry::Loc, m_Points_Trigger, AreaTriggerEntry::Pos, RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, sAreaTriggerStore, sWorldSafeLocsStore, TC_LOG_ERROR, TEAM_ALLIANCE, TEAM_HORDE, DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 123 of file BattlegroundEY.cpp.
References BG_EY_OBJECT_A_BANNER_FEL_REAVER_CENTER, BG_EY_OBJECT_DOOR_A, BG_EY_OBJECT_DOOR_H, BG_EY_OBJECT_MAX, RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, and Battleground::SpawnBGObject().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 132 of file BattlegroundEY.cpp.
References ACHIEVEMENT_TIMED_TYPE_EVENT, BG_EY_EVENT_START_BATTLE, BG_EY_OBJECT_DOOR_A, BG_EY_OBJECT_DOOR_H, BG_EY_OBJECT_FLAG_NETHERSTORM, BG_EY_OBJECT_N_BANNER_FEL_REAVER_CENTER, BG_EY_OBJECT_SPEEDBUFF_FEL_REAVER, EY_POINTS_MAX, RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, Battleground::SpawnBGObject(), Battleground::StartTimedAchievement(), and urand().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 819 of file BattlegroundEY.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_BG_OBJECTIVE_CAPTURE, EY_OBJECTIVE_CAPTURE_FLAG, SCORE_FLAG_CAPTURES, Player::UpdateAchievementCriteria(), and Battleground::UpdatePlayerScore().
Referenced by EventPlayerCapturedFlag().
|
private |
Definition at line 329 of file BattlegroundEY.cpp.
References ALLIANCE, EY_ALLIANCE_BASE, EY_HORDE_BASE, m_TeamPointsCount, TEAM_ALLIANCE, TEAM_HORDE, and Battleground::UpdateWorldState().
Referenced by EventTeamCapturedPoint(), and EventTeamLostPoint().
Definition at line 337 of file BattlegroundEY.cpp.
References ALLIANCE, EY_POINT_UNDER_CONTROL, m_PointsIconStruct, m_PointState, and Battleground::UpdateWorldState().
Referenced by EventTeamCapturedPoint(), and EventTeamLostPoint().
|
private |
@workaround The original AreaTrigger is covered by a bigger one and not triggered on client side.
Definition at line 243 of file BattlegroundEY.cpp.
References ALLIANCE, BG_EY_OBJECT_FLAG_FEL_REAVER, BG_EY_POINT_MAX_CAPTURERS_COUNT, BG_EY_PROGRESS_BAR_ALI_CONTROLLED, BG_EY_PROGRESS_BAR_HORDE_CONTROLLED, BG_EY_PROGRESS_BAR_NEUTRAL_HIGH, BG_EY_PROGRESS_BAR_NEUTRAL_LOW, EventPlayerCapturedFlag(), EventTeamCapturedPoint(), EventTeamLostPoint(), EY_POINT_NO_OWNER, EY_POINT_STATE_UNCONTROLLED, EY_POINT_UNDER_CONTROL, EY_POINTS_MAX, FEL_REAVER, ObjectAccessor::FindPlayer(), WorldObject::GetDistance(), GetFlagPickerGUID(), Object::GetGUID(), Player::GetTeam(), HORDE, m_CurrentPointPlayersCount, m_FlagState, m_PlayersNearPoint, m_PointBarStatus, m_PointOwnedByTeam, m_PointState, PROGRESS_BAR_STATUS, and Player::SendUpdateWorldState().
Referenced by PostUpdateImpl().
| void BattlegroundEY::UpdateTeamScore | ( | uint32 | Team | ) |
Definition at line 296 of file BattlegroundEY.cpp.
References ALLIANCE, BG_EY_MAX_TEAM_SCORE, EndBattleground(), EY_ALLIANCE_RESOURCES, EY_HORDE_RESOURCES, Battleground::GetTeamScore(), HORDE, TEAM_ALLIANCE, and Battleground::UpdateWorldState().
Referenced by AddPoints().
|
private |
Definition at line 456 of file BattlegroundEY.h.
Referenced by BattlegroundEY(), CheckSomeoneLeftPoint(), and UpdatePointStatuses().
|
private |
Definition at line 446 of file BattlegroundEY.h.
Referenced by BattlegroundEY(), GetDroppedFlagGUID(), Reset(), and SetDroppedFlagGUID().
|
private |
Definition at line 447 of file BattlegroundEY.h.
Referenced by BattlegroundEY(), EventPlayerCapturedFlag(), Reset(), and RespawnFlag().
|
private |
Definition at line 445 of file BattlegroundEY.h.
Referenced by BattlegroundEY(), GetFlagPickerGUID(), IsFlagPickedup(), RemovePlayer(), Reset(), and SetFlagPicker().
|
private |
Definition at line 448 of file BattlegroundEY.h.
Referenced by BattlegroundEY(), EventPlayerCapturedFlag(), EventPlayerClickedOnFlag(), EventPlayerDroppedFlag(), FillInitialWorldStates(), GetFlagState(), HandleAreaTrigger(), PostUpdateImpl(), Reset(), RespawnFlag(), and UpdatePointStatuses().
|
private |
Definition at line 449 of file BattlegroundEY.h.
Referenced by BattlegroundEY(), EventPlayerCapturedFlag(), EventPlayerDroppedFlag(), and PostUpdateImpl().
|
private |
Definition at line 440 of file BattlegroundEY.h.
Referenced by AddPoints(), BattlegroundEY(), and Reset().
|
private |
Definition at line 459 of file BattlegroundEY.h.
Referenced by AddPoints(), BattlegroundEY(), and Reset().
|
private |
Definition at line 455 of file BattlegroundEY.h.
Referenced by AddPlayer(), CheckSomeoneJoinedPoint(), CheckSomeoneLeftPoint(), RemovePlayer(), Reset(), and UpdatePointStatuses().
|
private |
Definition at line 458 of file BattlegroundEY.h.
Referenced by BattlegroundEY(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 454 of file BattlegroundEY.h.
Referenced by BattlegroundEY(), CheckSomeoneJoinedPoint(), Reset(), and UpdatePointStatuses().
|
private |
Definition at line 452 of file BattlegroundEY.h.
Referenced by BattlegroundEY(), EventTeamCapturedPoint(), EventTeamLostPoint(), FillInitialWorldStates(), GetClosestGraveyard(), HandleAreaTrigger(), IsAllNodesControlledByTeam(), Reset(), and UpdatePointStatuses().
|
private |
Definition at line 443 of file BattlegroundEY.h.
Referenced by BattlegroundEY(), and SetupBattleground().
|
private |
Definition at line 453 of file BattlegroundEY.h.
Referenced by BattlegroundEY(), EventTeamCapturedPoint(), EventTeamLostPoint(), FillInitialWorldStates(), GetClosestGraveyard(), HandleAreaTrigger(), IsAllNodesControlledByTeam(), Reset(), UpdatePointsIcons(), and UpdatePointStatuses().
|
private |
Definition at line 441 of file BattlegroundEY.h.
Referenced by BattlegroundEY(), EventPlayerCapturedFlag(), EventTeamCapturedPoint(), EventTeamLostPoint(), FillInitialWorldStates(), PostUpdateImpl(), Reset(), and UpdatePointsCount().
|
private |
Definition at line 450 of file BattlegroundEY.h.
Referenced by BattlegroundEY(), PostUpdateImpl(), and Reset().