TrinityCore
Loading...
Searching...
No Matches
battleground_seething_shore Struct Referencefinal
+ Inheritance diagram for battleground_seething_shore:

Public Member Functions

 battleground_seething_shore (BattlegroundMap *map)
 
void OnUpdate (uint32 diff) override
 
void OnPrepareStage2 () override
 
void OnPrepareStage3 () override
 
void OnStart () override
 
void HandleAssaultPoint (GameObject *capturePoint, Player *player)
 
void OnCreatureCreate (Creature *creature) override
 
void OnGameObjectCreate (GameObject *gameobject) override
 
void OnGameObjectRemove (GameObject *gameobject) override
 
void DoAction (uint32 actionId, WorldObject *source, WorldObject *target) override
 
void SpawnAzeriteNodes ()
 
std::vector< uint32 > SelectAzeriteNodesToSpawn () const
 
void SpawnBuffs ()
 
std::vector< std::string_view > SelectBuffsToSpawn () const
 
- Public Member Functions inherited from BattlegroundScript
 BattlegroundScript (BattlegroundMap *map) noexcept
 
 ~BattlegroundScript () override=default
 
virtual void OnInit ()
 
virtual void OnPrepareStage1 ()
 
virtual void OnEnd (Team winner)
 
virtual void OnPlayerJoined (Player *player, bool inBattleground)
 
virtual void OnPlayerLeft (Player *player)
 
virtual void OnPlayerKilled (Player *victim, Player *killer)
 
virtual void OnUnitKilled (Creature *victim, Unit *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 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 uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void ProcessEvent (WorldObject *obj, uint32 eventId, WorldObject *invoker)
 
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 Attributes

static constexpr uint32 WARNING_NEAR_VICTORY_SCORE = 1200
 
static constexpr uint8 MAX_AZERITE_SPAWNS = 3
 
static constexpr uint8 MAX_BUFF_SPAWNS = 3
 

Private Attributes

bool _firstSetDone
 
GuidVector _doors
 
TaskScheduler _scheduler
 
ObjectGuid _controllerGUID
 
std::array< bool, PVP_TEAMS_COUNT > _isInformedNearVictory
 
std::set< uint32 > _activeAzeriteNodes
 
std::set< std::string_view > _activeBuffs
 
GuidVector _airSupplyGroundDummyGUIDs
 
std::array< ObjectGuid, PVP_TEAMS_COUNT > _commanderGUIDs
 

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 185 of file battleground_seething_shore.cpp.

Constructor & Destructor Documentation

◆ battleground_seething_shore()

battleground_seething_shore::battleground_seething_shore ( BattlegroundMap *  map)
inlineexplicit

Definition at line 191 of file battleground_seething_shore.cpp.

References _commanderGUIDs, and _isInformedNearVictory.

Member Function Documentation

◆ DoAction()

◆ HandleAssaultPoint()

void battleground_seething_shore::HandleAssaultPoint ( GameObject *  capturePoint,
Player *  player 
)
inline

◆ OnCreatureCreate()

◆ OnGameObjectCreate()

void battleground_seething_shore::OnGameObjectCreate ( GameObject *  gameobject)
inlineoverridevirtual

◆ OnGameObjectRemove()

void battleground_seething_shore::OnGameObjectRemove ( GameObject *  gameobject)
inlineoverridevirtual

◆ OnPrepareStage2()

void battleground_seething_shore::OnPrepareStage2 ( )
inlineoverridevirtual

◆ OnPrepareStage3()

void battleground_seething_shore::OnPrepareStage3 ( )
inlineoverridevirtual

◆ OnStart()

void battleground_seething_shore::OnStart ( )
inlineoverridevirtual

◆ OnUpdate()

void battleground_seething_shore::OnUpdate ( uint32  diff)
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 197 of file battleground_seething_shore.cpp.

References _scheduler, and TaskScheduler::Update().

◆ SelectAzeriteNodesToSpawn()

◆ SelectBuffsToSpawn()

std::vector< std::string_view > battleground_seething_shore::SelectBuffsToSpawn ( ) const
inline

◆ SpawnAzeriteNodes()

◆ SpawnBuffs()

Member Data Documentation

◆ _activeAzeriteNodes

std::set<uint32> battleground_seething_shore::_activeAzeriteNodes
private

◆ _activeBuffs

std::set<std::string_view> battleground_seething_shore::_activeBuffs
private

Definition at line 453 of file battleground_seething_shore.cpp.

Referenced by DoAction(), SelectBuffsToSpawn(), and SpawnBuffs().

◆ _airSupplyGroundDummyGUIDs

GuidVector battleground_seething_shore::_airSupplyGroundDummyGUIDs
private

Definition at line 454 of file battleground_seething_shore.cpp.

Referenced by OnCreatureCreate(), and SpawnBuffs().

◆ _commanderGUIDs

std::array<ObjectGuid, PVP_TEAMS_COUNT> battleground_seething_shore::_commanderGUIDs
private

◆ _controllerGUID

ObjectGuid battleground_seething_shore::_controllerGUID
private

Definition at line 449 of file battleground_seething_shore.cpp.

Referenced by OnCreatureCreate(), and SpawnAzeriteNodes().

◆ _doors

GuidVector battleground_seething_shore::_doors
private

Definition at line 446 of file battleground_seething_shore.cpp.

Referenced by OnGameObjectCreate(), and OnStart().

◆ _firstSetDone

bool battleground_seething_shore::_firstSetDone
private

◆ _isInformedNearVictory

std::array<bool, PVP_TEAMS_COUNT> battleground_seething_shore::_isInformedNearVictory
private

◆ _scheduler

TaskScheduler battleground_seething_shore::_scheduler
private

Definition at line 448 of file battleground_seething_shore.cpp.

Referenced by OnPrepareStage3(), OnStart(), and OnUpdate().

◆ MAX_AZERITE_SPAWNS

constexpr uint8 battleground_seething_shore::MAX_AZERITE_SPAWNS = 3
staticconstexpr

Definition at line 188 of file battleground_seething_shore.cpp.

Referenced by OnPrepareStage3(), and SelectAzeriteNodesToSpawn().

◆ MAX_BUFF_SPAWNS

constexpr uint8 battleground_seething_shore::MAX_BUFF_SPAWNS = 3
staticconstexpr

Definition at line 189 of file battleground_seething_shore.cpp.

Referenced by SelectBuffsToSpawn().

◆ WARNING_NEAR_VICTORY_SCORE

constexpr uint32 battleground_seething_shore::WARNING_NEAR_VICTORY_SCORE = 1200
staticconstexpr

Definition at line 187 of file battleground_seething_shore.cpp.

Referenced by HandleAssaultPoint().


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