|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <BattlegroundAB.h>
Private Member Functions | |
| void | _CreateBanner (uint8 node, uint8 type, uint8 teamIndex, bool delay) |
| void | _DelBanner (uint8 node, uint8 type, uint8 teamIndex) |
| int32 | _GetNodeNameId (uint8 node) |
| void | _NodeDeOccupied (uint8 node) |
| void | _NodeOccupied (uint8 node, Team team) |
| void | _SendNodeUpdate (uint8 node) |
| void | PostUpdateImpl (uint32 diff) OVERRIDE |
| Post-update hook. | |
Private Attributes | |
| BG_AB_BannerTimer | m_BannerTimers [BG_AB_DYNAMIC_NODES_COUNT] = { } |
| uint32 | m_HonorScoreTics [BG_TEAMS_COUNT] = { } |
| uint32 | m_HonorTics |
| bool | m_IsInformedNearVictory |
| uint32 | m_lastTick [BG_TEAMS_COUNT] = { } |
| uint8 | m_Nodes [BG_AB_DYNAMIC_NODES_COUNT] = { } |
| uint32 | m_NodeTimers [BG_AB_DYNAMIC_NODES_COUNT] = { } |
| uint8 | m_prevNodes [BG_AB_DYNAMIC_NODES_COUNT] = { } |
| uint32 | m_ReputationScoreTics [BG_TEAMS_COUNT] = { } |
| uint32 | m_ReputationTics |
| bool | m_TeamScores500Disadvantage [BG_TEAMS_COUNT] = { } |
Definition at line 235 of file BattlegroundAB.h.
| BattlegroundAB::BattlegroundAB | ( | ) |
Definition at line 18 of file BattlegroundAB.cpp.
References BG_AB_ALL_NODES_COUNT, BG_AB_OBJECT_MAX, BG_STARTING_EVENT_FIRST, BG_STARTING_EVENT_FOURTH, BG_STARTING_EVENT_SECOND, BG_STARTING_EVENT_THIRD, Battleground::BgCreatures, Battleground::BgObjects, LANG_BG_AB_HAS_BEGUN, LANG_BG_AB_START_HALF_MINUTE, LANG_BG_AB_START_ONE_MINUTE, LANG_BG_AB_START_TWO_MINUTES, Battleground::m_BuffChange, m_HonorTics, m_IsInformedNearVictory, m_ReputationTics, and Battleground::StartMessageIds.
| BattlegroundAB::~BattlegroundAB | ( | ) |
Definition at line 30 of file BattlegroundAB.cpp.
Definition at line 235 of file BattlegroundAB.cpp.
References BG_AB_NODE_TYPE_OCCUPIED, m_BannerTimers, RESPAWN_IMMEDIATELY, and Battleground::SpawnBGObject().
Referenced by EventPlayerClickedOnFlag(), and PostUpdateImpl().
Definition at line 257 of file BattlegroundAB.cpp.
References BG_AB_NODE_TYPE_OCCUPIED, RESPAWN_ONE_DAY, and Battleground::SpawnBGObject().
Referenced by EventPlayerClickedOnFlag(), and PostUpdateImpl().
Definition at line 269 of file BattlegroundAB.cpp.
References ASSERT, BG_AB_NODE_BLACKSMITH, BG_AB_NODE_FARM, BG_AB_NODE_GOLD_MINE, BG_AB_NODE_LUMBER_MILL, BG_AB_NODE_STABLES, LANG_BG_AB_NODE_BLACKSMITH, LANG_BG_AB_NODE_FARM, LANG_BG_AB_NODE_GOLD_MINE, LANG_BG_AB_NODE_LUMBER_MILL, and LANG_BG_AB_NODE_STABLES.
Referenced by EventPlayerClickedOnFlag(), and PostUpdateImpl().
|
private |
Definition at line 374 of file BattlegroundAB.cpp.
References BG_AB_DYNAMIC_NODES_COUNT, Battleground::BgCreatures, Battleground::DelCreature(), and Battleground::RelocateDeadPlayers().
Referenced by EventPlayerClickedOnFlag().
Definition at line 342 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, Unit::CastSpell(), Battleground::CastSpellOnTeam(), Battleground::GetBGCreature(), Battleground::GetTeamIndexByTeamId(), m_Nodes, m_NodeTimers, Unit::setFaction(), SF_LOG_ERROR, SPELL_AB_QUEST_REWARD_4_BASES, SPELL_AB_QUEST_REWARD_5_BASES, SPELL_HONORABLE_DEFENDER_25Y, and WORLD_TRIGGER.
Referenced by EventPlayerClickedOnFlag(), PostUpdateImpl(), and StartingEventCloseDoors().
|
private |
Definition at line 318 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().
|
virtual |
Reimplemented from Battleground.
Definition at line 190 of file BattlegroundAB.cpp.
References Battleground::AddPlayer(), Object::GetGUID(), and Battleground::PlayerScores.
|
virtual |
Reimplemented from Battleground.
Definition at line 694 of file BattlegroundAB.cpp.
References BG_CRITERIA_CHECK_RESILIENT_VICTORY, Battleground::CheckAchievementCriteriaMeet(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), and m_TeamScores500Disadvantage.
| void BattlegroundAB::EndBattleground | ( | uint32 | winner | ) |
Definition at line 608 of file BattlegroundAB.cpp.
References ALLIANCE, Battleground::EndBattleground(), Battleground::GetBonusHonorFromKill(), HORDE, and Battleground::RewardHonorToTeam().
Referenced by PostUpdateImpl().
|
virtual |
Reimplemented from Battleground.
Definition at line 391 of file BattlegroundAB.cpp.
References _CreateBanner(), _DelBanner(), _GetNodeNameId(), _NodeDeOccupied(), _NodeOccupied(), _SendNodeUpdate(), 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(), LANG_BG_AB_ALLY, LANG_BG_AB_HORDE, LANG_BG_AB_NODE_ASSAULTED, LANG_BG_AB_NODE_CLAIMED, LANG_BG_AB_NODE_DEFENDED, LANG_BG_AB_NODE_TAKEN, m_Nodes, m_NodeTimers, m_prevNodes, Battleground::PlaySoundToAll(), Unit::RemoveAurasWithInterruptFlags(), SCORE_BASES_ASSAULTED, SCORE_BASES_DEFENDED, Battleground::SendMessage2ToAll(), STATUS_IN_PROGRESS, TEAM_ALLIANCE, and UpdatePlayerScore().
|
virtual |
Reimplemented from Battleground.
Definition at line 284 of file BattlegroundAB.cpp.
References WorldStateBuilder::AppendState(), 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, and TEAM_HORDE.
|
virtual |
Reimplemented from Battleground.
Definition at line 622 of file BattlegroundAB.cpp.
References BG_AB_DYNAMIC_NODES_COUNT, BG_AB_GraveyardIds, Position::GetPositionX(), Position::GetPositionY(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), m_Nodes, sWorldSafeLocsStore, WorldSafeLocsEntry::x, and WorldSafeLocsEntry::y.
|
virtual |
Reimplemented from Battleground.
Definition at line 518 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 201 of file BattlegroundAB.cpp.
References ALLIANCE, Player::GetSession(), Battleground::GetStatus(), Player::GetTeam(), Battleground::HandleAreaTrigger(), HORDE, Player::LeaveBattleground(), WorldSession::SendNotification(), and STATUS_IN_PROGRESS.
|
virtual |
Reimplemented from Battleground.
Definition at line 683 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.
|
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 32 of file BattlegroundAB.cpp.
References _CreateBanner(), _DelBanner(), _GetNodeNameId(), _NodeOccupied(), _SendNodeUpdate(), 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, BG_AB_SOUND_NODE_CAPTURED_ALLIANCE, BG_AB_SOUND_NODE_CAPTURED_HORDE, BG_AB_TickIntervals, BG_AB_TickPoints, BG_AB_WARNING_NEAR_VICTORY_SCORE, BG_TEAMS_COUNT, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, CHAT_MSG_BG_SYSTEM_NEUTRAL, EndBattleground(), Battleground::GetBonusHonorFromKill(), Battleground::GetStatus(), HORDE, LANG_BG_AB_A_NEAR_VICTORY, LANG_BG_AB_ALLY, LANG_BG_AB_H_NEAR_VICTORY, LANG_BG_AB_HORDE, LANG_BG_AB_NODE_TAKEN, 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(), Battleground::RewardHonorToTeam(), Battleground::RewardReputationToTeam(), Battleground::SendMessage2ToAll(), Battleground::SendMessageToAll(), STATUS_IN_PROGRESS, TEAM_ALLIANCE, TEAM_HORDE, and Battleground::UpdateWorldState().
Reimplemented from Battleground.
Definition at line 199 of file BattlegroundAB.cpp.
|
virtual |
Reimplemented from Battleground.
Definition at line 575 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, and TEAM_HORDE.
|
virtual |
Reimplemented from Battleground.
Definition at line 537 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 SF_LOG_ERROR.
|
virtual |
Reimplemented from Battleground.
Definition at line 153 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().
|
virtual |
Reimplemented from Battleground.
Definition at line 172 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(), and Battleground::StartTimedAchievement().
|
virtual |
Reimplemented from Battleground.
Definition at line 661 of file BattlegroundAB.cpp.
References AB_OBJECTIVE_ASSAULT_BASE, AB_OBJECTIVE_DEFEND_BASE, ACHIEVEMENT_CRITERIA_TYPE_BG_OBJECTIVE_CAPTURE, Object::GetGUID(), Battleground::PlayerScores, SCORE_BASES_ASSAULTED, SCORE_BASES_DEFENDED, Player::UpdateAchievementCriteria(), and Battleground::UpdatePlayerScore().
Referenced by EventPlayerClickedOnFlag().
|
private |
Definition at line 286 of file BattlegroundAB.h.
Referenced by _CreateBanner(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 289 of file BattlegroundAB.h.
Referenced by PostUpdateImpl(), and Reset().
|
private |
Definition at line 292 of file BattlegroundAB.h.
Referenced by BattlegroundAB(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 291 of file BattlegroundAB.h.
Referenced by BattlegroundAB(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 288 of file BattlegroundAB.h.
Referenced by PostUpdateImpl(), and Reset().
|
private |
Definition at line 284 of file BattlegroundAB.h.
Referenced by _NodeOccupied(), _SendNodeUpdate(), EventPlayerClickedOnFlag(), FillInitialWorldStates(), GetClosestGraveYard(), GetPrematureWinner(), IsAllNodesControlledByTeam(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 287 of file BattlegroundAB.h.
Referenced by _NodeOccupied(), EventPlayerClickedOnFlag(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 285 of file BattlegroundAB.h.
Referenced by _SendNodeUpdate(), EventPlayerClickedOnFlag(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 290 of file BattlegroundAB.h.
Referenced by PostUpdateImpl(), and Reset().
|
private |
Definition at line 293 of file BattlegroundAB.h.
Referenced by BattlegroundAB(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 295 of file BattlegroundAB.h.
Referenced by CheckAchievementCriteriaMeet(), PostUpdateImpl(), and Reset().