|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <BattlegroundBFG.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. | |
Definition at line 207 of file BattlegroundBFG.h.
| BattlegroundBFG::BattlegroundBFG | ( | ) |
Definition at line 20 of file BattlegroundBFG.cpp.
References BG_STARTING_EVENT_FIRST, BG_STARTING_EVENT_FOURTH, BG_STARTING_EVENT_SECOND, BG_STARTING_EVENT_THIRD, BG_TEAMS_COUNT, Battleground::BgCreatures, Battleground::BgObjects, GILNEAS_BG_ALL_NODES_COUNT, GILNEAS_BG_DYNAMIC_NODES_COUNT, GILNEAS_BG_OBJECT_MAX, LANG_BG_BFG_HAS_BEGUN, LANG_BG_BFG_START_HALF_MINUTE, LANG_BG_BFG_START_ONE_MINUTE, LANG_BG_BFG_START_TWO_MINUTES, 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, and Battleground::StartMessageIds.
| BattlegroundBFG::~BattlegroundBFG | ( | ) |
Definition at line 54 of file BattlegroundBFG.cpp.
Definition at line 242 of file BattlegroundBFG.cpp.
References GILNEAS_BG_NODE_TYPE_OCCUPIED, m_BannerTimers, RESPAWN_IMMEDIATELY, and Battleground::SpawnBGObject().
Referenced by EventPlayerClickedOnFlag(), and PostUpdateImpl().
Definition at line 264 of file BattlegroundBFG.cpp.
References GILNEAS_BG_NODE_TYPE_OCCUPIED, RESPAWN_ONE_DAY, and Battleground::SpawnBGObject().
Referenced by EventPlayerClickedOnFlag(), and PostUpdateImpl().
Definition at line 276 of file BattlegroundBFG.cpp.
References ASSERT, GILNEAS_BG_NODE_LIGHTHOUSE, GILNEAS_BG_NODE_MINE, GILNEAS_BG_NODE_WATERWORKS, LANG_BG_BFG_NODE_LIGHTHOUSE, LANG_BG_BFG_NODE_MINE, and LANG_BG_BFG_NODE_WATERWORKS.
Referenced by EventPlayerClickedOnFlag(), and PostUpdateImpl().
|
private |
Definition at line 374 of file BattlegroundBFG.cpp.
References Battleground::BgCreatures, Battleground::DelCreature(), GILNEAS_BG_DYNAMIC_NODES_COUNT, and Battleground::RelocateDeadPlayers().
Referenced by EventPlayerClickedOnFlag().
Definition at line 347 of file BattlegroundBFG.cpp.
References Battleground::AddCreature(), Battleground::AddSpiritGuide(), ALLIANCE, Battleground::BgCreatures, Unit::CastSpell(), Battleground::GetBGCreature(), Battleground::GetTeamIndexByTeamId(), GILNEAS_BG_DYNAMIC_NODES_COUNT, GILNEAS_BG_NODE_TYPE_OCCUPIED, GILNEAS_BG_NodePositions, GILNEAS_BG_SpiritGuidePos, m_Nodes, m_NodeTimers, Unit::setFaction(), SF_LOG_ERROR, SPELL_HONORABLE_DEFENDER_25Y, and WORLD_TRIGGER.
Referenced by EventPlayerClickedOnFlag(), PostUpdateImpl(), and StartingEventCloseDoors().
|
private |
Definition at line 323 of file BattlegroundBFG.cpp.
References GILNEAS_BG_DYNAMIC_NODES_COUNT, GILNEAS_BG_NODE_STATUS_ALLY_OCCUPIED, GILNEAS_BG_NODE_STATUS_HORDE_OCCUPIED, GILNEAS_BG_OP_NODEICONS, GILNEAS_BG_OP_NODESTATES, GILNEAS_BG_OP_OCCUPIED_BASES_ALLY, GILNEAS_BG_OP_OCCUPIED_BASES_HORDE, m_Nodes, m_prevNodes, and Battleground::UpdateWorldState().
Referenced by EventPlayerClickedOnFlag(), and PostUpdateImpl().
|
virtual |
Reimplemented from Battleground.
Definition at line 212 of file BattlegroundBFG.cpp.
References Battleground::AddPlayer(), Object::GetGUID(), and Battleground::PlayerScores.
|
virtual |
Reimplemented from Battleground.
Definition at line 691 of file BattlegroundBFG.cpp.
References BG_CRITERIA_CHECK_RESILIENT_VICTORY, Battleground::CheckAchievementCriteriaMeet(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), and m_TeamScores500Disadvantage.
| void BattlegroundBFG::EndBattleground | ( | uint32 | winner | ) |
Definition at line 603 of file BattlegroundBFG.cpp.
References ALLIANCE, Battleground::EndBattleground(), Battleground::GetBonusHonorFromKill(), HORDE, and Battleground::RewardHonorToTeam().
Referenced by PostUpdateImpl().
|
virtual |
Reimplemented from Battleground.
Definition at line 391 of file BattlegroundBFG.cpp.
References _CreateBanner(), _DelBanner(), _GetNodeNameId(), _NodeDeOccupied(), _NodeOccupied(), _SendNodeUpdate(), ALLIANCE, AURA_INTERRUPT_FLAG_ENTER_PVP_COMBAT, Battleground::BgObjects, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, Battleground::GetBgMap(), Map::GetGameObject(), Battleground::GetStatus(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), GILNEAS_BG_DYNAMIC_NODES_COUNT, GILNEAS_BG_FLAG_CAPTURING_TIME, GILNEAS_BG_NODE_LIGHTHOUSE, GILNEAS_BG_NODE_STATUS_ALLY_CONTESTED, GILNEAS_BG_NODE_STATUS_HORDE_CONTESTED, GILNEAS_BG_NODE_TYPE_CONTESTED, GILNEAS_BG_NODE_TYPE_NEUTRAL, GILNEAS_BG_NODE_TYPE_OCCUPIED, GILNEAS_BG_OBJECT_AURA_CONTESTED, GILNEAS_BG_SOUND_NODE_ASSAULTED_ALLIANCE, GILNEAS_BG_SOUND_NODE_ASSAULTED_HORDE, GILNEAS_BG_SOUND_NODE_CLAIMED, HORDE, WorldObject::IsWithinDistInMap(), LANG_BG_BFG_ALLY, LANG_BG_BFG_HORDE, LANG_BG_BFG_NODE_ASSAULTED, LANG_BG_BFG_NODE_CLAIMED, LANG_BG_BFG_NODE_DEFENDED, LANG_BG_BFG_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 289 of file BattlegroundBFG.cpp.
References WorldStateBuilder::AppendState(), GILNEAS_BG_DYNAMIC_NODES_COUNT, GILNEAS_BG_MAX_TEAM_SCORE, GILNEAS_BG_NODE_STATUS_ALLY_OCCUPIED, GILNEAS_BG_NODE_STATUS_HORDE_OCCUPIED, GILNEAS_BG_OP_NODEICONS, GILNEAS_BG_OP_NODESTATES, GILNEAS_BG_OP_OCCUPIED_BASES_ALLY, GILNEAS_BG_OP_OCCUPIED_BASES_HORDE, GILNEAS_BG_OP_RESOURCES_ALLY, GILNEAS_BG_OP_RESOURCES_HORDE, GILNEAS_BG_OP_RESOURCES_MAX, GILNEAS_BG_OP_RESOURCES_WARNING, GILNEAS_BG_WARNING_NEAR_VICTORY_SCORE, m_Nodes, Battleground::m_TeamScores, TEAM_ALLIANCE, and TEAM_HORDE.
|
virtual |
Reimplemented from Battleground.
Definition at line 617 of file BattlegroundBFG.cpp.
References Position::GetPositionX(), Position::GetPositionY(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), GILNEAS_BG_DYNAMIC_NODES_COUNT, GILNEAS_BG_GraveyardIds, m_Nodes, sWorldSafeLocsStore, WorldSafeLocsEntry::x, and WorldSafeLocsEntry::y.
|
virtual |
Reimplemented from Battleground.
Definition at line 515 of file BattlegroundBFG.cpp.
References ALLIANCE, Battleground::GetPrematureWinner(), GILNEAS_BG_DYNAMIC_NODES_COUNT, GILNEAS_BG_NODE_STATUS_ALLY_OCCUPIED, GILNEAS_BG_NODE_STATUS_HORDE_OCCUPIED, HORDE, and m_Nodes.
Reimplemented from Battleground.
Definition at line 221 of file BattlegroundBFG.cpp.
References Battleground::GetStatus(), Battleground::HandleAreaTrigger(), and STATUS_IN_PROGRESS.
|
virtual |
Reimplemented from Battleground.
Definition at line 680 of file BattlegroundBFG.cpp.
References ALLIANCE, GILNEAS_BG_DYNAMIC_NODES_COUNT, GILNEAS_BG_NODE_STATUS_ALLY_OCCUPIED, GILNEAS_BG_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 56 of file BattlegroundBFG.cpp.
References _CreateBanner(), _DelBanner(), _GetNodeNameId(), _NodeOccupied(), _SendNodeUpdate(), ALLIANCE, BG_TEAMS_COUNT, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, CHAT_MSG_BG_SYSTEM_NEUTRAL, EndBattleground(), Battleground::GetBonusHonorFromKill(), Battleground::GetStatus(), GILNEAS_BG_DYNAMIC_NODES_COUNT, GILNEAS_BG_MAX_TEAM_SCORE, GILNEAS_BG_NODE_TYPE_CONTESTED, GILNEAS_BG_NODE_TYPE_OCCUPIED, GILNEAS_BG_OP_RESOURCES_ALLY, GILNEAS_BG_OP_RESOURCES_HORDE, GILNEAS_BG_SOUND_NEAR_VICTORY, GILNEAS_BG_SOUND_NODE_CAPTURED_ALLIANCE, GILNEAS_BG_SOUND_NODE_CAPTURED_HORDE, GILNEAS_BG_TickIntervals, GILNEAS_BG_TickPoints, GILNEAS_BG_WARNING_NEAR_VICTORY_SCORE, HORDE, LANG_BG_BFG_A_NEAR_VICTORY, LANG_BG_BFG_ALLY, LANG_BG_BFG_H_NEAR_VICTORY, LANG_BG_BFG_HORDE, LANG_BG_BFG_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 219 of file BattlegroundBFG.cpp.
|
virtual |
Reimplemented from Battleground.
Definition at line 570 of file BattlegroundBFG.cpp.
References Battleground::BgCreatures, Battleground::DelCreature(), Battleground::GetTypeID(), GILNEAS_BG_ALL_NODES_COUNT, GILNEAS_BG_BGWeekendHonorTicks, GILNEAS_BG_BGWeekendRepTicks, GILNEAS_BG_DYNAMIC_NODES_COUNT, GILNEAS_BG_NotBGWeekendHonorTicks, GILNEAS_BG_NotBGWeekendRepTicks, 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 534 of file BattlegroundBFG.cpp.
References Battleground::AddObject(), Buff_Entries, GILNEAS_BG_BuffPositions, GILNEAS_BG_DoorPositions, GILNEAS_BG_DYNAMIC_NODES_COUNT, GILNEAS_BG_NodePositions, GILNEAS_BG_OBJECT_AURA_ALLY, GILNEAS_BG_OBJECT_AURA_CONTESTED, GILNEAS_BG_OBJECT_AURA_HORDE, GILNEAS_BG_OBJECT_BANNER_ALLY, GILNEAS_BG_OBJECT_BANNER_CONT_A, GILNEAS_BG_OBJECT_BANNER_CONT_H, GILNEAS_BG_OBJECT_BANNER_HORDE, GILNEAS_BG_OBJECT_BANNER_NEUTRAL, GILNEAS_BG_OBJECT_GATE_A_1, GILNEAS_BG_OBJECT_GATE_H_1, GILNEAS_BG_OBJECT_SPEEDBUFF_LIGHTHOUSE, GILNEAS_BG_OBJECTID_AURA_A, GILNEAS_BG_OBJECTID_AURA_C, GILNEAS_BG_OBJECTID_AURA_H, GILNEAS_BG_OBJECTID_BANNER_A, GILNEAS_BG_OBJECTID_BANNER_CONT_A, GILNEAS_BG_OBJECTID_BANNER_CONT_H, GILNEAS_BG_OBJECTID_BANNER_H, GILNEAS_BG_OBJECTID_GATE_A_1, GILNEAS_BG_OBJECTID_GATE_H_1, GILNEAS_BG_OBJECTID_NODE_BANNER_0, RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, and SF_LOG_ERROR.
|
virtual |
Reimplemented from Battleground.
Definition at line 175 of file BattlegroundBFG.cpp.
References _NodeOccupied(), ALLIANCE, Battleground::DoorClose(), GILNEAS_BG_DYNAMIC_NODES_COUNT, GILNEAS_BG_OBJECT_BANNER_NEUTRAL, GILNEAS_BG_OBJECT_GATE_A_1, GILNEAS_BG_OBJECT_GATE_H_1, GILNEAS_BG_OBJECT_SPEEDBUFF_LIGHTHOUSE, GILNEAS_BG_SPIRIT_ALIANCE, GILNEAS_BG_SPIRIT_HORDE, HORDE, RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, and Battleground::SpawnBGObject().
|
virtual |
Reimplemented from Battleground.
Definition at line 194 of file BattlegroundBFG.cpp.
References ACHIEVEMENT_TIMED_TYPE_EVENT, BG_EVENT_START_BATTLE, Battleground::DoorOpen(), GILNEAS_BG_DYNAMIC_NODES_COUNT, GILNEAS_BG_OBJECT_BANNER_NEUTRAL, GILNEAS_BG_OBJECT_GATE_A_1, GILNEAS_BG_OBJECT_GATE_H_1, GILNEAS_BG_OBJECT_SPEEDBUFF_LIGHTHOUSE, RESPAWN_IMMEDIATELY, Battleground::SpawnBGObject(), and Battleground::StartTimedAchievement().
|
virtual |
Reimplemented from Battleground.
Definition at line 658 of file BattlegroundBFG.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_BG_OBJECTIVE_CAPTURE, BG_OBJECTIVE_ASSAULT_BASE, BG_OBJECTIVE_DEFEND_BASE, Object::GetGUID(), Battleground::PlayerScores, SCORE_BASES_ASSAULTED, SCORE_BASES_DEFENDED, Player::UpdateAchievementCriteria(), and Battleground::UpdatePlayerScore().
Referenced by EventPlayerClickedOnFlag().
|
private |
Definition at line 257 of file BattlegroundBFG.h.
Referenced by _CreateBanner(), BattlegroundBFG(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 260 of file BattlegroundBFG.h.
Referenced by BattlegroundBFG(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 263 of file BattlegroundBFG.h.
Referenced by BattlegroundBFG(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 262 of file BattlegroundBFG.h.
Referenced by BattlegroundBFG(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 259 of file BattlegroundBFG.h.
Referenced by BattlegroundBFG(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 255 of file BattlegroundBFG.h.
Referenced by _NodeOccupied(), _SendNodeUpdate(), BattlegroundBFG(), EventPlayerClickedOnFlag(), FillInitialWorldStates(), GetClosestGraveYard(), GetPrematureWinner(), IsAllNodesControlledByTeam(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 258 of file BattlegroundBFG.h.
Referenced by _NodeOccupied(), BattlegroundBFG(), EventPlayerClickedOnFlag(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 256 of file BattlegroundBFG.h.
Referenced by _SendNodeUpdate(), BattlegroundBFG(), EventPlayerClickedOnFlag(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 261 of file BattlegroundBFG.h.
Referenced by BattlegroundBFG(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 264 of file BattlegroundBFG.h.
Referenced by BattlegroundBFG(), PostUpdateImpl(), and Reset().
|
private |
Definition at line 266 of file BattlegroundBFG.h.
Referenced by BattlegroundBFG(), CheckAchievementCriteriaMeet(), PostUpdateImpl(), and Reset().