TrinityCore
BattlegroundSA Class Reference

Class for manage Strand of Ancient battleground. More...

#include <BattlegroundSA.h>

+ Inheritance diagram for BattlegroundSA:

Public Member Functions

 BattlegroundSA (BattlegroundTemplate const *battlegroundTemplate)
 
 ~BattlegroundSA ()
 
void PostUpdateImpl (uint32 diff) override
 Called every time for update battle data -Update timer -Round switch. More...
 
void AddPlayer (Player *player, BattlegroundQueueTypeId queueId) override
 Called when a player join battle. More...
 
bool SetupBattleground () override
 Called for ini battleground, after that the first player be entered. More...
 
void Reset () override
 
void HandleKillUnit (Creature *creature, Unit *killer) override
 Called when a player kill a unit in bg. More...
 
void ProcessEvent (WorldObject *, uint32, WorldObject *=nullptr) override
 Called when someone activates an event. More...
 
void TitanRelicActivated (Player *clicker)
 Called when a player clicked on relic. More...
 
GateInfo const * GetGate (uint32 entry)
 Return GateInfo, relative to bg data, according to gameobject entry. More...
 
void EndBattleground (Team winner) override
 Called on battleground ending. More...
 
void RemovePlayer (Player *player, ObjectGuid guid, uint32 team) override
 Called when a player leave battleground. More...
 
void OnGameObjectCreate (GameObject *gameobject) override
 
void DoAction (uint32 actionId, WorldObject *source, WorldObject *target) override
 
void OnCreatureCreate (Creature *creature) override
 
void OnMapSet (BattlegroundMap *map) override
 
uint32 GetData (uint32 dataId) const override
 
- Public Member Functions inherited from Battleground
 Battleground (BattlegroundTemplate const *battlegroundTemplate)
 
 Battleground (Battleground const &)
 
virtual ~Battleground ()
 
Battlegroundoperator= (Battleground const &)=delete
 
void Update (uint32 diff)
 
virtual bool SetupBattleground ()
 
virtual void Reset ()
 
virtual void StartingEventCloseDoors ()
 
virtual void StartingEventOpenDoors ()
 
virtual void DestroyGate (Player *, GameObject *)
 
void TriggerGameEvent (uint32 gameEventId, WorldObject *source=nullptr, WorldObject *target=nullptr) override
 
char const * GetName () const
 
BattlegroundTypeId GetTypeID () const
 
BattlegroundBracketId GetBracketId () const
 
uint32 GetInstanceID () const
 
BattlegroundStatus GetStatus () const
 
uint32 GetClientInstanceID () const
 
uint32 GetElapsedTime () const
 
uint32 GetRemainingTime () const
 
uint32 GetMaxPlayers () const
 
uint32 GetMinPlayers () const
 
uint32 GetMinLevel () const
 
uint32 GetMaxLevel () const
 
uint32 GetMaxPlayersPerTeam () const
 
uint32 GetMinPlayersPerTeam () const
 
int32 GetStartDelayTime () const
 
uint8 GetArenaType () const
 
PvPTeamId GetWinner () const
 
uint32 GetScriptId () const
 
uint32 GetBonusHonorFromKill (uint32 kills) const
 
void SetBracket (PVPDifficultyEntry const *bracketEntry)
 
void SetInstanceID (uint32 InstanceID)
 
void SetStatus (BattlegroundStatus Status)
 
void SetClientInstanceID (uint32 InstanceID)
 
void SetElapsedTime (uint32 Time)
 
void SetRemainingTime (uint32 Time)
 
void SetRated (bool state)
 
void SetArenaType (uint8 type)
 
void SetWinner (PvPTeamId winnerTeamId)
 
std::unordered_set< uint32 > const * GetPvpStatIds () const
 
void ModifyStartDelayTime (int diff)
 
void SetStartDelayTime (int Time)
 
void AddToBGFreeSlotQueue ()
 
void RemoveFromBGFreeSlotQueue ()
 
void DecreaseInvitedCount (Team team)
 
void IncreaseInvitedCount (Team team)
 
uint32 GetInvitedCount (Team team) const
 
bool HasFreeSlots () const
 
uint32 GetFreeSlotsForTeam (Team team) const
 
bool isArena () const
 
bool isBattleground () const
 
bool isRated () const
 
BattlegroundPlayerMap const & GetPlayers () const
 
uint32 GetPlayersSize () const
 
uint32 GetPlayerScoresSize () const
 
void StartBattleground ()
 
GameObjectGetBGObject (uint32 type, bool logError=true)
 
CreatureGetBGCreature (uint32 type, bool logError=true)
 
uint32 GetMapId () const
 
void SetBgMap (BattlegroundMap *map)
 
BattlegroundMapGetBgMap () const
 
BattlegroundMapFindBgMap () const
 
WorldSafeLocsEntry const * GetTeamStartPosition (TeamId teamId) const
 
float GetStartMaxDist () const
 
void SendPacketToTeam (Team team, WorldPacket const *packet, Player *except=nullptr) const
 
void SendPacketToAll (WorldPacket const *packet) const
 
void SendChatMessage (Creature *source, uint8 textId, WorldObject *target=nullptr)
 
void SendBroadcastText (uint32 id, ChatMsg msgType, WorldObject const *target=nullptr)
 
template<class Do >
void BroadcastWorker (Do &_do)
 
void PlaySoundToTeam (uint32 SoundID, Team team)
 
void PlaySoundToAll (uint32 SoundID)
 
void CastSpellOnTeam (uint32 SpellID, Team team)
 
void RemoveAuraOnTeam (uint32 SpellID, Team team)
 
void RewardHonorToTeam (uint32 Honor, Team team)
 
void RewardReputationToTeam (uint32 faction_id, uint32 Reputation, Team team)
 
void UpdateWorldState (int32 worldStateId, int32 value, bool hidden=false)
 
virtual void EndBattleground (Team winner)
 
void BlockMovement (Player *player)
 
void SendMessageToAll (uint32 entry, ChatMsg type, Player const *source=nullptr)
 
void PSendMessageToAll (uint32 entry, ChatMsg type, Player const *source,...)
 
GroupGetBgRaid (Team team) const
 
void SetBgRaid (Team team, Group *bg_raid)
 
virtual void BuildPvPLogDataPacket (WorldPackets::Battleground::PVPMatchStatistics &pvpLogData) const
 
BattlegroundScore const * GetBattlegroundScore (Player *player) const
 
virtual bool UpdatePlayerScore (Player *player, uint32 type, uint32 value, bool doAddHonor=true)
 
void UpdatePvpStat (Player *player, uint32 pvpStatId, uint32 value)
 
uint32 GetPlayersCountByTeam (Team team) const
 
uint32 GetAlivePlayersCountByTeam (Team team) const
 
void UpdatePlayersCountByTeam (Team team, bool remove)
 
virtual void CheckWinConditions ()
 
void SetArenaTeamIdForTeam (Team team, uint32 ArenaTeamId)
 
uint32 GetArenaTeamIdForTeam (Team team) const
 
uint32 GetArenaTeamIdByIndex (TeamId teamId) const
 
void SetArenaMatchmakerRating (Team team, uint32 MMR)
 
uint32 GetArenaMatchmakerRating (Team team) const
 
virtual void HandleAreaTrigger (Player *, uint32, bool)
 
virtual void HandleKillPlayer (Player *player, Player *killer)
 
virtual void HandleKillUnit (Creature *, Unit *)
 
virtual void EventPlayerDroppedFlag (Player *)
 
virtual void EventPlayerClickedOnFlag (Player *, GameObject *)
 
void EventPlayerLoggedIn (Player *player)
 
void EventPlayerLoggedOut (Player *player)
 
void ProcessEvent (WorldObject *, uint32, WorldObject *) override
 
virtual void HandlePlayerResurrect (Player *)
 
virtual WorldSafeLocsEntry const * GetClosestGraveyard (Player *player)
 
virtual WorldSafeLocsEntry const * GetExploitTeleportLocation (Team)
 
void TeleportPlayerToExploitLocation (Player *player)
 
virtual void AddPlayer (Player *player, BattlegroundQueueTypeId queueId)
 
void AddOrSetPlayerToCorrectBgGroup (Player *player, Team team)
 
virtual void RemovePlayerAtLeave (ObjectGuid guid, bool Transport, bool SendPacket)
 
void SpawnBGObject (uint32 type, uint32 respawntime)
 
virtual bool AddObject (uint32 type, uint32 entry, float x, float y, float z, float o, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime=0, GOState goState=GO_STATE_READY)
 
bool AddObject (uint32 type, uint32 entry, Position const &pos, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime=0, GOState goState=GO_STATE_READY)
 
virtual CreatureAddCreature (uint32 entry, uint32 type, float x, float y, float z, float o, TeamId teamId=TEAM_NEUTRAL, uint32 respawntime=0, Transport *transport=nullptr)
 
CreatureAddCreature (uint32 entry, uint32 type, Position const &pos, TeamId teamId=TEAM_NEUTRAL, uint32 respawntime=0, Transport *transport=nullptr)
 
bool DelCreature (uint32 type)
 
bool DelObject (uint32 type)
 
bool RemoveObjectFromWorld (uint32 type)
 
virtual bool AddSpiritGuide (uint32 type, float x, float y, float z, float o, TeamId teamId=TEAM_NEUTRAL)
 
bool AddSpiritGuide (uint32 type, Position const &pos, TeamId teamId=TEAM_NEUTRAL)
 
int32 GetObjectType (ObjectGuid guid)
 
void DoorOpen (uint32 type)
 
void DoorClose (uint32 type)
 
virtual bool HandlePlayerUnderMap (Player *)
 
Team GetPlayerTeam (ObjectGuid guid) const
 
Team GetOtherTeam (Team team) const
 
bool IsPlayerInBattleground (ObjectGuid guid) const
 
bool IsPlayerMercenaryInBattleground (ObjectGuid guid) const
 
bool ToBeDeleted () const
 
void SetDeleteThis ()
 
void RewardXPAtKill (Player *killer, Player *victim)
 
bool CanAwardArenaPoints () const
 
virtual ObjectGuid GetFlagPickerGUID (int32=-1) const
 
virtual void SetDroppedFlagGUID (ObjectGuid, int32=-1)
 
virtual void HandleQuestComplete (uint32, Player *)
 
virtual bool CanActivateGO (int32, uint32) const
 
virtual bool IsSpellAllowed (uint32, Player const *) const
 
uint32 GetTeamScore (TeamId teamId) const
 
virtual Team GetPrematureWinner ()
 
uint8 GetUniqueBracketId () const
 
void AddPlayerPosition (WorldPackets::Battleground::BattlegroundPlayerPosition const &position)
 
void RemovePlayerPosition (ObjectGuid guid)
 
BattlegroundPlayer const * GetBattlegroundPlayerData (ObjectGuid const &playerGuid) const
 
virtual void OnMapSet (BattlegroundMap *map)
 
Trinity::unique_weak_ptr< BattlegroundGetWeakPtr () const
 
void SetWeakPtr (Trinity::unique_weak_ptr< Battleground > weakRef)
 
- Public Member Functions inherited from ZoneScript
 ZoneScript ()
 
 ZoneScript (ZoneScript const &right)
 
 ZoneScript (ZoneScript &&right) noexcept
 
ZoneScriptoperator= (ZoneScript const &right)
 
ZoneScriptoperator= (ZoneScript &&right) noexcept
 
virtual ~ZoneScript ()
 
virtual uint32 GetCreatureEntry (ObjectGuid::LowType, CreatureData const *data)
 
virtual uint32 GetGameObjectEntry (ObjectGuid::LowType, uint32 entry)
 
virtual void OnCreatureCreate (Creature *)
 
virtual void OnCreatureRemove (Creature *)
 
virtual void OnGameObjectCreate (GameObject *)
 
virtual void OnGameObjectRemove (GameObject *)
 
virtual void OnAreaTriggerCreate (AreaTrigger *areaTrigger)
 
virtual void OnAreaTriggerRemove (AreaTrigger *areaTrigger)
 
virtual void OnUnitDeath (Unit *unit)
 
virtual ObjectGuid GetGuidData (uint32) const
 
virtual void SetGuidData (uint32, ObjectGuid)
 
virtual uint64 GetData64 (uint32) const
 
virtual void SetData64 (uint32, uint64)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void TriggerGameEvent (uint32 gameEventId, WorldObject *source=nullptr, WorldObject *target=nullptr)
 
virtual void ProcessEvent (WorldObject *, uint32, WorldObject *)
 
virtual void DoAction (uint32 actionId, WorldObject *source=nullptr, WorldObject *target=nullptr)
 
virtual void OnFlagStateChange (GameObject *flagInBase, FlagState oldValue, FlagState newValue, Player *player)
 
virtual bool CanCaptureFlag (AreaTrigger *areaTrigger, Player *player)
 
virtual void OnCaptureFlag (AreaTrigger *areaTrigger, Player *player)
 

Private Member Functions

bool ResetObjs ()
 Called on setup and between the two round -Delete all gameobject / creature -Respawn all gameobject / creature to have good faction. More...
 
void StartShips ()
 Called for start ship movement. More...
 
void TeleportPlayers () const
 Called between the two round -Teleport all players to good location. More...
 
void TeleportToEntrancePosition (Player *player) const
 
void DestroyGate (Player *player, GameObject *go) override
 Called when a gate is destroy -Give honor to player witch destroy it -Update worldstate -Delete gameobject in front of door (lighting object, with different colours for each door) More...
 
void CaptureGraveyard (StrandOfTheAncientsGraveyard graveyard, TeamId teamId)
 Called when a graveyard is capture -Update spiritguide -Update gameobject (flag) -Update Worldstate -Send warning for announce this. More...
 
void ToggleTimer ()
 Switch on/off timer worldstate. More...
 
void SendTransportInit (Player *player)
 Send packet to player for create boats (client part) More...
 
void SendTransportsRemove (Player *player)
 Send packet to player for destroy boats (client part) More...
 
bool IsGateDestroyed (GateInfo const *gateInfo) const
 
void HandleCaptureGraveyardAction (GameObject *graveyardBanner, Player *player)
 
void MakeObjectsInteractable (DefenseLine defenseLine)
 
CreatureFindKanrethad () const
 
void EndRound ()
 

Private Attributes

TeamId Attackers
 Id of attacker team. More...
 
uint32 TotalTime
 Totale elapsed time of current round. More...
 
uint32 EndRoundTimer
 Max time of round. More...
 
bool ShipsStarted
 For know if boats has start moving or not yet. More...
 
BG_SA_Status Status
 Statu of battle (Start or not, and what round) More...
 
BG_SA_RoundScore RoundScores [2]
 Score of each round. More...
 
bool TimerEnabled
 used for know we are in timer phase or not (used for worldstate update) More...
 
uint32 UpdateWaitTimer
 5secs before starting the 1min countdown for second round More...
 
bool SignaledRoundTwo
 for know if warning about second round start has been sent More...
 
bool SignaledRoundTwoHalfMin
 for know if warning about second round start has been sent More...
 
bool InitSecondRound
 for know if second round has been init More...
 
std::array< std::array< ObjectGuid, 2 >, PVP_TEAMS_COUNT_boatGUIDs
 
std::array< GuidUnorderedSet, PVP_TEAMS_COUNT_staticBombGUIDs
 
GuidUnorderedSet _dynamicBombGUIDs
 
ObjectGuid _graveyardWest
 
ObjectGuid _graveyardEast
 
ObjectGuid _graveyardCentral
 
GuidUnorderedSet _gateGUIDs
 
ObjectGuid _collisionDoorGUID
 
ObjectGuid _kanrethadGUID
 
ObjectGuid _titanRelicGUID
 

Additional Inherited Members

- Public Types inherited from Battleground
typedef std::map< ObjectGuid, BattlegroundPlayerBattlegroundPlayerMap
 
typedef std::map< ObjectGuid, BattlegroundScore * > BattlegroundScoreMap
 
- Static Public Member Functions inherited from Battleground
static TeamId GetTeamIndexByTeamId (Team team)
 
- Public Attributes inherited from Battleground
GuidVector BgObjects
 
GuidVector BgCreatures
 
- Protected Member Functions inherited from Battleground
void EndNow ()
 
void PlayerAddedToBGCheckIfBGIsRunning (Player *player)
 
Player_GetPlayer (ObjectGuid guid, bool offlineRemove, char const *context) const
 
Player_GetPlayer (BattlegroundPlayerMap::iterator itr, char const *context)
 
Player_GetPlayer (BattlegroundPlayerMap::const_iterator itr, char const *context) const
 
Player_GetPlayerForTeam (Team team, BattlegroundPlayerMap::const_iterator itr, char const *context) const
 
virtual bool PreUpdateImpl (uint32)
 Pre-update hook. More...
 
virtual void PostUpdateImpl (uint32)
 Post-update hook. More...
 
void _ProcessOfflineQueue ()
 
void _ProcessProgress (uint32 diff)
 
void _ProcessLeave (uint32 diff)
 
void _ProcessJoin (uint32 diff)
 
void _CheckSafePositions (uint32 diff)
 
void _ProcessPlayerPositionBroadcast (uint32 diff)
 
virtual void RemovePlayer (Player *, ObjectGuid, uint32)
 
- Protected Attributes inherited from Battleground
BattlegroundScoreMap PlayerScores
 
BattlegroundPlayerMap m_Players
 
uint8 m_Events
 
BattlegroundStartTimeIntervals StartDelayTimes [BG_STARTING_EVENT_COUNT]
 
uint32 StartMessageIds [BG_STARTING_EVENT_COUNT]
 
int32 m_TeamScores [PVP_TEAMS_COUNT]
 

Detailed Description

Class for manage Strand of Ancient battleground.

Definition at line 229 of file BattlegroundSA.h.

Constructor & Destructor Documentation

◆ BattlegroundSA()

BattlegroundSA::BattlegroundSA ( BattlegroundTemplate const *  battlegroundTemplate)

Definition at line 86 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:

◆ ~BattlegroundSA()

BattlegroundSA::~BattlegroundSA ( )
default

Member Function Documentation

◆ AddPlayer()

void BattlegroundSA::AddPlayer ( Player player,
BattlegroundQueueTypeId  queueId 
)
overridevirtual

Called when a player join battle.

Reimplemented from Battleground.

Definition at line 317 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:

◆ CaptureGraveyard()

void BattlegroundSA::CaptureGraveyard ( StrandOfTheAncientsGraveyard  graveyard,
TeamId  teamId 
)
private

Called when a graveyard is capture -Update spiritguide -Update gameobject (flag) -Update Worldstate -Send warning for announce this.

Parameters
i: id of graveyard
Source: Player who capture gy

Definition at line 514 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DestroyGate()

void BattlegroundSA::DestroyGate ( Player player,
GameObject go 
)
overrideprivatevirtual

Called when a gate is destroy -Give honor to player witch destroy it -Update worldstate -Delete gameobject in front of door (lighting object, with different colours for each door)

Reimplemented from Battleground.

Definition at line 510 of file BattlegroundSA.cpp.

◆ DoAction()

void BattlegroundSA::DoAction ( uint32  actionId,
WorldObject source,
WorldObject target 
)
overridevirtual

Reimplemented from ZoneScript.

Definition at line 790 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:

◆ EndBattleground()

void BattlegroundSA::EndBattleground ( Team  winner)
overridevirtual

Called on battleground ending.

Reimplemented from Battleground.

Definition at line 594 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EndRound()

void BattlegroundSA::EndRound ( )
private

Definition at line 707 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindKanrethad()

Creature * BattlegroundSA::FindKanrethad ( ) const
private

Definition at line 702 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetData()

uint32 BattlegroundSA::GetData ( uint32  dataId) const
overridevirtual

Reimplemented from ZoneScript.

Definition at line 832 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:

◆ GetGate()

GateInfo const * BattlegroundSA::GetGate ( uint32  entry)
inline

Return GateInfo, relative to bg data, according to gameobject entry.

Definition at line 256 of file BattlegroundSA.h.

+ Here is the caller graph for this function:

◆ HandleCaptureGraveyardAction()

void BattlegroundSA::HandleCaptureGraveyardAction ( GameObject graveyardBanner,
Player player 
)
private

Definition at line 642 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleKillUnit()

void BattlegroundSA::HandleKillUnit ( Creature creature,
Unit killer 
)
overridevirtual

Called when a player kill a unit in bg.

Reimplemented from Battleground.

Definition at line 498 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:

◆ IsGateDestroyed()

bool BattlegroundSA::IsGateDestroyed ( GateInfo const *  gateInfo) const
private

Definition at line 633 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MakeObjectsInteractable()

void BattlegroundSA::MakeObjectsInteractable ( DefenseLine  defenseLine)
private

Definition at line 671 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OnCreatureCreate()

void BattlegroundSA::OnCreatureCreate ( Creature creature)
overridevirtual

Reimplemented from ZoneScript.

Definition at line 802 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:

◆ OnGameObjectCreate()

void BattlegroundSA::OnGameObjectCreate ( GameObject gameobject)
overridevirtual

Reimplemented from ZoneScript.

Definition at line 731 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:

◆ OnMapSet()

void BattlegroundSA::OnMapSet ( BattlegroundMap map)
overridevirtual

Reimplemented from Battleground.

Definition at line 826 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:

◆ PostUpdateImpl()

void BattlegroundSA::PostUpdateImpl ( uint32  diff)
overridevirtual

Called every time for update battle data -Update timer -Round switch.

Reimplemented from Battleground.

Definition at line 214 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:

◆ ProcessEvent()

void BattlegroundSA::ProcessEvent ( WorldObject obj,
uint32  eventId,
WorldObject invoker = nullptr 
)
overridevirtual

Called when someone activates an event.

Reimplemented from Battleground.

Definition at line 392 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:

◆ RemovePlayer()

void BattlegroundSA::RemovePlayer ( Player player,
ObjectGuid  guid,
uint32  team 
)
overridevirtual

Called when a player leave battleground.

Reimplemented from Battleground.

Definition at line 328 of file BattlegroundSA.cpp.

◆ Reset()

void BattlegroundSA::Reset ( )
overridevirtual

Reimplemented from Battleground.

Definition at line 115 of file BattlegroundSA.cpp.

◆ ResetObjs()

bool BattlegroundSA::ResetObjs ( )
private

Called on setup and between the two round -Delete all gameobject / creature -Respawn all gameobject / creature to have good faction.

Definition at line 127 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendTransportInit()

void BattlegroundSA::SendTransportInit ( Player player)
private

Send packet to player for create boats (client part)

Definition at line 609 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendTransportsRemove()

void BattlegroundSA::SendTransportsRemove ( Player player)
private

Send packet to player for destroy boats (client part)

Definition at line 621 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:

◆ SetupBattleground()

bool BattlegroundSA::SetupBattleground ( )
overridevirtual

Called for ini battleground, after that the first player be entered.

Reimplemented from Battleground.

Definition at line 122 of file BattlegroundSA.cpp.

◆ StartShips()

void BattlegroundSA::StartShips ( )
private

Called for start ship movement.

Definition at line 185 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TeleportPlayers()

void BattlegroundSA::TeleportPlayers ( ) const
private

Called between the two round -Teleport all players to good location.

Definition at line 330 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TeleportToEntrancePosition()

void BattlegroundSA::TeleportToEntrancePosition ( Player player) const
private

Definition at line 360 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TitanRelicActivated()

void BattlegroundSA::TitanRelicActivated ( Player clicker)

Called when a player clicked on relic.

Definition at line 538 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ToggleTimer()

void BattlegroundSA::ToggleTimer ( )
private

Switch on/off timer worldstate.

Definition at line 588 of file BattlegroundSA.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _boatGUIDs

std::array<std::array<ObjectGuid, 2 >, PVP_TEAMS_COUNT> BattlegroundSA::_boatGUIDs
private

Definition at line 353 of file BattlegroundSA.h.

◆ _collisionDoorGUID

ObjectGuid BattlegroundSA::_collisionDoorGUID
private

Definition at line 361 of file BattlegroundSA.h.

◆ _dynamicBombGUIDs

GuidUnorderedSet BattlegroundSA::_dynamicBombGUIDs
private

Definition at line 355 of file BattlegroundSA.h.

◆ _gateGUIDs

GuidUnorderedSet BattlegroundSA::_gateGUIDs
private

Definition at line 360 of file BattlegroundSA.h.

◆ _graveyardCentral

ObjectGuid BattlegroundSA::_graveyardCentral
private

Definition at line 359 of file BattlegroundSA.h.

◆ _graveyardEast

ObjectGuid BattlegroundSA::_graveyardEast
private

Definition at line 358 of file BattlegroundSA.h.

◆ _graveyardWest

ObjectGuid BattlegroundSA::_graveyardWest
private

Definition at line 357 of file BattlegroundSA.h.

◆ _kanrethadGUID

ObjectGuid BattlegroundSA::_kanrethadGUID
private

Definition at line 362 of file BattlegroundSA.h.

◆ _staticBombGUIDs

std::array<GuidUnorderedSet, PVP_TEAMS_COUNT> BattlegroundSA::_staticBombGUIDs
private

Definition at line 354 of file BattlegroundSA.h.

◆ _titanRelicGUID

ObjectGuid BattlegroundSA::_titanRelicGUID
private

Definition at line 363 of file BattlegroundSA.h.

◆ Attackers

TeamId BattlegroundSA::Attackers
private

Id of attacker team.

Definition at line 329 of file BattlegroundSA.h.

◆ EndRoundTimer

uint32 BattlegroundSA::EndRoundTimer
private

Max time of round.

Definition at line 334 of file BattlegroundSA.h.

◆ InitSecondRound

bool BattlegroundSA::InitSecondRound
private

for know if second round has been init

Definition at line 350 of file BattlegroundSA.h.

◆ RoundScores

BG_SA_RoundScore BattlegroundSA::RoundScores[2]
private

Score of each round.

Definition at line 340 of file BattlegroundSA.h.

◆ ShipsStarted

bool BattlegroundSA::ShipsStarted
private

For know if boats has start moving or not yet.

Definition at line 336 of file BattlegroundSA.h.

◆ SignaledRoundTwo

bool BattlegroundSA::SignaledRoundTwo
private

for know if warning about second round start has been sent

Definition at line 346 of file BattlegroundSA.h.

◆ SignaledRoundTwoHalfMin

bool BattlegroundSA::SignaledRoundTwoHalfMin
private

for know if warning about second round start has been sent

Definition at line 348 of file BattlegroundSA.h.

◆ Status

BG_SA_Status BattlegroundSA::Status
private

Statu of battle (Start or not, and what round)

Definition at line 338 of file BattlegroundSA.h.

◆ TimerEnabled

bool BattlegroundSA::TimerEnabled
private

used for know we are in timer phase or not (used for worldstate update)

Definition at line 342 of file BattlegroundSA.h.

◆ TotalTime

uint32 BattlegroundSA::TotalTime
private

Totale elapsed time of current round.

Definition at line 332 of file BattlegroundSA.h.

◆ UpdateWaitTimer

uint32 BattlegroundSA::UpdateWaitTimer
private

5secs before starting the 1min countdown for second round

Definition at line 344 of file BattlegroundSA.h.


The documentation for this class was generated from the following files: