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

Public Member Functions

 battleground_silvershard_mines (BattlegroundMap *map)
 
void OnInit () override
 
void OnUpdate (uint32 diff) override
 
void OnPrepareStage2 () override
 
void OnStart () override
 
void ProcessEvent (WorldObject *obj, uint32 eventId, WorldObject *invoker) override
 
void DoAction (uint32 actionId, WorldObject *source, WorldObject *target) override
 
void OnGameObjectCreate (GameObject *gameobject) override
 
void OnCreatureCreate (Creature *creature) override
 
void HandleProgressEvent (GameObject const *controlZone, Team team, ChatMsg msgType=CHAT_MSG_ADDON, uint32 broadcastTextId=0, uint32 visualSpellId=0) const
 
void SpawnSouthernMineCart () const
 
void SpawnEasternMineCart () const
 
void SpawnNorthernMineCart () const
 
void UpdateCartWorldStates (GameObject const *controlZone) const
 
void SendTeamScores () const
 
void OnMineCartCaptured (Creature const *mineCart)
 
void OnPlayerCapturedMineCart (Player *player)
 
void OnTrackSwitched (Player const *invoker, Creature *trackSwitch) const
 
bool CheckWinner () const
 
- Public Member Functions inherited from BattlegroundScript
 BattlegroundScript (BattlegroundMap *map) noexcept
 
 ~BattlegroundScript () override=default
 
virtual void OnPrepareStage1 ()
 
virtual void OnPrepareStage3 ()
 
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
 
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 uint32 GetData (uint32) const
 
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)
 

Private Attributes

TaskScheduler _scheduler
 
GuidVector _doors
 
std::unordered_map< ObjectGuid, uint16_capturedMineCartsByPlayer
 

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 241 of file battleground_silvershard_mines.cpp.

Constructor & Destructor Documentation

◆ battleground_silvershard_mines()

battleground_silvershard_mines::battleground_silvershard_mines ( BattlegroundMap map)
inlineexplicit

Definition at line 243 of file battleground_silvershard_mines.cpp.

Member Function Documentation

◆ CheckWinner()

bool battleground_silvershard_mines::CheckWinner ( ) const
inline

Definition at line 593 of file battleground_silvershard_mines.cpp.

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

◆ DoAction()

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

Reimplemented from ZoneScript.

Definition at line 340 of file battleground_silvershard_mines.cpp.

+ Here is the call graph for this function:

◆ HandleProgressEvent()

void battleground_silvershard_mines::HandleProgressEvent ( GameObject const *  controlZone,
Team  team,
ChatMsg  msgType = CHAT_MSG_ADDON,
uint32  broadcastTextId = 0,
uint32  visualSpellId = 0 
) const
inline

Definition at line 385 of file battleground_silvershard_mines.cpp.

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

◆ OnCreatureCreate()

void battleground_silvershard_mines::OnCreatureCreate ( Creature creature)
inlineoverridevirtual

Reimplemented from ZoneScript.

Definition at line 377 of file battleground_silvershard_mines.cpp.

+ Here is the call graph for this function:

◆ OnGameObjectCreate()

void battleground_silvershard_mines::OnGameObjectCreate ( GameObject gameobject)
inlineoverridevirtual

Reimplemented from ZoneScript.

Definition at line 360 of file battleground_silvershard_mines.cpp.

+ Here is the call graph for this function:

◆ OnInit()

void battleground_silvershard_mines::OnInit ( )
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 245 of file battleground_silvershard_mines.cpp.

+ Here is the call graph for this function:

◆ OnMineCartCaptured()

void battleground_silvershard_mines::OnMineCartCaptured ( Creature const *  mineCart)
inline

Definition at line 470 of file battleground_silvershard_mines.cpp.

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

◆ OnPlayerCapturedMineCart()

void battleground_silvershard_mines::OnPlayerCapturedMineCart ( Player player)
inline

Definition at line 536 of file battleground_silvershard_mines.cpp.

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

◆ OnPrepareStage2()

void battleground_silvershard_mines::OnPrepareStage2 ( )
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 271 of file battleground_silvershard_mines.cpp.

+ Here is the call graph for this function:

◆ OnStart()

void battleground_silvershard_mines::OnStart ( )
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 278 of file battleground_silvershard_mines.cpp.

+ Here is the call graph for this function:

◆ OnTrackSwitched()

void battleground_silvershard_mines::OnTrackSwitched ( Player const *  invoker,
Creature trackSwitch 
) const
inline

Definition at line 554 of file battleground_silvershard_mines.cpp.

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

◆ OnUpdate()

void battleground_silvershard_mines::OnUpdate ( uint32  diff)
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 265 of file battleground_silvershard_mines.cpp.

+ Here is the call graph for this function:

◆ ProcessEvent()

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

Reimplemented from ZoneScript.

Definition at line 315 of file battleground_silvershard_mines.cpp.

+ Here is the call graph for this function:

◆ SendTeamScores()

void battleground_silvershard_mines::SendTeamScores ( ) const
inline

Definition at line 464 of file battleground_silvershard_mines.cpp.

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

◆ SpawnEasternMineCart()

void battleground_silvershard_mines::SpawnEasternMineCart ( ) const
inline

Definition at line 421 of file battleground_silvershard_mines.cpp.

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

◆ SpawnNorthernMineCart()

void battleground_silvershard_mines::SpawnNorthernMineCart ( ) const
inline

Definition at line 430 of file battleground_silvershard_mines.cpp.

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

◆ SpawnSouthernMineCart()

void battleground_silvershard_mines::SpawnSouthernMineCart ( ) const
inline

Definition at line 412 of file battleground_silvershard_mines.cpp.

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

◆ UpdateCartWorldStates()

void battleground_silvershard_mines::UpdateCartWorldStates ( GameObject const *  controlZone) const
inline

Definition at line 439 of file battleground_silvershard_mines.cpp.

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

Member Data Documentation

◆ _capturedMineCartsByPlayer

std::unordered_map<ObjectGuid, uint16> battleground_silvershard_mines::_capturedMineCartsByPlayer
private

Definition at line 628 of file battleground_silvershard_mines.cpp.

◆ _doors

GuidVector battleground_silvershard_mines::_doors
private

Definition at line 627 of file battleground_silvershard_mines.cpp.

◆ _scheduler

TaskScheduler battleground_silvershard_mines::_scheduler
private

Definition at line 626 of file battleground_silvershard_mines.cpp.


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