![]() |
TrinityCore
|
Inheritance diagram for battleground_eye_of_the_storm:Public Types | |
| enum | PvpStats { PVP_STAT_FLAG_CAPTURES = 183 } |
Public Member Functions | |
| battleground_eye_of_the_storm (BattlegroundMap *map) | |
| void | OnInit () override |
| void | OnUpdate (uint32 diff) override |
| void | OnStart () override |
| void | AddPoint (Team team, uint32 points) |
| uint8 | GetControlledBaseCount (TeamId teamId) const |
| template<std::invocable< Player * > Action> | |
| void | DoForFlagKeepers (Action const &action) const |
| void | ResetAssaultDebuff () |
| void | ApplyAssaultDebuffToPlayer (Player *player) |
| void | RemoveAssaultDebuffFromPlayer (Player *player) |
| void | UpdateTeamScore (TeamId Team) const |
| void | OnEnd (Team winner) override |
| void | UpdatePointsCount (TeamId teamId) const |
| void | OnGameObjectCreate (GameObject *gameObject) override |
| bool | CanCaptureFlag (AreaTrigger *areaTrigger, Player *player) override |
| void | OnCaptureFlag (AreaTrigger *areaTrigger, Player *player) override |
| void | OnFlagStateChange (GameObject *, FlagState, FlagState newValue, Player *player) override |
| void | EventTeamLostPoint (TeamId teamId, uint32 point, GameObject *controlZone) const |
| void | EventTeamCapturedPoint (TeamId teamId, uint32 point, GameObject *controlZone) const |
| Team | GetPrematureWinner () override |
| void | ProcessEvent (WorldObject *obj, uint32 eventId, WorldObject *invoker) 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 | OnPlayerJoined (Player *player, bool inBattleground) |
| virtual void | OnPlayerLeft (Player *player) |
| virtual void | OnPlayerKilled (Player *victim, Player *killer) |
| virtual void | OnUnitKilled (Creature *victim, Unit *killer) |
| 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 | OnCreatureCreate (Creature *) |
| 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 | DoAction (uint32 actionId, WorldObject *source=nullptr, WorldObject *target=nullptr) |
| virtual void | OnFlagTaken (GameObject *flag, Player *player) |
| virtual void | OnFlagDropped (ObjectGuid const &flagGuid, Player *player) |
Static Public Attributes | |
| static constexpr Seconds | POINTS_TICK_TIME = 2s |
| static constexpr Seconds | BG_EY_FLAG_ASSAULT_TIMER = 30s |
| static constexpr uint16 | BG_EY_FLAG_BRUTAL_ASSAULT_STACK_COUNT = 5 |
| static constexpr uint32 | BG_EY_EVENT_START_BATTLE = 13180 |
| static constexpr std::array< uint8, EY_POINTS_MAX > | BG_EY_TickPoints = { 1, 2, 5, 10 } |
| static constexpr std::array< uint32, EY_POINTS_MAX > | BG_EY_FlagPoints = { 75, 85, 100, 500 } |
Private Attributes | |
| std::array< uint32, PVP_TEAMS_COUNT > | _honorScoreTics |
| TimeTracker | _pointsTimer |
| uint32 | _honorTics |
| std::unordered_map< uint32, std::unique_ptr< BattlegroundEYControlZoneHandler > > | _controlZoneHandlers |
| GuidUnorderedSet | _doorGUIDs |
| ObjectGuid | _flagGUID |
| bool | _assaultEnabled |
| TimeTracker | _flagAssaultTimer |
| uint8 | _assaultStackCount |
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 242 of file battleground_eye_of_the_storm.cpp.
| Enumerator | |
|---|---|
| PVP_STAT_FLAG_CAPTURES | |
Definition at line 244 of file battleground_eye_of_the_storm.cpp.
|
inlineexplicit |
Definition at line 257 of file battleground_eye_of_the_storm.cpp.
References _assaultEnabled, _assaultStackCount, _controlZoneHandlers, _flagAssaultTimer, _honorScoreTics, _honorTics, _pointsTimer, BattlegroundScript::battleground, BG_EY_EYWeekendHonorTicks, BG_EY_FLAG_ASSAULT_TIMER, BG_EY_NotEYWeekendHonorTicks, BG_OBJECT_BE_TOWER_CAP_EY_ENTRY, BG_OBJECT_DR_TOWER_CAP_EY_ENTRY, BG_OBJECT_FR_TOWER_CAP_EY_ENTRY, BG_OBJECT_HU_TOWER_CAP_EY_ENTRY, BLOOD_ELF, DRAENEI_RUINS, FEL_REAVER, Battleground::GetTypeID(), MAGE_TOWER, POINTS_TICK_TIME, TimeTracker::Reset(), and sBattlegroundMgr.
Definition at line 333 of file battleground_eye_of_the_storm.cpp.
References _honorScoreTics, _honorTics, Battleground::AddPoint(), BattlegroundScript::battleground, Battleground::GetBonusHonorFromKill(), Battleground::GetTeamIndexByTeamId(), Battleground::RewardHonorToTeam(), and UpdateTeamScore().
Referenced by OnCaptureFlag(), and OnUpdate().
|
inline |
Definition at line 389 of file battleground_eye_of_the_storm.cpp.
References _assaultStackCount, BG_EY_BRUTAL_ASSAULT_SPELL, BG_EY_FLAG_BRUTAL_ASSAULT_STACK_COUNT, BG_EY_FOCUSED_ASSAULT_SPELL, WorldObject::CastSpell(), Unit::GetAura(), Unit::RemoveAurasDueToSpell(), and Aura::SetStackAmount().
Referenced by OnFlagStateChange(), and OnUpdate().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 475 of file battleground_eye_of_the_storm.cpp.
References _controlZoneHandlers, _flagGUID, ALLIANCE, AREATRIGGER_CAPTURE_FLAG, BattlegroundScript::battleground, BattlegroundScript::battlegroundMap, WorldObject::FindNearestGameObjectWithOptions(), Object::GetEntry(), Map::GetGameObject(), BaseEntity::GetGUID(), Battleground::GetPlayerTeam(), Map::GetWorldStateValue(), HORDE, and m_PointsIconStruct.
|
inline |
Definition at line 371 of file battleground_eye_of_the_storm.cpp.
References _flagGUID, BattlegroundScript::battlegroundMap, ObjectAccessor::FindPlayer(), and Map::GetGameObject().
Referenced by OnUpdate(), and ResetAssaultDebuff().
|
inline |
Definition at line 603 of file battleground_eye_of_the_storm.cpp.
References BattlegroundScript::battleground, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, m_CapturingPointTypes, m_PointsIconStruct, Battleground::SendBroadcastText(), TEAM_ALLIANCE, TEAM_HORDE, UpdatePointsCount(), and BattlegroundScript::UpdateWorldState().
Referenced by ProcessEvent().
|
inline |
Definition at line 586 of file battleground_eye_of_the_storm.cpp.
References BattlegroundScript::battleground, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, m_LosingPointTypes, m_PointsIconStruct, Battleground::SendBroadcastText(), TEAM_ALLIANCE, TEAM_HORDE, UpdatePointsCount(), and BattlegroundScript::UpdateWorldState().
Referenced by ProcessEvent().
Definition at line 347 of file battleground_eye_of_the_storm.cpp.
References _controlZoneHandlers, BattlegroundScript::battlegroundMap, Map::GetWorldStateValue(), m_PointsIconStruct, TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by OnCaptureFlag(), OnUpdate(), and UpdatePointsCount().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 620 of file battleground_eye_of_the_storm.cpp.
References ALLIANCE, BattlegroundScript::battleground, BattlegroundScript::GetPrematureWinner(), Battleground::GetTeamScore(), HORDE, TEAM_ALLIANCE, and TEAM_HORDE.
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 503 of file battleground_eye_of_the_storm.cpp.
References _flagGUID, AddPoint(), ALLIANCE, AREATRIGGER_CAPTURE_FLAG, BattlegroundScript::battleground, BattlegroundScript::battlegroundMap, BG_EY_FLAG_STATE_ON_BASE, BG_EY_FlagPoints, BG_EY_NETHERSTORM_FLAG_SPELL, BG_EY_SOUND_FLAG_CAPTURED_ALLIANCE, BG_EY_SOUND_FLAG_CAPTURED_HORDE, BG_EY_TEXT_ALLIANCE_CAPTURED_FLAG, BG_EY_TEXT_HORDE_CAPTURED_FLAG, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, GetControlledBaseCount(), Object::GetEntry(), Map::GetGameObject(), BaseEntity::GetGUID(), Battleground::GetPlayerTeam(), Battleground::GetTeamIndexByTeamId(), NETHERSTORM_FLAG_STATE_ALLIANCE, NETHERSTORM_FLAG_STATE_HORDE, Battleground::PlaySoundToAll(), PVP_STAT_FLAG_CAPTURES, PvPActive, Unit::RemoveAurasDueToSpell(), Unit::RemoveAurasWithInterruptFlags(), ResetAssaultDebuff(), Respawning, Battleground::SendBroadcastText(), Battleground::UpdatePvpStat(), and BattlegroundScript::UpdateWorldState().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 437 of file battleground_eye_of_the_storm.cpp.
References ALLIANCE, BattlegroundScript::battleground, Battleground::GetBonusHonorFromKill(), HORDE, BattlegroundScript::OnEnd(), and Battleground::RewardHonorToTeam().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 538 of file battleground_eye_of_the_storm.cpp.
References _assaultEnabled, ALLIANCE, ApplyAssaultDebuffToPlayer(), AsUnderlyingType(), BattlegroundScript::battleground, BG_EY_FLAG_STATE_ON_PLAYER, BG_EY_FLAG_STATE_WAIT_RESPAWN, BG_EY_SOUND_FLAG_PICKED_UP_ALLIANCE, BG_EY_SOUND_FLAG_PICKED_UP_HORDE, BG_EY_TEXT_FLAG_DROPPED, BG_EY_TEXT_TAKEN_FLAG, WorldObject::CastSpell(), CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, Dropped, BaseEntity::GetGUID(), Battleground::GetPlayerTeam(), InBase, NETHERSTORM_FLAG, NETHERSTORM_FLAG_STATE_ALLIANCE, NETHERSTORM_FLAG_STATE_HORDE, Battleground::PlaySoundToAll(), PvPActive, RemoveAssaultDebuffFromPlayer(), Unit::RemoveAurasWithInterruptFlags(), ResetAssaultDebuff(), Respawning, Battleground::SendBroadcastText(), SPELL_RECENTLY_DROPPED_NEUTRAL_FLAG, Taken, and BattlegroundScript::UpdateWorldState().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 459 of file battleground_eye_of_the_storm.cpp.
References _doorGUIDs, _flagGUID, BG_OBJECT_A_DOOR_EY_ENTRY, BG_OBJECT_FLAG2_EY_ENTRY, BG_OBJECT_H_DOOR_EY_ENTRY, Object::GetEntry(), and BaseEntity::GetGUID().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 275 of file battleground_eye_of_the_storm.cpp.
References BG_EY_MAX_TEAM_SCORE, EY_MAX_RESOURCES, and BattlegroundScript::UpdateWorldState().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 318 of file battleground_eye_of_the_storm.cpp.
References _doorGUIDs, BattlegroundScript::battlegroundMap, BG_EY_EVENT_START_BATTLE, Map::GetGameObject(), and BattlegroundScript::TriggerGameEvent().
|
inlineoverridevirtual |
Reimplemented from BattlegroundScript.
Definition at line 280 of file battleground_eye_of_the_storm.cpp.
References _assaultEnabled, _assaultStackCount, _flagAssaultTimer, _pointsTimer, AddPoint(), ALLIANCE, ApplyAssaultDebuffToPlayer(), BattlegroundScript::battleground, BG_EY_FLAG_ASSAULT_TIMER, BG_EY_TickPoints, DoForFlagKeepers(), GetControlledBaseCount(), Battleground::GetStatus(), HORDE, TimeTracker::Passed(), POINTS_TICK_TIME, TimeTracker::Reset(), STATUS_IN_PROGRESS, TEAM_ALLIANCE, TEAM_HORDE, and TimeTracker::Update().
|
inlineoverridevirtual |
Reimplemented from ZoneScript.
Definition at line 631 of file battleground_eye_of_the_storm.cpp.
References _controlZoneHandlers, EventTeamCapturedPoint(), EventTeamLostPoint(), GAMEOBJECT_TYPE_CONTROL_ZONE, Object::GetEntry(), BattlegroundEYControlZoneHandler::GetPoint(), ZoneScript::ProcessEvent(), TEAM_ALLIANCE, TEAM_HORDE, and Object::ToGameObject().
|
inline |
Definition at line 412 of file battleground_eye_of_the_storm.cpp.
References BG_EY_BRUTAL_ASSAULT_SPELL, BG_EY_FOCUSED_ASSAULT_SPELL, and Unit::RemoveAurasDueToSpell().
Referenced by OnFlagStateChange(), and ResetAssaultDebuff().
|
inline |
Definition at line 378 of file battleground_eye_of_the_storm.cpp.
References _assaultEnabled, _assaultStackCount, _flagAssaultTimer, BG_EY_FLAG_ASSAULT_TIMER, DoForFlagKeepers(), RemoveAssaultDebuffFromPlayer(), and TimeTracker::Reset().
Referenced by OnCaptureFlag(), and OnFlagStateChange().
|
inline |
Definition at line 451 of file battleground_eye_of_the_storm.cpp.
References EY_ALLIANCE_BASE, EY_HORDE_BASE, GetControlledBaseCount(), TEAM_ALLIANCE, TEAM_HORDE, and BattlegroundScript::UpdateWorldState().
Referenced by EventTeamCapturedPoint(), and EventTeamLostPoint().
|
inline |
Definition at line 418 of file battleground_eye_of_the_storm.cpp.
References ALLIANCE, BattlegroundScript::battleground, BG_EY_MAX_TEAM_SCORE, Battleground::EndBattleground(), EY_ALLIANCE_RESOURCES, EY_HORDE_RESOURCES, Battleground::GetTeamScore(), HORDE, TEAM_ALLIANCE, and BattlegroundScript::UpdateWorldState().
Referenced by AddPoint().
|
private |
Definition at line 670 of file battleground_eye_of_the_storm.cpp.
Referenced by battleground_eye_of_the_storm(), OnFlagStateChange(), OnUpdate(), and ResetAssaultDebuff().
|
private |
Definition at line 672 of file battleground_eye_of_the_storm.cpp.
Referenced by ApplyAssaultDebuffToPlayer(), battleground_eye_of_the_storm(), OnUpdate(), and ResetAssaultDebuff().
|
private |
Definition at line 665 of file battleground_eye_of_the_storm.cpp.
Referenced by battleground_eye_of_the_storm(), CanCaptureFlag(), GetControlledBaseCount(), and ProcessEvent().
|
private |
Definition at line 666 of file battleground_eye_of_the_storm.cpp.
Referenced by OnGameObjectCreate(), and OnStart().
|
private |
Definition at line 671 of file battleground_eye_of_the_storm.cpp.
Referenced by battleground_eye_of_the_storm(), OnUpdate(), and ResetAssaultDebuff().
|
private |
Definition at line 667 of file battleground_eye_of_the_storm.cpp.
Referenced by CanCaptureFlag(), DoForFlagKeepers(), OnCaptureFlag(), and OnGameObjectCreate().
|
private |
Definition at line 660 of file battleground_eye_of_the_storm.cpp.
Referenced by AddPoint(), and battleground_eye_of_the_storm().
|
private |
Definition at line 663 of file battleground_eye_of_the_storm.cpp.
Referenced by AddPoint(), and battleground_eye_of_the_storm().
|
private |
Definition at line 662 of file battleground_eye_of_the_storm.cpp.
Referenced by battleground_eye_of_the_storm(), and OnUpdate().
|
staticconstexpr |
Definition at line 252 of file battleground_eye_of_the_storm.cpp.
Referenced by OnStart().
|
staticconstexpr |
Definition at line 250 of file battleground_eye_of_the_storm.cpp.
Referenced by battleground_eye_of_the_storm(), OnUpdate(), and ResetAssaultDebuff().
|
staticconstexpr |
Definition at line 251 of file battleground_eye_of_the_storm.cpp.
Referenced by ApplyAssaultDebuffToPlayer().
|
staticconstexpr |
Definition at line 255 of file battleground_eye_of_the_storm.cpp.
Referenced by OnCaptureFlag().
|
staticconstexpr |
Definition at line 254 of file battleground_eye_of_the_storm.cpp.
Referenced by OnUpdate().
|
staticconstexpr |
Definition at line 249 of file battleground_eye_of_the_storm.cpp.
Referenced by battleground_eye_of_the_storm(), and OnUpdate().