|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <BattlegroundEY.h>
Private Types | |
| typedef std::vector< uint64 > | PlayersNearPointType |
Private Member Functions | |
| void | AddPoints (uint32 TeamTeam, uint32 PointsPoints) |
| void | CheckSomeoneJoinedPoint () |
| void | CheckSomeoneLeftPoint () |
| void | EventPlayerCapturedFlag (Player *Source, uint32 BgObjectType) |
| void | EventTeamCapturedPoint (Player *Source, uint32 Point) |
| void | EventTeamLostPoint (Player *Source, uint32 Point) |
| void | PostUpdateImpl (uint32 diff) OVERRIDE |
| Post-update hook. | |
| void | RemovePoint (uint32 TeamID, uint32 PointsPoints=1) |
| void | SetTeamPoint (uint32 TeamID, uint32 PointsPoints=0) |
| void | UpdatePointsCount (uint32 TeamTeam) |
| void | UpdatePointsIcons (uint32 TeamTeam, uint32 Point) |
| void | UpdatePointStatuses () |
Definition at line 319 of file BattlegroundEY.h.
|
private |
Definition at line 395 of file BattlegroundEY.h.
| BattlegroundEY::BattlegroundEY | ( | ) |
Definition at line 24 of file BattlegroundEY.cpp.
References BG_EY_CREATURES_MAX, BG_EY_OBJECT_MAX, BG_STARTING_EVENT_FIRST, BG_STARTING_EVENT_FOURTH, BG_STARTING_EVENT_SECOND, BG_STARTING_EVENT_THIRD, Battleground::BgCreatures, Battleground::BgObjects, BLOOD_ELF, DRAENEI_RUINS, FEL_REAVER, LANG_BG_EY_HAS_BEGUN, LANG_BG_EY_START_HALF_MINUTE, LANG_BG_EY_START_ONE_MINUTE, LANG_BG_EY_START_TWO_MINUTES, Battleground::m_BuffChange, m_Points_Trigger, MAGE_TOWER, Battleground::StartMessageIds, TR_BLOOD_ELF_BUFF, TR_DRAENEI_RUINS_BUFF, TR_FEL_REAVER_BUFF, and TR_MAGE_TOWER_BUFF.
| BattlegroundEY::~BattlegroundEY | ( | ) |
Definition at line 40 of file BattlegroundEY.cpp.
|
virtual |
Reimplemented from Battleground.
Definition at line 329 of file BattlegroundEY.cpp.
References Battleground::AddPlayer(), EY_POINTS_MAX, Object::GetGUID(), m_PlayersNearPoint, and Battleground::PlayerScores.
Definition at line 113 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 126 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, HashMapHolder< T >::Find(), ObjectAccessor::FindPlayer(), GUID_LOPART(), WorldObject::IsWithinDistInMap(), m_PlayersNearPoint, m_PointBarStatus, PROGRESS_BAR_PERCENT_GREY, PROGRESS_BAR_SHOW, PROGRESS_BAR_STATUS, SF_LOG_ERROR, and Battleground::UpdateWorldStateForPlayer().
Referenced by 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_DONT_SHOW, Battleground::BgObjects, Player::CanCaptureTowerPoint(), EY_POINTS_MAX, HashMapHolder< T >::Find(), ObjectAccessor::FindPlayer(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), GUID_LOPART(), WorldObject::IsWithinDistInMap(), m_CurrentPointPlayersCount, m_PlayersNearPoint, PROGRESS_BAR_SHOW, SF_LOG_ERROR, and Battleground::UpdateWorldStateForPlayer().
Referenced by PostUpdateImpl().
| void BattlegroundEY::EndBattleground | ( | uint32 | winner | ) |
Definition at line 286 of file BattlegroundEY.cpp.
References ALLIANCE, Battleground::EndBattleground(), Battleground::GetBonusHonorFromKill(), HORDE, and Battleground::RewardHonorToTeam().
Referenced by HandleBuffUse(), and UpdateTeamScore().
Definition at line 762 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, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, GetFlagPickerGUID(), Object::GetGUID(), Battleground::GetStatus(), Player::GetTeam(), LANG_BG_EY_CAPTURED_FLAG_A, LANG_BG_EY_CAPTURED_FLAG_H, m_FlagCapturedBgObjectType, m_FlagState, m_FlagsTimer, m_TeamPointsCount, Battleground::PlaySoundToAll(), Unit::RemoveAurasDueToSpell(), Unit::RemoveAurasWithInterruptFlags(), RESPAWN_IMMEDIATELY, SCORE_FLAG_CAPTURES, Battleground::SendMessageToAll(), SetFlagPicker(), Battleground::SpawnBGObject(), STATUS_IN_PROGRESS, TEAM_ALLIANCE, TEAM_HORDE, and UpdatePlayerScore().
Referenced by HandleAreaTrigger(), and UpdatePointStatuses().
|
virtual |
Reimplemented from Battleground.
Definition at line 615 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, Unit::CastSpell(), CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, Object::GetGUID(), WorldObject::GetName(), Battleground::GetStatus(), Player::GetTeam(), IsFlagPickedup(), WorldObject::IsWithinDistInMap(), LANG_BG_EY_HAS_TAKEN_FLAG, m_FlagState, NETHERSTORM_FLAG, NETHERSTORM_FLAG_STATE_ALLIANCE, NETHERSTORM_FLAG_STATE_HORDE, Battleground::PlaySoundToAll(), Battleground::PSendMessageToAll(), Unit::RemoveAurasWithInterruptFlags(), RESPAWN_ONE_DAY, SetFlagPicker(), Battleground::SpawnBGObject(), STATUS_IN_PROGRESS, and Battleground::UpdateWorldState().
|
virtual |
Reimplemented from Battleground.
Definition at line 579 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, Unit::CastSpell(), CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, GetFlagPickerGUID(), Object::GetGUID(), Battleground::GetStatus(), Player::GetTeam(), IsFlagPickedup(), LANG_BG_EY_DROPPED_FLAG, m_FlagState, m_FlagsTimer, NETHERSTORM_FLAG_STATE_ALLIANCE, NETHERSTORM_FLAG_STATE_HORDE, Unit::RemoveAurasDueToSpell(), Battleground::SendMessageToAll(), SetFlagPicker(), SPELL_RECENTLY_DROPPED_FLAG, STATUS_IN_PROGRESS, and Battleground::UpdateWorldState().
Referenced by HandleKillPlayer(), and RemovePlayer().
Definition at line 695 of file BattlegroundEY.cpp.
References Battleground::AddCreature(), Battleground::AddSpiritGuide(), ALLIANCE, BG_EY_TriggerPositions, Battleground::BgCreatures, Unit::CastSpell(), CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, Battleground::DelCreature(), EY_POINT_UNDER_CONTROL, EY_POINTS_MAX, Battleground::GetBGCreature(), Battleground::GetStatus(), Player::GetTeam(), m_CapturingPointTypes, m_PointOwnedByTeam, m_PointState, m_TeamPointsCount, RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, Battleground::SendMessageToAll(), Unit::setFaction(), SF_LOG_ERROR, Battleground::SpawnBGObject(), SPELL_HONORABLE_DEFENDER_25Y, STATUS_IN_PROGRESS, sWorldSafeLocsStore, TEAM_ALLIANCE, TEAM_HORDE, UpdatePointsCount(), UpdatePointsIcons(), WORLD_TRIGGER, WorldSafeLocsEntry::x, WorldSafeLocsEntry::y, and WorldSafeLocsEntry::z.
Referenced by UpdatePointStatuses().
Definition at line 647 of file BattlegroundEY.cpp.
References ALLIANCE, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, Battleground::DelCreature(), EY_POINT_NO_OWNER, EY_POINTS_MAX, Battleground::GetStatus(), m_LosingPointTypes, m_PointOwnedByTeam, m_PointState, m_TeamPointsCount, RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, Battleground::SendMessageToAll(), Battleground::SpawnBGObject(), STATUS_IN_PROGRESS, TEAM_ALLIANCE, TEAM_HORDE, UpdatePointsCount(), and UpdatePointsIcons().
Referenced by UpdatePointStatuses().
|
virtual |
Reimplemented from Battleground.
Definition at line 819 of file BattlegroundEY.cpp.
References ALLIANCE, WorldStateBuilder::AppendState(), 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, and TEAM_HORDE.
Referenced by HandleBuffUse().
|
virtual |
Reimplemented from Battleground.
Definition at line 869 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, m_CapturingPointTypes, m_PointOwnedByTeam, m_PointState, SF_LOG_ERROR, sWorldSafeLocsStore, WorldSafeLocsEntry::x, WorldSafeLocsEntry::y, and WorldSafeLocsEntry::z.
|
inline |
Definition at line 350 of file BattlegroundEY.h.
References m_DroppedFlagGUID.
Referenced by RespawnFlagAfterDrop().
Reimplemented from Battleground.
Definition at line 331 of file BattlegroundEY.h.
References m_FlagKeeper, and OVERRIDE.
Referenced by EventPlayerCapturedFlag(), EventPlayerDroppedFlag(), HandleAreaTrigger(), and UpdatePointStatuses().
|
inline |
Definition at line 334 of file BattlegroundEY.h.
References m_FlagState.
|
virtual |
Reimplemented from Battleground.
Definition at line 932 of file BattlegroundEY.cpp.
References ALLIANCE, Battleground::GetPrematureWinner(), Battleground::GetTeamScore(), HORDE, TEAM_ALLIANCE, and TEAM_HORDE.
Reimplemented from Battleground.
Definition at line 364 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.
| void BattlegroundEY::HandleBuffUse | ( | uint64 | buff_guid | ) |
References EndBattleground(), FillInitialWorldStates(), OVERRIDE, Reset(), UpdatePlayerScore(), and UpdateTeamScore().
Reimplemented from Battleground.
Definition at line 570 of file BattlegroundEY.cpp.
References EventPlayerDroppedFlag(), Battleground::GetStatus(), Battleground::HandleKillPlayer(), and STATUS_IN_PROGRESS.
|
virtual |
Reimplemented from Battleground.
Definition at line 922 of file BattlegroundEY.cpp.
References EY_POINT_UNDER_CONTROL, EY_POINTS_MAX, m_PointOwnedByTeam, and m_PointState.
|
inline |
Definition at line 333 of file BattlegroundEY.h.
References m_FlagKeeper.
Referenced by EventPlayerClickedOnFlag(), EventPlayerDroppedFlag(), and RemovePlayer().
|
privatevirtual |
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 42 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().
Reimplemented from Battleground.
Definition at line 340 of file BattlegroundEY.cpp.
References EventPlayerDroppedFlag(), EY_POINTS_MAX, IsFlagPickedup(), m_FlagKeeper, m_PlayersNearPoint, RespawnFlag(), and SetFlagPicker().
Definition at line 377 of file BattlegroundEY.h.
References Battleground::GetTeamIndexByTeamId(), Battleground::m_TeamScores, and RemovePoint().
Referenced by RemovePoint().
|
virtual |
Reimplemented from Battleground.
Definition at line 507 of file BattlegroundEY.cpp.
References BG_EY_EYWeekendHonorTicks, BG_EY_FLAG_STATE_ON_BASE, BG_EY_NotEYWeekendHonorTicks, BG_EY_PROGRESS_BAR_STATE_MIDDLE, 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.
Referenced by HandleBuffUse().
| void BattlegroundEY::RespawnFlag | ( | bool | send_message | ) |
Definition at line 539 of file BattlegroundEY.cpp.
References BG_EY_FLAG_STATE_ON_BASE, BG_EY_OBJECT_FLAG_NETHERSTORM, BG_EY_SOUND_FLAG_RESET, CHAT_MSG_BG_SYSTEM_NEUTRAL, LANG_BG_EY_RESETED_FLAG, m_FlagCapturedBgObjectType, m_FlagState, NETHERSTORM_FLAG, Battleground::PlaySoundToAll(), RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, Battleground::SendMessageToAll(), Battleground::SpawnBGObject(), and Battleground::UpdateWorldState().
Referenced by PostUpdateImpl(), RemovePlayer(), and RespawnFlagAfterDrop().
| void BattlegroundEY::RespawnFlagAfterDrop | ( | ) |
Definition at line 557 of file BattlegroundEY.cpp.
References GameObject::Delete(), HashMapHolder< T >::Find(), GetDroppedFlagGUID(), GUID_LOPART(), RespawnFlag(), SetDroppedFlagGUID(), and SF_LOG_ERROR.
Referenced by PostUpdateImpl().
Reimplemented from Battleground.
Definition at line 349 of file BattlegroundEY.h.
References m_DroppedFlagGUID, OVERRIDE, and SetDroppedFlagGUID().
Referenced by RespawnFlagAfterDrop(), and SetDroppedFlagGUID().
|
inline |
Definition at line 332 of file BattlegroundEY.h.
References m_FlagKeeper.
Referenced by EventPlayerCapturedFlag(), EventPlayerClickedOnFlag(), EventPlayerDroppedFlag(), and RemovePlayer().
Definition at line 378 of file BattlegroundEY.h.
References Battleground::GetTeamIndexByTeamId(), and Battleground::m_TeamScores.
|
virtual |
Reimplemented from Battleground.
Definition at line 412 of file BattlegroundEY.cpp.
References Battleground::AddObject(), Battleground::AddSpiritGuide(), ALLIANCE, 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, HORDE, m_Points_Trigger, RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, sAreaTriggerStore, SF_LOG_ERROR, sWorldSafeLocsStore, AreaTriggerEntry::x, WorldSafeLocsEntry::x, AreaTriggerEntry::y, WorldSafeLocsEntry::y, AreaTriggerEntry::z, and WorldSafeLocsEntry::z.
|
virtual |
Reimplemented from Battleground.
Definition at line 86 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().
|
virtual |
Reimplemented from Battleground.
Definition at line 95 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(), and Battleground::StartTimedAchievement().
|
virtual |
Reimplemented from Battleground.
Definition at line 801 of file BattlegroundEY.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_BG_OBJECTIVE_CAPTURE, EY_OBJECTIVE_CAPTURE_FLAG, Object::GetGUID(), Battleground::PlayerScores, SCORE_FLAG_CAPTURES, Player::UpdateAchievementCriteria(), and Battleground::UpdatePlayerScore().
Referenced by EventPlayerCapturedFlag(), and HandleBuffUse().
|
private |
Definition at line 300 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 308 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 204 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 Battleground::UpdateWorldStateForPlayer().
Referenced by PostUpdateImpl().
| void BattlegroundEY::UpdateTeamScore | ( | uint32 | Team | ) |
Definition at line 257 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(), and HandleBuffUse().
|
private |
Definition at line 397 of file BattlegroundEY.h.
Referenced by CheckSomeoneLeftPoint(), and UpdatePointStatuses().
|
private |
Definition at line 386 of file BattlegroundEY.h.
Referenced by GetDroppedFlagGUID(), Reset(), and SetDroppedFlagGUID().
|
private |
Definition at line 387 of file BattlegroundEY.h.
Referenced by EventPlayerCapturedFlag(), Reset(), and RespawnFlag().
|
private |
Definition at line 385 of file BattlegroundEY.h.
Referenced by GetFlagPickerGUID(), IsFlagPickedup(), RemovePlayer(), Reset(), and SetFlagPicker().
|
private |
Definition at line 388 of file BattlegroundEY.h.
Referenced by EventPlayerCapturedFlag(), EventPlayerClickedOnFlag(), EventPlayerDroppedFlag(), FillInitialWorldStates(), GetFlagState(), HandleAreaTrigger(), PostUpdateImpl(), Reset(), RespawnFlag(), and UpdatePointStatuses().
|
private |
Definition at line 389 of file BattlegroundEY.h.
Referenced by EventPlayerCapturedFlag(), EventPlayerDroppedFlag(), and PostUpdateImpl().
|
private |
Definition at line 380 of file BattlegroundEY.h.
Referenced by AddPoints(), and Reset().
|
private |
Definition at line 400 of file BattlegroundEY.h.
Referenced by AddPoints(), and Reset().
|
private |
Definition at line 396 of file BattlegroundEY.h.
Referenced by AddPlayer(), CheckSomeoneJoinedPoint(), CheckSomeoneLeftPoint(), RemovePlayer(), Reset(), and UpdatePointStatuses().
|
private |
Definition at line 399 of file BattlegroundEY.h.
Referenced by PostUpdateImpl(), and Reset().
|
private |
Definition at line 394 of file BattlegroundEY.h.
Referenced by CheckSomeoneJoinedPoint(), Reset(), and UpdatePointStatuses().
|
private |
Definition at line 392 of file BattlegroundEY.h.
Referenced by EventTeamCapturedPoint(), EventTeamLostPoint(), FillInitialWorldStates(), GetClosestGraveYard(), HandleAreaTrigger(), IsAllNodesControlledByTeam(), Reset(), and UpdatePointStatuses().
|
private |
Definition at line 383 of file BattlegroundEY.h.
Referenced by BattlegroundEY(), and SetupBattleground().
|
private |
Definition at line 393 of file BattlegroundEY.h.
Referenced by EventTeamCapturedPoint(), EventTeamLostPoint(), FillInitialWorldStates(), GetClosestGraveYard(), HandleAreaTrigger(), IsAllNodesControlledByTeam(), Reset(), UpdatePointsIcons(), and UpdatePointStatuses().
|
private |
Definition at line 381 of file BattlegroundEY.h.
Referenced by EventPlayerCapturedFlag(), EventTeamCapturedPoint(), EventTeamLostPoint(), FillInitialWorldStates(), PostUpdateImpl(), Reset(), and UpdatePointsCount().
|
private |
Definition at line 390 of file BattlegroundEY.h.
Referenced by PostUpdateImpl(), and Reset().