diff options
author | Jeremy <Golrag@users.noreply.github.com> | 2021-02-08 23:11:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 23:11:40 +0100 |
commit | e9357dc7f29fc15a72a3dc25b647d577dc979db8 (patch) | |
tree | 09c1ada1ffdc0980484b31f19cad1dd8189646c7 /src/server/game/Battlegrounds/Battleground.h | |
parent | 086f337d1534be5b332670fb41a8b883ab731a3a (diff) |
Core/Auras: Implement SPELL_AURA_BATTLEGROUND_PLAYER_POSITION_FACTIONAL (397) & SPELL_AURA_BATTLEGROUND_PLAYER_POSITION (398) (#25988)
Diffstat (limited to 'src/server/game/Battlegrounds/Battleground.h')
-rw-r--r-- | src/server/game/Battlegrounds/Battleground.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.h b/src/server/game/Battlegrounds/Battleground.h index dcd89fff157..383855cec1b 100644 --- a/src/server/game/Battlegrounds/Battleground.h +++ b/src/server/game/Battlegrounds/Battleground.h @@ -23,6 +23,7 @@ #include "Position.h" #include "SharedDefines.h" #include <map> +#include <vector> class BattlegroundMap; class Creature; @@ -259,8 +260,11 @@ class TC_GAME_API Battleground { public: Battleground(BattlegroundTemplate const* battlegroundTemplate); + Battleground(Battleground const&); virtual ~Battleground(); + Battleground& operator=(Battleground const&) = delete; + void Update(uint32 diff); virtual bool SetupBattleground() // must be implemented in BG subclass @@ -502,6 +506,9 @@ class TC_GAME_API Battleground // because BattleGrounds with different types and same level range has different m_BracketId uint8 GetUniqueBracketId() const; + void AddPlayerPosition(WorldPackets::Battleground::BattlegroundPlayerPosition const& position); + void RemovePlayerPosition(ObjectGuid guid); + protected: // this method is called, when BG cannot spawn its own spirit guide, or something is wrong, It correctly ends Battleground void EndNow(); @@ -549,7 +556,6 @@ class TC_GAME_API Battleground void _ProcessJoin(uint32 diff); void _CheckSafePositions(uint32 diff); void _ProcessPlayerPositionBroadcast(uint32 diff); - virtual void GetPlayerPositionData(std::vector<WorldPackets::Battleground::BattlegroundPlayerPosition>* /*positions*/) const { } // Scorekeeping BattlegroundScoreMap PlayerScores; // Player scores @@ -624,5 +630,7 @@ class TC_GAME_API Battleground BattlegroundTemplate const* _battlegroundTemplate; PVPDifficultyEntry const* _pvpDifficultyEntry; + + std::vector<WorldPackets::Battleground::BattlegroundPlayerPosition> _playerPositions; }; #endif |