TrinityCore
Loading...
Searching...
No Matches
battleground_strand_of_the_ancients Struct Reference
+ Inheritance diagram for battleground_strand_of_the_ancients:

Public Member Functions

 battleground_strand_of_the_ancients (BattlegroundMap *map)
 
void OnInit () override
 
void OnUpdate (uint32 diff) override
 
void Reset ()
 
void ResetObjs ()
 
void StartShips ()
 
void OnPlayerJoined (Player *player, bool inBattleground) override
 
void TeleportPlayers () const
 
void TeleportToEntrancePosition (Player *player) const
 
void ProcessEvent (WorldObject *obj, uint32 eventId, WorldObject *invoker) override
 
void OnUnitKilled (Creature *victim, Unit *killer) override
 
void CaptureGraveyard (StrandOfTheAncientsGraveyard graveyard, TeamId teamId)
 
void TitanRelicActivated (Player const *clicker)
 
void ToggleTimer ()
 
void OnEnd (Team winner) override
 
void SendTransportInit (Player *player) const
 
bool IsGateDestroyed (GateInfo const *gateInfo) const
 
void HandleCaptureGraveyardAction (GameObject const *graveyardBanner, Player const *player)
 
void MakeObjectsInteractable (DefenseLine defenseLine) const
 
Creature * FindKanrethad () const
 
void EndRound ()
 
void OnGameObjectCreate (GameObject *gameobject) override
 
void DoAction (uint32 actionId, WorldObject *source, WorldObject *target) override
 
void OnCreatureCreate (Creature *creature) override
 
uint32 GetData (uint32 dataId) const override
 
- Public Member Functions inherited from BattlegroundScript
 BattlegroundScript (BattlegroundMap *map) noexcept
 
 ~BattlegroundScript () override=default
 
virtual void OnPrepareStage1 ()
 
virtual void OnPrepareStage2 ()
 
virtual void OnPrepareStage3 ()
 
virtual void OnStart ()
 
virtual void OnPlayerLeft (Player *player)
 
virtual void OnPlayerKilled (Player *victim, Player *killer)
 
virtual Team GetPrematureWinner ()
 
void TriggerGameEvent (uint32 gameEventId, WorldObject *source=nullptr, WorldObject *target=nullptr) override
 
- Public Member Functions inherited from ZoneScript
 ZoneScript () noexcept
 
 ZoneScript (ZoneScript const &right)
 
 ZoneScript (ZoneScript &&right) noexcept
 
ZoneScript & operator= (ZoneScript const &right)
 
ZoneScript & operator= (ZoneScript &&right) noexcept
 
virtual ~ZoneScript ()
 
virtual uint32 GetCreatureEntry (ObjectGuid::LowType, CreatureData const *data)
 
virtual uint32 GetGameObjectEntry (ObjectGuid::LowType, uint32 entry)
 
virtual void OnCreatureRemove (Creature *)
 
virtual void OnGameObjectRemove (GameObject *)
 
virtual void OnAreaTriggerCreate (AreaTrigger *areaTrigger)
 
virtual void OnAreaTriggerRemove (AreaTrigger *areaTrigger)
 
virtual void OnUnitDeath (Unit *unit)
 
virtual void OnCreatureGroupDepleted (CreatureGroup const *creatureGroup)
 
virtual ObjectGuid GetGuidData (uint32) const
 
virtual void SetGuidData (uint32, ObjectGuid)
 
virtual uint64 GetData64 (uint32) const
 
virtual void SetData64 (uint32, uint64)
 
virtual void SetData (uint32, uint32)
 
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)
 
virtual void OnFlagTaken (GameObject *flag, Player *player)
 
virtual void OnFlagDropped (ObjectGuid const &flagGuid, Player *player)
 

Static Public Member Functions

static GateInfo const * GetGate (uint32 entry)
 

Private Attributes

TeamId _attackers
 Id of attacker team.
 
uint32 _totalTime
 Totale elapsed time of current round.
 
uint32 _endRoundTimer
 Max time of round.
 
bool _shipsStarted
 For know if boats has start moving or not yet.
 
BG_SA_Status _status
 Statu of battle (Start or not, and what round)
 
std::array< BG_SA_RoundScore, 2 > _roundScores
 Score of each round.
 
bool _timerEnabled
 used for know we are in timer phase or not (used for worldstate update)
 
uint32 _updateWaitTimer
 5secs before starting the 1min countdown for second round
 
bool _signaledRoundTwo
 for know if warning about second round start has been sent
 
bool _signaledRoundTwoHalfMin
 for know if warning about second round start has been sent
 
bool _initSecondRound
 for know if second round has been init
 
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

- Protected Member Functions inherited from BattlegroundScript
void UpdateWorldState (int32 worldStateId, int32 value, bool hidden=false) const
 
- Protected Attributes inherited from BattlegroundScript
BattlegroundMap * battlegroundMap
 
Battleground * battleground
 

Detailed Description

Definition at line 286 of file battleground_strand_of_the_ancients.cpp.

Constructor & Destructor Documentation

◆ battleground_strand_of_the_ancients()

Member Function Documentation

◆ CaptureGraveyard()

◆ DoAction()

void battleground_strand_of_the_ancients::DoAction ( uint32  actionId,
WorldObject *  source,
WorldObject *  target 
)
inlineoverridevirtual

◆ EndRound()

◆ FindKanrethad()

Creature * battleground_strand_of_the_ancients::FindKanrethad ( ) const
inline

◆ GetData()

uint32 battleground_strand_of_the_ancients::GetData ( uint32  dataId) const
inlineoverridevirtual

Reimplemented from ZoneScript.

Definition at line 991 of file battleground_strand_of_the_ancients.cpp.

References _attackers, _status, DATA_ATTACKERS, DATA_STATUS, and ZoneScript::GetData().

◆ GetGate()

static GateInfo const * battleground_strand_of_the_ancients::GetGate ( uint32  entry)
inlinestatic

Definition at line 1004 of file battleground_strand_of_the_ancients.cpp.

References Gates.

Referenced by ProcessEvent().

◆ HandleCaptureGraveyardAction()

◆ IsGateDestroyed()

bool battleground_strand_of_the_ancients::IsGateDestroyed ( GateInfo const *  gateInfo) const
inline

◆ MakeObjectsInteractable()

void battleground_strand_of_the_ancients::MakeObjectsInteractable ( DefenseLine  defenseLine) const
inline

◆ OnCreatureCreate()

◆ OnEnd()

void battleground_strand_of_the_ancients::OnEnd ( Team  winner)
inlineoverridevirtual

◆ OnGameObjectCreate()

◆ OnInit()

void battleground_strand_of_the_ancients::OnInit ( )
inlineoverridevirtual

◆ OnPlayerJoined()

void battleground_strand_of_the_ancients::OnPlayerJoined ( Player *  player,
bool  inBattleground 
)
inlineoverridevirtual

◆ OnUnitKilled()

◆ OnUpdate()

◆ ProcessEvent()

void battleground_strand_of_the_ancients::ProcessEvent ( WorldObject *  obj,
uint32  eventId,
WorldObject *  invoker 
)
inlineoverridevirtual

◆ Reset()

void battleground_strand_of_the_ancients::Reset ( )
inline

◆ ResetObjs()

◆ SendTransportInit()

void battleground_strand_of_the_ancients::SendTransportInit ( Player *  player) const
inline

◆ StartShips()

◆ TeleportPlayers()

◆ TeleportToEntrancePosition()

◆ TitanRelicActivated()

◆ ToggleTimer()

void battleground_strand_of_the_ancients::ToggleTimer ( )
inline

Member Data Documentation

◆ _attackers

◆ _boatGUIDs

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

◆ _collisionDoorGUID

ObjectGuid battleground_strand_of_the_ancients::_collisionDoorGUID
private

◆ _dynamicBombGUIDs

GuidUnorderedSet battleground_strand_of_the_ancients::_dynamicBombGUIDs
private

Definition at line 1041 of file battleground_strand_of_the_ancients.cpp.

Referenced by OnGameObjectCreate(), and ResetObjs().

◆ _endRoundTimer

uint32 battleground_strand_of_the_ancients::_endRoundTimer
private

Max time of round.

Definition at line 1020 of file battleground_strand_of_the_ancients.cpp.

Referenced by battleground_strand_of_the_ancients(), and OnUpdate().

◆ _gateGUIDs

GuidUnorderedSet battleground_strand_of_the_ancients::_gateGUIDs
private

Definition at line 1046 of file battleground_strand_of_the_ancients.cpp.

Referenced by OnGameObjectCreate(), and ResetObjs().

◆ _graveyardCentral

ObjectGuid battleground_strand_of_the_ancients::_graveyardCentral
private

◆ _graveyardEast

ObjectGuid battleground_strand_of_the_ancients::_graveyardEast
private

◆ _graveyardWest

ObjectGuid battleground_strand_of_the_ancients::_graveyardWest
private

◆ _initSecondRound

bool battleground_strand_of_the_ancients::_initSecondRound
private

for know if second round has been init

Definition at line 1036 of file battleground_strand_of_the_ancients.cpp.

Referenced by battleground_strand_of_the_ancients(), EndRound(), and OnUpdate().

◆ _kanrethadGUID

ObjectGuid battleground_strand_of_the_ancients::_kanrethadGUID
private

Definition at line 1048 of file battleground_strand_of_the_ancients.cpp.

Referenced by FindKanrethad(), and OnCreatureCreate().

◆ _roundScores

std::array<BG_SA_RoundScore, 2> battleground_strand_of_the_ancients::_roundScores
private

◆ _shipsStarted

bool battleground_strand_of_the_ancients::_shipsStarted
private

For know if boats has start moving or not yet.

Definition at line 1022 of file battleground_strand_of_the_ancients.cpp.

Referenced by battleground_strand_of_the_ancients(), Reset(), ResetObjs(), and StartShips().

◆ _signaledRoundTwo

bool battleground_strand_of_the_ancients::_signaledRoundTwo
private

for know if warning about second round start has been sent

Definition at line 1032 of file battleground_strand_of_the_ancients.cpp.

Referenced by battleground_strand_of_the_ancients(), EndRound(), and OnUpdate().

◆ _signaledRoundTwoHalfMin

bool battleground_strand_of_the_ancients::_signaledRoundTwoHalfMin
private

for know if warning about second round start has been sent

Definition at line 1034 of file battleground_strand_of_the_ancients.cpp.

Referenced by battleground_strand_of_the_ancients(), EndRound(), and OnUpdate().

◆ _staticBombGUIDs

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

◆ _status

BG_SA_Status battleground_strand_of_the_ancients::_status
private

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

Definition at line 1024 of file battleground_strand_of_the_ancients.cpp.

Referenced by battleground_strand_of_the_ancients(), EndRound(), GetData(), OnGameObjectCreate(), OnInit(), OnUpdate(), Reset(), and TitanRelicActivated().

◆ _timerEnabled

bool battleground_strand_of_the_ancients::_timerEnabled
private

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

Definition at line 1028 of file battleground_strand_of_the_ancients.cpp.

Referenced by battleground_strand_of_the_ancients(), and ToggleTimer().

◆ _titanRelicGUID

ObjectGuid battleground_strand_of_the_ancients::_titanRelicGUID
private

◆ _totalTime

uint32 battleground_strand_of_the_ancients::_totalTime
private

Totale elapsed time of current round.

Definition at line 1018 of file battleground_strand_of_the_ancients.cpp.

Referenced by battleground_strand_of_the_ancients(), EndRound(), OnUpdate(), Reset(), ResetObjs(), and TitanRelicActivated().

◆ _updateWaitTimer

uint32 battleground_strand_of_the_ancients::_updateWaitTimer
private

5secs before starting the 1min countdown for second round

Definition at line 1030 of file battleground_strand_of_the_ancients.cpp.

Referenced by battleground_strand_of_the_ancients(), EndRound(), and OnUpdate().


The documentation for this struct was generated from the following file: