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
 
CreatureFindKanrethad () 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
 
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 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
BattlegroundMapbattlegroundMap
 
Battlegroundbattleground
 

Detailed Description

Definition at line 286 of file battleground_strand_of_the_ancients.cpp.

Constructor & Destructor Documentation

◆ battleground_strand_of_the_ancients()

battleground_strand_of_the_ancients::battleground_strand_of_the_ancients ( BattlegroundMap map)
inlineexplicit

Definition at line 288 of file battleground_strand_of_the_ancients.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ CaptureGraveyard()

void battleground_strand_of_the_ancients::CaptureGraveyard ( StrandOfTheAncientsGraveyard  graveyard,
TeamId  teamId 
)
inline

Definition at line 695 of file battleground_strand_of_the_ancients.cpp.

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

◆ DoAction()

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

Reimplemented from ZoneScript.

Definition at line 954 of file battleground_strand_of_the_ancients.cpp.

+ Here is the call graph for this function:

◆ EndRound()

void battleground_strand_of_the_ancients::EndRound ( )
inline

Definition at line 871 of file battleground_strand_of_the_ancients.cpp.

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

◆ FindKanrethad()

Creature * battleground_strand_of_the_ancients::FindKanrethad ( ) const
inline

Definition at line 866 of file battleground_strand_of_the_ancients.cpp.

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

◆ 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.

+ Here is the call graph for this function:

◆ 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.

+ Here is the caller graph for this function:

◆ HandleCaptureGraveyardAction()

void battleground_strand_of_the_ancients::HandleCaptureGraveyardAction ( GameObject const *  graveyardBanner,
Player const *  player 
)
inline

Definition at line 806 of file battleground_strand_of_the_ancients.cpp.

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

◆ IsGateDestroyed()

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

Definition at line 797 of file battleground_strand_of_the_ancients.cpp.

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

◆ MakeObjectsInteractable()

void battleground_strand_of_the_ancients::MakeObjectsInteractable ( DefenseLine  defenseLine) const
inline

Definition at line 835 of file battleground_strand_of_the_ancients.cpp.

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

◆ OnCreatureCreate()

void battleground_strand_of_the_ancients::OnCreatureCreate ( Creature creature)
inlineoverridevirtual

Reimplemented from ZoneScript.

Definition at line 968 of file battleground_strand_of_the_ancients.cpp.

+ Here is the call graph for this function:

◆ OnEnd()

void battleground_strand_of_the_ancients::OnEnd ( Team  winner)
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 775 of file battleground_strand_of_the_ancients.cpp.

+ Here is the call graph for this function:

◆ OnGameObjectCreate()

void battleground_strand_of_the_ancients::OnGameObjectCreate ( GameObject gameobject)
inlineoverridevirtual

Reimplemented from ZoneScript.

Definition at line 895 of file battleground_strand_of_the_ancients.cpp.

+ Here is the call graph for this function:

◆ OnInit()

void battleground_strand_of_the_ancients::OnInit ( )
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 313 of file battleground_strand_of_the_ancients.cpp.

+ Here is the call graph for this function:

◆ OnPlayerJoined()

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

Reimplemented from BattlegroundScript.

Definition at line 509 of file battleground_strand_of_the_ancients.cpp.

+ Here is the call graph for this function:

◆ OnUnitKilled()

void battleground_strand_of_the_ancients::OnUnitKilled ( Creature victim,
Unit killer 
)
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 683 of file battleground_strand_of_the_ancients.cpp.

+ Here is the call graph for this function:

◆ OnUpdate()

void battleground_strand_of_the_ancients::OnUpdate ( uint32  diff)
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 320 of file battleground_strand_of_the_ancients.cpp.

+ Here is the call graph for this function:

◆ ProcessEvent()

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

Reimplemented from ZoneScript.

Definition at line 575 of file battleground_strand_of_the_ancients.cpp.

+ Here is the call graph for this function:

◆ Reset()

void battleground_strand_of_the_ancients::Reset ( )
inline

Definition at line 424 of file battleground_strand_of_the_ancients.cpp.

◆ ResetObjs()

void battleground_strand_of_the_ancients::ResetObjs ( )
inline

Definition at line 431 of file battleground_strand_of_the_ancients.cpp.

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

◆ SendTransportInit()

void battleground_strand_of_the_ancients::SendTransportInit ( Player player) const
inline

Definition at line 790 of file battleground_strand_of_the_ancients.cpp.

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

◆ StartShips()

void battleground_strand_of_the_ancients::StartShips ( )
inline

Definition at line 488 of file battleground_strand_of_the_ancients.cpp.

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

◆ TeleportPlayers()

void battleground_strand_of_the_ancients::TeleportPlayers ( ) const
inline

Definition at line 517 of file battleground_strand_of_the_ancients.cpp.

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

◆ TeleportToEntrancePosition()

void battleground_strand_of_the_ancients::TeleportToEntrancePosition ( Player player) const
inline

Definition at line 547 of file battleground_strand_of_the_ancients.cpp.

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

◆ TitanRelicActivated()

void battleground_strand_of_the_ancients::TitanRelicActivated ( Player const *  clicker)
inline

Definition at line 719 of file battleground_strand_of_the_ancients.cpp.

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

◆ ToggleTimer()

void battleground_strand_of_the_ancients::ToggleTimer ( )
inline

Definition at line 769 of file battleground_strand_of_the_ancients.cpp.

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

Member Data Documentation

◆ _attackers

TeamId battleground_strand_of_the_ancients::_attackers
private

Id of attacker team.

Definition at line 1015 of file battleground_strand_of_the_ancients.cpp.

◆ _boatGUIDs

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

Definition at line 1039 of file battleground_strand_of_the_ancients.cpp.

◆ _collisionDoorGUID

ObjectGuid battleground_strand_of_the_ancients::_collisionDoorGUID
private

Definition at line 1047 of file battleground_strand_of_the_ancients.cpp.

◆ _dynamicBombGUIDs

GuidUnorderedSet battleground_strand_of_the_ancients::_dynamicBombGUIDs
private

Definition at line 1041 of file battleground_strand_of_the_ancients.cpp.

◆ _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.

◆ _gateGUIDs

GuidUnorderedSet battleground_strand_of_the_ancients::_gateGUIDs
private

Definition at line 1046 of file battleground_strand_of_the_ancients.cpp.

◆ _graveyardCentral

ObjectGuid battleground_strand_of_the_ancients::_graveyardCentral
private

Definition at line 1045 of file battleground_strand_of_the_ancients.cpp.

◆ _graveyardEast

ObjectGuid battleground_strand_of_the_ancients::_graveyardEast
private

Definition at line 1044 of file battleground_strand_of_the_ancients.cpp.

◆ _graveyardWest

ObjectGuid battleground_strand_of_the_ancients::_graveyardWest
private

Definition at line 1043 of file battleground_strand_of_the_ancients.cpp.

◆ _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.

◆ _kanrethadGUID

ObjectGuid battleground_strand_of_the_ancients::_kanrethadGUID
private

Definition at line 1048 of file battleground_strand_of_the_ancients.cpp.

◆ _roundScores

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

Score of each round.

Definition at line 1026 of file battleground_strand_of_the_ancients.cpp.

◆ _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.

◆ _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.

◆ _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.

◆ _staticBombGUIDs

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

Definition at line 1040 of file battleground_strand_of_the_ancients.cpp.

◆ _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.

◆ _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.

◆ _titanRelicGUID

ObjectGuid battleground_strand_of_the_ancients::_titanRelicGUID
private

Definition at line 1049 of file battleground_strand_of_the_ancients.cpp.

◆ _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.

◆ _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.


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