![]() |
TrinityCore
|
#include <BattlegroundAB.h>
Inheritance diagram for BattlegroundAB:Private Member Functions | |
| void | PostUpdateImpl (uint32 diff) override |
| Post-update hook. | |
| void | _CreateBanner (uint8 node, uint8 type, uint8 teamIndex, bool delay) |
| void | _DelBanner (uint8 node, uint8 type, uint8 teamIndex) |
| void | _SendNodeUpdate (uint8 node) |
| void | _NodeOccupied (uint8 node, Team team) |
| void | _NodeDeOccupied (uint8 node) |
Definition at line 300 of file BattlegroundAB.h.
| BattlegroundAB::BattlegroundAB | ( | ) |
Definition at line 37 of file BattlegroundAB.cpp.
References BG_AB_ALL_NODES_COUNT, BG_AB_DYNAMIC_NODES_COUNT, BG_AB_OBJECT_MAX, Battleground::BgCreatures, Battleground::BgObjects, m_BannerTimers, Battleground::m_BuffChange, m_HonorScoreTics, m_HonorTics, m_IsInformedNearVictory, m_lastTick, m_Nodes, m_NodeTimers, m_prevNodes, m_ReputationScoreTics, m_ReputationTics, m_TeamScores500Disadvantage, PVP_TEAMS_COUNT, BG_AB_BannerTimer::teamIndex, BG_AB_BannerTimer::timer, and BG_AB_BannerTimer::type.
| BattlegroundAB::~BattlegroundAB | ( | ) |
Definition at line 66 of file BattlegroundAB.cpp.
Definition at line 277 of file BattlegroundAB.cpp.
References BG_AB_NODE_TYPE_OCCUPIED, m_BannerTimers, RESPAWN_IMMEDIATELY, Battleground::SpawnBGObject(), BG_AB_BannerTimer::teamIndex, BG_AB_BannerTimer::timer, and BG_AB_BannerTimer::type.
Referenced by EventPlayerClickedOnFlag(), and PostUpdateImpl().
Definition at line 299 of file BattlegroundAB.cpp.
References BG_AB_NODE_TYPE_OCCUPIED, RESPAWN_ONE_DAY, and Battleground::SpawnBGObject().
Referenced by EventPlayerClickedOnFlag(), and PostUpdateImpl().
|
private |
Definition at line 401 of file BattlegroundAB.cpp.
References BG_AB_DYNAMIC_NODES_COUNT, Battleground::BgCreatures, Battleground::DelCreature(), and Battleground::RelocateDeadPlayers().
Referenced by EventPlayerClickedOnFlag().
Definition at line 369 of file BattlegroundAB.cpp.
References Battleground::AddCreature(), Battleground::AddSpiritGuide(), ALLIANCE, BG_AB_DYNAMIC_NODES_COUNT, BG_AB_NODE_TYPE_OCCUPIED, BG_AB_NodePositions, BG_AB_SpiritGuidePos, Battleground::BgCreatures, WorldObject::CastSpell(), Battleground::CastSpellOnTeam(), FACTION_ALLIANCE_GENERIC, FACTION_HORDE_GENERIC, Battleground::GetBGCreature(), Battleground::GetTeamIndexByTeamId(), m_Nodes, m_NodeTimers, Unit::SetFaction(), SPELL_AB_QUEST_REWARD_4_BASES, SPELL_AB_QUEST_REWARD_5_BASES, SPELL_HONORABLE_DEFENDER_25Y, TC_LOG_ERROR, and WORLD_TRIGGER.
Referenced by EventPlayerClickedOnFlag(), PostUpdateImpl(), and StartingEventCloseDoors().
|
private |
Definition at line 345 of file BattlegroundAB.cpp.
References BG_AB_DYNAMIC_NODES_COUNT, BG_AB_NODE_STATUS_ALLY_OCCUPIED, BG_AB_NODE_STATUS_HORDE_OCCUPIED, BG_AB_OP_NODEICONS, BG_AB_OP_NODESTATES, BG_AB_OP_OCCUPIED_BASES_ALLY, BG_AB_OP_OCCUPIED_BASES_HORDE, m_Nodes, m_prevNodes, and Battleground::UpdateWorldState().
Referenced by EventPlayerClickedOnFlag(), and PostUpdateImpl().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 229 of file BattlegroundAB.cpp.
References Battleground::AddPlayer(), Object::GetGUID(), Battleground::IsPlayerInBattleground(), and Battleground::PlayerScores.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 712 of file BattlegroundAB.cpp.
References BG_CRITERIA_CHECK_RESILIENT_VICTORY, Battleground::CheckAchievementCriteriaMeet(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), and m_TeamScores500Disadvantage.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 629 of file BattlegroundAB.cpp.
References ALLIANCE, Battleground::EndBattleground(), Battleground::GetBonusHonorFromKill(), HORDE, and Battleground::RewardHonorToTeam().
Referenced by PostUpdateImpl().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 418 of file BattlegroundAB.cpp.
References _CreateBanner(), _DelBanner(), _NodeDeOccupied(), _NodeOccupied(), _SendNodeUpdate(), ABNodes, ALLIANCE, AURA_INTERRUPT_FLAG_ENTER_PVP_COMBAT, BG_AB_DYNAMIC_NODES_COUNT, BG_AB_FLAG_CAPTURING_TIME, BG_AB_NODE_STABLES, BG_AB_NODE_STATUS_ALLY_CONTESTED, BG_AB_NODE_STATUS_HORDE_CONTESTED, BG_AB_NODE_TYPE_CONTESTED, BG_AB_NODE_TYPE_NEUTRAL, BG_AB_NODE_TYPE_OCCUPIED, BG_AB_OBJECT_AURA_CONTESTED, BG_AB_SOUND_NODE_ASSAULTED_ALLIANCE, BG_AB_SOUND_NODE_ASSAULTED_HORDE, BG_AB_SOUND_NODE_CLAIMED, Battleground::BgObjects, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, Battleground::GetBgMap(), Map::GetGameObject(), Battleground::GetStatus(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), HORDE, WorldObject::IsWithinDistInMap(), m_Nodes, m_NodeTimers, m_prevNodes, Battleground::PlaySoundToAll(), Unit::RemoveAurasWithInterruptFlags(), SCORE_BASES_ASSAULTED, SCORE_BASES_DEFENDED, Battleground::SendBroadcastText(), STATUS_IN_PROGRESS, TEAM_ALLIANCE, and UpdatePlayerScore().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 311 of file BattlegroundAB.cpp.
References BG_AB_DYNAMIC_NODES_COUNT, BG_AB_MAX_TEAM_SCORE, BG_AB_NODE_STATUS_ALLY_OCCUPIED, BG_AB_NODE_STATUS_HORDE_OCCUPIED, BG_AB_OP_NODEICONS, BG_AB_OP_NODESTATES, BG_AB_OP_OCCUPIED_BASES_ALLY, BG_AB_OP_OCCUPIED_BASES_HORDE, BG_AB_OP_RESOURCES_ALLY, BG_AB_OP_RESOURCES_HORDE, BG_AB_OP_RESOURCES_MAX, BG_AB_OP_RESOURCES_WARNING, BG_AB_WARNING_NEAR_VICTORY_SCORE, m_Nodes, Battleground::m_TeamScores, TEAM_ALLIANCE, TEAM_HORDE, and WorldPackets::WorldState::InitWorldStates::Worldstates.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 643 of file BattlegroundAB.cpp.
References BG_AB_DYNAMIC_NODES_COUNT, BG_AB_GraveyardIds, Position::GetPositionX(), Position::GetPositionY(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), WorldSafeLocsEntry::Loc, m_Nodes, sWorldSafeLocsStore, DBCPosition3D::X, and DBCPosition3D::Y.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 540 of file BattlegroundAB.cpp.
References ALLIANCE, BG_AB_DYNAMIC_NODES_COUNT, BG_AB_NODE_STATUS_ALLY_OCCUPIED, BG_AB_NODE_STATUS_HORDE_OCCUPIED, Battleground::GetPrematureWinner(), HORDE, and m_Nodes.
Reimplemented from Battleground.
Definition at line 241 of file BattlegroundAB.cpp.
References ALLIANCE, Player::GetSession(), Battleground::GetStatus(), Player::GetTeam(), Battleground::HandleAreaTrigger(), HORDE, Player::LeaveBattleground(), WorldSession::SendAreaTriggerMessage(), and STATUS_IN_PROGRESS.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 701 of file BattlegroundAB.cpp.
References ALLIANCE, BG_AB_DYNAMIC_NODES_COUNT, BG_AB_NODE_STATUS_ALLY_OCCUPIED, BG_AB_NODE_STATUS_HORDE_OCCUPIED, HORDE, and m_Nodes.
|
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 68 of file BattlegroundAB.cpp.
References _CreateBanner(), _DelBanner(), _NodeOccupied(), _SendNodeUpdate(), ABNodes, ALLIANCE, BG_AB_DYNAMIC_NODES_COUNT, BG_AB_MAX_TEAM_SCORE, BG_AB_NODE_TYPE_CONTESTED, BG_AB_NODE_TYPE_OCCUPIED, BG_AB_OP_RESOURCES_ALLY, BG_AB_OP_RESOURCES_HORDE, BG_AB_SOUND_NEAR_VICTORY_ALLIANCE, BG_AB_SOUND_NEAR_VICTORY_HORDE, BG_AB_SOUND_NODE_CAPTURED_ALLIANCE, BG_AB_SOUND_NODE_CAPTURED_HORDE, BG_AB_TEXT_ALLIANCE_NEAR_VICTORY, BG_AB_TEXT_HORDE_NEAR_VICTORY, BG_AB_TickIntervals, BG_AB_TickPoints, BG_AB_WARNING_NEAR_VICTORY_SCORE, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, CHAT_MSG_BG_SYSTEM_NEUTRAL, EndBattleground(), Battleground::GetBonusHonorFromKill(), Battleground::GetStatus(), HORDE, m_BannerTimers, m_HonorScoreTics, m_HonorTics, m_IsInformedNearVictory, m_lastTick, m_Nodes, m_NodeTimers, m_prevNodes, m_ReputationScoreTics, m_ReputationTics, Battleground::m_TeamScores, m_TeamScores500Disadvantage, Battleground::PlaySoundToAll(), PVP_TEAMS_COUNT, Battleground::RewardHonorToTeam(), Battleground::RewardReputationToTeam(), Battleground::SendBroadcastText(), STATUS_IN_PROGRESS, TEAM_ALLIANCE, TEAM_HORDE, BG_AB_BannerTimer::timer, and Battleground::UpdateWorldState().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 237 of file BattlegroundAB.cpp.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 596 of file BattlegroundAB.cpp.
References BG_AB_ABBGWeekendHonorTicks, BG_AB_ABBGWeekendReputationTicks, BG_AB_ALL_NODES_COUNT, BG_AB_DYNAMIC_NODES_COUNT, BG_AB_NotABBGWeekendHonorTicks, BG_AB_NotABBGWeekendReputationTicks, Battleground::BgCreatures, Battleground::DelCreature(), Battleground::GetTypeID(), m_BannerTimers, m_HonorScoreTics, m_HonorTics, m_IsInformedNearVictory, m_lastTick, m_Nodes, m_NodeTimers, m_prevNodes, m_ReputationScoreTics, m_ReputationTics, Battleground::m_TeamScores, m_TeamScores500Disadvantage, Battleground::Reset(), sBattlegroundMgr, TEAM_ALLIANCE, TEAM_HORDE, and BG_AB_BannerTimer::timer.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 559 of file BattlegroundAB.cpp.
References Battleground::AddObject(), BG_AB_BuffPositions, BG_AB_DoorPositions, BG_AB_DYNAMIC_NODES_COUNT, BG_AB_NodePositions, BG_AB_OBJECT_AURA_ALLY, BG_AB_OBJECT_AURA_CONTESTED, BG_AB_OBJECT_AURA_HORDE, BG_AB_OBJECT_BANNER_ALLY, BG_AB_OBJECT_BANNER_CONT_A, BG_AB_OBJECT_BANNER_CONT_H, BG_AB_OBJECT_BANNER_HORDE, BG_AB_OBJECT_BANNER_NEUTRAL, BG_AB_OBJECT_GATE_A, BG_AB_OBJECT_GATE_H, BG_AB_OBJECT_SPEEDBUFF_STABLES, BG_AB_OBJECTID_AURA_A, BG_AB_OBJECTID_AURA_C, BG_AB_OBJECTID_AURA_H, BG_AB_OBJECTID_BANNER_A, BG_AB_OBJECTID_BANNER_CONT_A, BG_AB_OBJECTID_BANNER_CONT_H, BG_AB_OBJECTID_BANNER_H, BG_AB_OBJECTID_GATE_A, BG_AB_OBJECTID_GATE_H, BG_AB_OBJECTID_NODE_BANNER_0, Buff_Entries, RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, and TC_LOG_ERROR.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 192 of file BattlegroundAB.cpp.
References _NodeOccupied(), ALLIANCE, BG_AB_DYNAMIC_NODES_COUNT, BG_AB_OBJECT_BANNER_NEUTRAL, BG_AB_OBJECT_GATE_A, BG_AB_OBJECT_GATE_H, BG_AB_OBJECT_SPEEDBUFF_STABLES, BG_AB_SPIRIT_ALIANCE, BG_AB_SPIRIT_HORDE, Battleground::DoorClose(), HORDE, RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, and Battleground::SpawnBGObject().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 211 of file BattlegroundAB.cpp.
References AB_EVENT_START_BATTLE, ACHIEVEMENT_TIMED_TYPE_EVENT, BG_AB_DYNAMIC_NODES_COUNT, BG_AB_OBJECT_BANNER_NEUTRAL, BG_AB_OBJECT_GATE_A, BG_AB_OBJECT_GATE_H, BG_AB_OBJECT_SPEEDBUFF_STABLES, Battleground::DoorOpen(), RESPAWN_IMMEDIATELY, Battleground::SpawnBGObject(), Battleground::StartTimedAchievement(), and urand().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 682 of file BattlegroundAB.cpp.
References AB_OBJECTIVE_ASSAULT_BASE, AB_OBJECTIVE_DEFEND_BASE, ACHIEVEMENT_CRITERIA_TYPE_BG_OBJECTIVE_CAPTURE, SCORE_BASES_ASSAULTED, SCORE_BASES_DEFENDED, Player::UpdateAchievementCriteria(), and Battleground::UpdatePlayerScore().
Referenced by EventPlayerClickedOnFlag().
|
private |
Definition at line 349 of file BattlegroundAB.h.
Referenced by _CreateBanner(), BattlegroundAB(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 352 of file BattlegroundAB.h.
Referenced by BattlegroundAB(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 355 of file BattlegroundAB.h.
Referenced by BattlegroundAB(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 354 of file BattlegroundAB.h.
Referenced by BattlegroundAB(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 351 of file BattlegroundAB.h.
Referenced by BattlegroundAB(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 347 of file BattlegroundAB.h.
Referenced by _NodeOccupied(), _SendNodeUpdate(), BattlegroundAB(), EventPlayerClickedOnFlag(), FillInitialWorldStates(), GetClosestGraveyard(), GetPrematureWinner(), IsAllNodesControlledByTeam(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 350 of file BattlegroundAB.h.
Referenced by _NodeOccupied(), BattlegroundAB(), EventPlayerClickedOnFlag(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 348 of file BattlegroundAB.h.
Referenced by _SendNodeUpdate(), BattlegroundAB(), EventPlayerClickedOnFlag(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 353 of file BattlegroundAB.h.
Referenced by BattlegroundAB(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 356 of file BattlegroundAB.h.
Referenced by BattlegroundAB(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 358 of file BattlegroundAB.h.
Referenced by BattlegroundAB(), CheckAchievementCriteriaMeet(), PostUpdateImpl(), and Reset().