![]() |
TrinityCore
|
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 | |
| 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 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 | |
| BattlegroundMap * | battlegroundMap |
| Battleground * | battleground |
Definition at line 241 of file battleground_silvershard_mines.cpp.
|
inlineexplicit |
Definition at line 243 of file battleground_silvershard_mines.cpp.
|
inline |
Definition at line 593 of file battleground_silvershard_mines.cpp.
References ALLIANCE, BattlegroundScript::battleground, Battleground::EndBattleground(), Battleground::GetStatus(), Battleground::GetTeamScore(), HORDE, SilvershardMines::Score::Max, SendTeamScores(), STATUS_IN_PROGRESS, TEAM_ALLIANCE, TEAM_HORDE, and TEAM_OTHER.
Referenced by OnMineCartCaptured(), and OnStart().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 340 of file battleground_silvershard_mines.cpp.
References ZoneScript::DoAction(), SilvershardMines::Actions::MineCartCaptured, SilvershardMines::Actions::MineCartCapturedPlayer, OnMineCartCaptured(), OnPlayerCapturedMineCart(), OnTrackSwitched(), Object::ToCreature(), Object::ToPlayer(), and SilvershardMines::Actions::TrackChanged.
|
inline |
Definition at line 385 of file battleground_silvershard_mines.cpp.
References Creature::AI(), BattlegroundScript::battleground, SilvershardMines::PvpStats::CartsCaptured, WorldObject::CastSpell(), SilvershardMines::Spells::ControlVisualAlliance, SilvershardMines::Spells::ControlVisualHorde, SilvershardMines::Spells::ControlVisualNeutral, UnitAI::DoAction(), ObjectAccessor::FindPlayer(), GameObject::GetInsidePlayers(), WorldObject::GetOwner(), SilvershardMines::Actions::MineCartControlChanged, Unit::RemoveAurasDueToSpell(), Battleground::SendBroadcastText(), TEAM_OTHER, Object::ToCreature(), UpdateCartWorldStates(), and Battleground::UpdatePvpStat().
Referenced by ProcessEvent().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 377 of file battleground_silvershard_mines.cpp.
References Creature::AI(), BattlegroundScript::battleground, Object::GetEntry(), Battleground::GetStatus(), SilvershardMines::Creatures::MineCart, ZoneScript::OnCreatureCreate(), SilvershardMines::CreatureTexts::MineCart::Spawned, STATUS_IN_PROGRESS, and CreatureAI::Talk().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 360 of file battleground_silvershard_mines.cpp.
References _doors, SilvershardMines::GameObjects::Gate1, SilvershardMines::GameObjects::Gate2, SilvershardMines::GameObjects::Gate3, SilvershardMines::GameObjects::Gate4, Object::GetEntry(), BaseEntity::GetGUID(), and ZoneScript::OnGameObjectCreate().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 245 of file battleground_silvershard_mines.cpp.
References _scheduler, BattlegroundScript::battlegroundMap, SilvershardMines::Creatures::CosmeticCarts, SilvershardMines::SpawnPositions::CosmeticCartsSpawnPositions, TaskContext::Repeat(), TaskScheduler::Schedule(), Trinity::Containers::SelectRandomWeightedContainerElement(), and Map::SummonCreature().
|
inline |
Definition at line 470 of file battleground_silvershard_mines.cpp.
References _scheduler, Battleground::AddPoint(), Creature::AI(), ALLIANCE, SilvershardMines::WorldStates::AllianceCapturedMineCart, SilvershardMines::WorldStates::AllianceControlsEastCart, SilvershardMines::WorldStates::AllianceControlsNorthCart, SilvershardMines::WorldStates::AllianceControlsSouthCart, BattlegroundScript::battleground, SilvershardMines::Score::Capture, SilvershardMines::CreatureTexts::MineCart::CapturedByAlliance, SilvershardMines::CreatureTexts::MineCart::CapturedByHorde, SilvershardMines::Spells::CartControlCapturePointUnitEast, SilvershardMines::Spells::CartControlCapturePointUnitNorth, SilvershardMines::Spells::CartControlCapturePointUnitSouth, CheckWinner(), GameObject::GetControllingTeam(), Unit::GetGameObject(), Battleground::GetStatus(), Battleground::GetTeamScore(), Unit::HasAura(), HORDE, SilvershardMines::WorldStates::HordeCapturedMineCart, SilvershardMines::WorldStates::HordeControlsEastCart, SilvershardMines::WorldStates::HordeControlsNorthCart, SilvershardMines::WorldStates::HordeControlsSouthCart, SilvershardMines::Score::Max, TaskScheduler::Schedule(), SpawnEasternMineCart(), SpawnNorthernMineCart(), SpawnSouthernMineCart(), STATUS_WAIT_LEAVE, CreatureAI::Talk(), TEAM_ALLIANCE, TEAM_HORDE, TEAM_NEUTRAL, Battleground::UpdateWorldState(), and BattlegroundScript::UpdateWorldState().
Referenced by DoAction().
|
inline |
Definition at line 536 of file battleground_silvershard_mines.cpp.
References _capturedMineCartsByPlayer, BattlegroundScript::battleground, WorldObject::CastSpell(), Battleground::GetBattlegroundScore(), BattlegroundScore::GetDeaths(), BaseEntity::GetGUID(), and SilvershardMines::Spells::ThreeForThreeComplete.
Referenced by DoAction().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 271 of file battleground_silvershard_mines.cpp.
References BattlegroundScript::OnPrepareStage2(), SpawnNorthernMineCart(), and SpawnSouthernMineCart().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 278 of file battleground_silvershard_mines.cpp.
References _doors, _scheduler, Battleground::AddPoint(), ALLIANCE, SilvershardMines::WorldStates::AllianceControlWorldStates, BattlegroundScript::battleground, BattlegroundScript::battlegroundMap, CheckWinner(), Map::GetGameObject(), Battleground::GetTeamScore(), Map::GetWorldStateValue(), HORDE, SilvershardMines::WorldStates::HordeControlWorldStates, SilvershardMines::Score::Max, BattlegroundScript::OnStart(), TaskContext::Repeat(), TaskScheduler::Schedule(), SendTeamScores(), SpawnEasternMineCart(), TEAM_ALLIANCE, and TEAM_HORDE.
|
inline |
Definition at line 554 of file battleground_silvershard_mines.cpp.
References AsUnderlyingType(), BattlegroundScript::battleground, WorldObject::CastSpell(), CHAT_MSG_BG_SYSTEM_NEUTRAL, SilvershardMines::Closed, SilvershardMines::BroadcastTexts::EasternCrossroadsChangedTracks, SilvershardMines::WorldStates::EasternCrossroadsTrackSwitchState, WorldObject::GetMap(), Map::GetWorldStateValue(), Creature::HasStringId(), SilvershardMines::BroadcastTexts::NorthernCrossroadsChangedTracks, SilvershardMines::WorldStates::NorthernCrossroadsTrackSwitchState, SilvershardMines::Open, Unit::RemoveAurasDueToSpell(), Battleground::SendBroadcastText(), Map::SetWorldStateValue(), SilvershardMines::StringIds::TrackSwitchEast, SilvershardMines::StringIds::TrackSwitchNorth, SilvershardMines::Spells::TrackSwitchVisualClosed, and SilvershardMines::Spells::TrackSwitchVisualOpened.
Referenced by DoAction().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 265 of file battleground_silvershard_mines.cpp.
References _scheduler, BattlegroundScript::OnUpdate(), and TaskScheduler::Update().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 315 of file battleground_silvershard_mines.cpp.
References ALLIANCE, SilvershardMines::BroadcastTexts::AllianceControlsMineCart, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, SilvershardMines::Spells::ControlVisualAlliance, SilvershardMines::Spells::ControlVisualHorde, HandleProgressEvent(), HORDE, SilvershardMines::BroadcastTexts::HordeControlsMineCart, ZoneScript::ProcessEvent(), SilvershardMines::Events::ProgressEventAllianceEast, SilvershardMines::Events::ProgressEventAllianceNorth, SilvershardMines::Events::ProgressEventAllianceSouth, SilvershardMines::Events::ProgressEventHordeEast, SilvershardMines::Events::ProgressEventHordeNorth, SilvershardMines::Events::ProgressEventHordeSouth, SilvershardMines::Events::ProgressEventNeutralEast, SilvershardMines::Events::ProgressEventNeutralSouth, TEAM_OTHER, and Object::ToGameObject().
|
inline |
Definition at line 464 of file battleground_silvershard_mines.cpp.
References SilvershardMines::WorldStates::AllianceTeamScore, BattlegroundScript::battleground, Battleground::GetTeamScore(), SilvershardMines::WorldStates::HordeTeamScore, TEAM_ALLIANCE, TEAM_HORDE, and BattlegroundScript::UpdateWorldState().
Referenced by CheckWinner(), and OnStart().
|
inline |
Definition at line 421 of file battleground_silvershard_mines.cpp.
References BattlegroundScript::battlegroundMap, SilvershardMines::Spells::CartControlCapturePointUnitEast, SilvershardMines::PathIds::East, SilvershardMines::Creatures::MineCart, SilvershardMines::SpawnPositions::MineCartEast, and Map::SummonCreature().
Referenced by OnMineCartCaptured(), and OnStart().
|
inline |
Definition at line 430 of file battleground_silvershard_mines.cpp.
References BattlegroundScript::battlegroundMap, SilvershardMines::Spells::CartControlCapturePointUnitNorth, SilvershardMines::Creatures::MineCart, SilvershardMines::SpawnPositions::MineCartNorth, SilvershardMines::PathIds::North, and Map::SummonCreature().
Referenced by OnMineCartCaptured(), and OnPrepareStage2().
|
inline |
Definition at line 412 of file battleground_silvershard_mines.cpp.
References BattlegroundScript::battlegroundMap, SilvershardMines::Spells::CartControlCapturePointUnitSouth, SilvershardMines::Creatures::MineCart, SilvershardMines::SpawnPositions::MineCartSouth, SilvershardMines::PathIds::South, and Map::SummonCreature().
Referenced by OnMineCartCaptured(), and OnPrepareStage2().
|
inline |
Definition at line 439 of file battleground_silvershard_mines.cpp.
References SilvershardMines::WorldStates::AllianceControlsEastCart, SilvershardMines::WorldStates::AllianceControlsNorthCart, SilvershardMines::WorldStates::AllianceControlsSouthCart, SilvershardMines::Spells::CartControlCapturePointUnitEast, SilvershardMines::Spells::CartControlCapturePointUnitNorth, SilvershardMines::Spells::CartControlCapturePointUnitSouth, GameObject::GetControllingTeam(), WorldObject::GetOwner(), Unit::HasAura(), SilvershardMines::WorldStates::HordeControlsEastCart, SilvershardMines::WorldStates::HordeControlsNorthCart, SilvershardMines::WorldStates::HordeControlsSouthCart, TEAM_ALLIANCE, TEAM_HORDE, Object::ToCreature(), and BattlegroundScript::UpdateWorldState().
Referenced by HandleProgressEvent().
|
private |
Definition at line 628 of file battleground_silvershard_mines.cpp.
Referenced by OnPlayerCapturedMineCart().
|
private |
Definition at line 627 of file battleground_silvershard_mines.cpp.
Referenced by OnGameObjectCreate(), and OnStart().
|
private |
Definition at line 626 of file battleground_silvershard_mines.cpp.
Referenced by OnInit(), OnMineCartCaptured(), OnStart(), and OnUpdate().