![]() |
TrinityCore
|
Inheritance diagram for battleground_deephaul_ravine:Public Member Functions | |
| battleground_deephaul_ravine (BattlegroundMap *map) | |
| void | OnInit () override |
| void | OnStart () override |
| void | OnPrepareStage3 () override |
| void | OnUpdate (uint32 diff) override |
| void | OnGameObjectCreate (GameObject *gameobject) override |
| bool | CanCaptureFlag (AreaTrigger *areaTrigger, Player *player) override |
| void | OnCaptureFlag (AreaTrigger *areaTrigger, Player *player) override |
| void | OnFlagStateChange (GameObject *flagInBase, FlagState oldValue, FlagState newValue, Player *player) override |
| void | DoAction (uint32 actionId, WorldObject *source, WorldObject *target) override |
| void | HandleConsumeBuff (AreaTrigger *trigger, Player *player) |
| void | OnCreatureCreate (Creature *creature) override |
| void | OnCreatureRemove (Creature *creature) override |
| void | ProcessEvent (WorldObject *obj, uint32 eventId, WorldObject *invoker) override |
| void | OnAreaTriggerCreate (AreaTrigger *areaTrigger) override |
| void | HandleProgressEvent (GameObject const *controlZone, Team team, uint32 controlVisualSpell, uint32 textId, ChatMsg msgType) const |
| void | HandleMineCartCaptured () |
| void | SpawnMineCarts () |
| void | SendTeamScores () const |
| void | UpdateCartWorldStates (GameObject const *controlZone) const |
| bool | CheckWinner () const |
| template<std::invocable< Creature * > Action> | |
| void | DoForLeaders (Action const &fn) const |
| void | RespawnEarthenMineCarts () |
Public Member Functions inherited from BattlegroundScript | |
| BattlegroundScript (BattlegroundMap *map) noexcept | |
| ~BattlegroundScript () override=default | |
| virtual void | OnPrepareStage1 () |
| virtual void | OnPrepareStage2 () |
| 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 | OnGameObjectRemove (GameObject *) |
| 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 | OnFlagTaken (GameObject *flag, Player *player) |
| virtual void | OnFlagDropped (ObjectGuid const &flagGuid, Player *player) |
Private Attributes | |
| TaskScheduler | _scheduler |
| ObjectGuid | _flagGUID |
| uint8 | _cartsReached |
| std::array< ObjectGuid, 2 > | _cartGUIDs |
| std::array< ObjectGuid, 2 > | _controlZoneGUIDs |
| std::array< ObjectGuid, 2 > | _capturePointAreaTriggers |
| ObjectGuid | _genericBunnyGUID |
| std::array< ObjectGuid, 2 > | _leaderGUIDs |
| std::queue< Position > | _hordeDespawnedMineCarts |
| std::queue< Position > | _allianceDespawnedMineCarts |
| GuidVector | _doorGUIDs |
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_deephaul_ravine.cpp.
|
inlineexplicit |
Definition at line 243 of file battleground_deephaul_ravine.cpp.
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 352 of file battleground_deephaul_ravine.cpp.
References _capturePointAreaTriggers, _flagGUID, BattlegroundScript::battleground, BattlegroundScript::battlegroundMap, Map::GetGameObject(), BaseEntity::GetGUID(), Battleground::GetPlayerTeam(), and Battleground::GetTeamIndexByTeamId().
|
inline |
Definition at line 707 of file battleground_deephaul_ravine.cpp.
References ALLIANCE, HORDE, DeephaulRavine::CreatureTexts::Lost, DeephaulRavine::WorldStates::MaxTeamScore, TEAM_ALLIANCE, TEAM_HORDE, TEAM_OTHER, and DeephaulRavine::CreatureTexts::Win.
Referenced by OnStart().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 432 of file battleground_deephaul_ravine.cpp.
References DeephaulRavine::Actions::AllianceCartAppearedInitial, DeephaulRavine::BroadcastTexts::AllianceControlMineCart, DeephaulRavine::Actions::CaptureMineCart, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, DeephaulRavine::Actions::ConsumeBuff, ZoneScript::DoAction(), DeephaulRavine::Actions::HordeCartAppearedInitial, DeephaulRavine::BroadcastTexts::HordeControlMineCart, Object::ToAreaTrigger(), and Object::ToPlayer().
Referenced by OnPrepareStage3().
|
inline |
Definition at line 748 of file battleground_deephaul_ravine.cpp.
Referenced by OnPrepareStage3().
|
inline |
Definition at line 455 of file battleground_deephaul_ravine.cpp.
References DeephaulRavine::AreaTriggers::BerserkerBuff, DeephaulRavine::Spells::Berserking, WorldObject::CastSpell(), AreaTrigger::CreateAreaTrigger(), AreaTrigger::GetCreateProperties(), Position::GetPosition(), DeephaulRavine::AreaTriggers::HealingBuff, AreaTriggerId::Id, AreaTriggerTemplate::Id, AreaTriggerCreateProperties::Id, AreaTrigger::Remove(), DeephaulRavine::Spells::Restoration, DeephaulRavine::AreaTriggers::RuneOfFrequency, DeephaulRavine::Spells::RuneOfFrequency, and AreaTriggerCreateProperties::Template.
|
inline |
Definition at line 582 of file battleground_deephaul_ravine.cpp.
References ALLIANCE, DeephaulRavine::WorldStates::AllianceCapturedCart, DeephaulRavine::BroadcastTexts::AllianceCaptureMineCart, DeephaulRavine::WorldStates::AllianceControlsEastMineCart, DeephaulRavine::WorldStates::AllianceControlsWestMineCart, DeephaulRavine::Spells::CartControlCapturePointUnitEast, DeephaulRavine::Spells::CartControlCapturePointUnitWest, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, GameObject::GetControllingTeam(), HORDE, DeephaulRavine::WorldStates::HordeCapturedCart, DeephaulRavine::BroadcastTexts::HordeCaptureMineCart, DeephaulRavine::WorldStates::HordeControlsEastMineCart, DeephaulRavine::WorldStates::HordeControlsWestMineCart, STATUS_WAIT_LEAVE, TEAM_ALLIANCE, and TEAM_HORDE.
|
inline |
Definition at line 560 of file battleground_deephaul_ravine.cpp.
References DeephaulRavine::PvpStats::CartsControlled, WorldObject::CastSpell(), DeephaulRavine::Spells::ControlVisualAlliance, DeephaulRavine::Spells::ControlVisualHorde, DeephaulRavine::Spells::ControlVisualNeutral, ObjectAccessor::FindPlayer(), GameObject::GetInsidePlayers(), WorldObject::GetOwner(), Unit::RemoveAurasDueToSpell(), and Object::ToCreature().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 541 of file battleground_deephaul_ravine.cpp.
References DeephaulRavine::AreaTriggers::CapturePointAlliance, DeephaulRavine::AreaTriggers::CapturePointHorde, Object::GetEntry(), BaseEntity::GetGUID(), AreaTrigger::IsStaticSpawn(), ZoneScript::OnAreaTriggerCreate(), TEAM_ALLIANCE, and TEAM_HORDE.
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 366 of file battleground_deephaul_ravine.cpp.
References _flagGUID, Battleground::AddPoint(), ALLIANCE, BattlegroundScript::battleground, BattlegroundScript::battlegroundMap, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, DeephaulRavine::BroadcastTexts::CrystalCapturedAlliance, DeephaulRavine::BroadcastTexts::CrystalCapturedHorde, DeephaulRavine::Spells::DeephaulCrystal, DeephaulRavine::PvpStats::FlagCaptures, Player::GetBGTeam(), Map::GetGameObject(), HORDE, ZoneScript::OnCaptureFlag(), Battleground::PlaySoundToAll(), DeephaulRavine::Sounds::PvpFlagCapturedAlliance, DeephaulRavine::Sounds::PvpFlagCapturedHorde, Unit::RemoveAurasDueToSpell(), Respawning, Battleground::SendBroadcastText(), and Battleground::UpdatePvpStat().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 487 of file battleground_deephaul_ravine.cpp.
References DeephaulRavine::Creatures::ForemanUzjax, DeephaulRavine::Creatures::GenericBunny, Object::GetEntry(), BaseEntity::GetGUID(), ZoneScript::OnCreatureCreate(), DeephaulRavine::Creatures::Ruffious, TEAM_ALLIANCE, and TEAM_HORDE.
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 507 of file battleground_deephaul_ravine.cpp.
References DeephaulRavine::Creatures::EarthenMineCartAlliance, DeephaulRavine::Creatures::EarthenMineCartHorde, Object::GetEntry(), and Position::GetPosition().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 389 of file battleground_deephaul_ravine.cpp.
References _scheduler, ALLIANCE, DeephaulRavine::WorldStates::AllianceFlagState, BattlegroundScript::battleground, WorldObject::CastSpell(), CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, CHAT_MSG_RAID_BOSS_EMOTE, Dropped, DeephaulRavine::WorldStates::Values::FlagClaimed, DeephaulRavine::BroadcastTexts::FlagDropped, DeephaulRavine::WorldStates::Values::FlagUnclaimed, Player::GetBGTeam(), GameObject::GetGOInfo(), HORDE, DeephaulRavine::WorldStates::HordeFlagState, InBase, LANG_BG_DR_CRYSTAL_TAKEN, LANG_BG_DR_CRYSTAL_TAKEN_TUTORIAL, GameObjectTemplate::newflag, ZoneScript::OnFlagStateChange(), Battleground::PlaySoundToAll(), DeephaulRavine::Sounds::PvpFlagTakenAlliance, DeephaulRavine::Sounds::PvpFlagTakenHorde, DeephaulRavine::Spells::RecentlyDroppedFlag, Respawning, GameObjectTemplate::RespawnTime, TaskScheduler::Schedule(), Battleground::SendBroadcastText(), Battleground::SendMessageToAll(), Taken, and BattlegroundScript::UpdateWorldState().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 334 of file battleground_deephaul_ravine.cpp.
References _doorGUIDs, _flagGUID, DeephaulRavine::GameObjects::DeephaulCrystal, DeephaulRavine::GameObjects::EarthenworksStartingGateX, Object::GetEntry(), BaseEntity::GetGUID(), ZoneScript::OnGameObjectCreate(), and DeephaulRavine::GameObjects::WaterworksStartingGateX.
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 245 of file battleground_deephaul_ravine.cpp.
References BattlegroundScript::battlegroundMap, DeephaulRavine::Creatures::EarthenMineCartAlliance, DeephaulRavine::Creatures::EarthenMineCartHorde, DeephaulRavine::Positions::EarthenMineCartsAlliance, DeephaulRavine::Positions::EarthenMineCartsHorde, BattlegroundScript::OnInit(), and Map::SummonCreature().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 310 of file battleground_deephaul_ravine.cpp.
References _scheduler, Creature::AI(), DeephaulRavine::Actions::CommanderStartIntro, DoAction(), DoForLeaders(), BattlegroundScript::OnPrepareStage3(), TaskScheduler::Schedule(), and SpawnMineCarts().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 256 of file battleground_deephaul_ravine.cpp.
References _doorGUIDs, _scheduler, Battleground::AddPoint(), ALLIANCE, DeephaulRavine::WorldStates::AllianceControlWorldStates, DeephaulRavine::WorldStates::BattleBegun, BattlegroundScript::battleground, BattlegroundScript::battlegroundMap, DeephaulRavine::Events::BattlegroundStarted, CheckWinner(), DeephaulRavine::WorldStates::FlagEnabled, Map::GetGameObject(), Battleground::GetTeamScore(), Map::GetWorldStateValue(), HORDE, DeephaulRavine::WorldStates::HordeControlWorldStates, DeephaulRavine::WorldStates::MaxTeamScore, BattlegroundScript::OnStart(), TaskContext::Repeat(), RespawnEarthenMineCarts(), TaskScheduler::Schedule(), SendTeamScores(), TEAM_ALLIANCE, TEAM_HORDE, BattlegroundScript::TriggerGameEvent(), and BattlegroundScript::UpdateWorldState().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 328 of file battleground_deephaul_ravine.cpp.
References _scheduler, BattlegroundScript::OnUpdate(), and TaskScheduler::Update().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 522 of file battleground_deephaul_ravine.cpp.
References ALLIANCE, DeephaulRavine::BroadcastTexts::AllianceControlMineCart, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, DeephaulRavine::Spells::ControlVisualAlliance, DeephaulRavine::Spells::ControlVisualHorde, HORDE, DeephaulRavine::BroadcastTexts::HordeControlMineCart, ZoneScript::ProcessEvent(), DeephaulRavine::Events::ProgressEventAllianceEast, DeephaulRavine::Events::ProgressEventAllianceWest, DeephaulRavine::Events::ProgressEventHordeEast, DeephaulRavine::Events::ProgressEventHordeWest, and Object::ToGameObject().
|
inline |
Definition at line 755 of file battleground_deephaul_ravine.cpp.
References DeephaulRavine::Creatures::EarthenMineCartAlliance, and DeephaulRavine::Creatures::EarthenMineCartHorde.
Referenced by OnStart().
|
inline |
Definition at line 675 of file battleground_deephaul_ravine.cpp.
References DeephaulRavine::WorldStates::AllianceTeamScore, DeephaulRavine::WorldStates::HordeTeamScore, TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by OnStart().
|
inline |
Definition at line 638 of file battleground_deephaul_ravine.cpp.
References Creature::AI(), DeephaulRavine::WorldStates::AllianceControlsEastMineCart, DeephaulRavine::WorldStates::AllianceControlsWestMineCart, DeephaulRavine::Spells::CartControlCapturePointUnitEast, DeephaulRavine::Spells::CartControlCapturePointUnitWest, DeephaulRavine::CreatureTexts::CartSpawn, DeephaulRavine::Spells::ControlVisualNeutral, DeephaulRavine::Spells::DefendingCartAura, DeephaulRavine::PathIds::EastCart, DeephaulRavine::Positions::EastMineCartSpawn, DeephaulRavine::WorldStates::HordeControlsEastMineCart, DeephaulRavine::WorldStates::HordeControlsWestMineCart, DeephaulRavine::Creatures::MineCartEast, DeephaulRavine::Creatures::MineCartWest, WorldObject::SummonCreature(), DeephaulRavine::PathIds::WestCart, and DeephaulRavine::Positions::WestMineCartSpawn.
Referenced by OnPrepareStage3().
|
inline |
Definition at line 681 of file battleground_deephaul_ravine.cpp.
References DeephaulRavine::WorldStates::AllianceControlsEastMineCart, DeephaulRavine::WorldStates::AllianceControlsWestMineCart, GameObject::GetControllingTeam(), Object::GetEntry(), WorldObject::GetOwner(), DeephaulRavine::WorldStates::HordeControlsEastMineCart, DeephaulRavine::WorldStates::HordeControlsWestMineCart, DeephaulRavine::Creatures::MineCartEast, DeephaulRavine::Creatures::MineCartWest, TEAM_ALLIANCE, TEAM_HORDE, and Object::ToCreature().
|
private |
Definition at line 788 of file battleground_deephaul_ravine.cpp.
|
private |
Definition at line 783 of file battleground_deephaul_ravine.cpp.
Referenced by CanCaptureFlag().
|
private |
Definition at line 781 of file battleground_deephaul_ravine.cpp.
|
private |
Definition at line 780 of file battleground_deephaul_ravine.cpp.
|
private |
Definition at line 782 of file battleground_deephaul_ravine.cpp.
|
private |
Definition at line 790 of file battleground_deephaul_ravine.cpp.
Referenced by OnGameObjectCreate(), and OnStart().
|
private |
Definition at line 779 of file battleground_deephaul_ravine.cpp.
Referenced by CanCaptureFlag(), OnCaptureFlag(), and OnGameObjectCreate().
|
private |
Definition at line 784 of file battleground_deephaul_ravine.cpp.
|
private |
Definition at line 787 of file battleground_deephaul_ravine.cpp.
|
private |
Definition at line 785 of file battleground_deephaul_ravine.cpp.
|
private |
Definition at line 778 of file battleground_deephaul_ravine.cpp.
Referenced by OnFlagStateChange(), OnPrepareStage3(), OnStart(), and OnUpdate().