TrinityCore
Loading...
Searching...
No Matches
battleground_eye_of_the_storm Struct Reference
+ 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
 

Detailed Description

Definition at line 242 of file battleground_eye_of_the_storm.cpp.

Member Enumeration Documentation

◆ PvpStats

Enumerator
PVP_STAT_FLAG_CAPTURES 

Definition at line 244 of file battleground_eye_of_the_storm.cpp.

Constructor & Destructor Documentation

◆ battleground_eye_of_the_storm()

Member Function Documentation

◆ AddPoint()

◆ ApplyAssaultDebuffToPlayer()

◆ CanCaptureFlag()

◆ DoForFlagKeepers()

template<std::invocable< Player * > Action>
void battleground_eye_of_the_storm::DoForFlagKeepers ( Action const &  action) const
inline

◆ EventTeamCapturedPoint()

◆ EventTeamLostPoint()

◆ GetControlledBaseCount()

uint8 battleground_eye_of_the_storm::GetControlledBaseCount ( TeamId  teamId) const
inline

◆ GetPrematureWinner()

Team battleground_eye_of_the_storm::GetPrematureWinner ( )
inlineoverridevirtual

◆ OnCaptureFlag()

◆ OnEnd()

void battleground_eye_of_the_storm::OnEnd ( Team  winner)
inlineoverridevirtual

◆ OnFlagStateChange()

◆ OnGameObjectCreate()

void battleground_eye_of_the_storm::OnGameObjectCreate ( GameObject *  gameObject)
inlineoverridevirtual

◆ OnInit()

void battleground_eye_of_the_storm::OnInit ( )
inlineoverridevirtual

◆ OnStart()

void battleground_eye_of_the_storm::OnStart ( )
inlineoverridevirtual

◆ OnUpdate()

◆ ProcessEvent()

◆ RemoveAssaultDebuffFromPlayer()

void battleground_eye_of_the_storm::RemoveAssaultDebuffFromPlayer ( Player *  player)
inline

◆ ResetAssaultDebuff()

void battleground_eye_of_the_storm::ResetAssaultDebuff ( )
inline

◆ UpdatePointsCount()

void battleground_eye_of_the_storm::UpdatePointsCount ( TeamId  teamId) const
inline

◆ UpdateTeamScore()

Member Data Documentation

◆ _assaultEnabled

bool battleground_eye_of_the_storm::_assaultEnabled
private

◆ _assaultStackCount

uint8 battleground_eye_of_the_storm::_assaultStackCount
private

◆ _controlZoneHandlers

std::unordered_map<uint32, std::unique_ptr<BattlegroundEYControlZoneHandler> > battleground_eye_of_the_storm::_controlZoneHandlers
private

◆ _doorGUIDs

GuidUnorderedSet battleground_eye_of_the_storm::_doorGUIDs
private

Definition at line 666 of file battleground_eye_of_the_storm.cpp.

Referenced by OnGameObjectCreate(), and OnStart().

◆ _flagAssaultTimer

TimeTracker battleground_eye_of_the_storm::_flagAssaultTimer
private

◆ _flagGUID

ObjectGuid battleground_eye_of_the_storm::_flagGUID
private

◆ _honorScoreTics

std::array<uint32, PVP_TEAMS_COUNT> battleground_eye_of_the_storm::_honorScoreTics
private

Definition at line 660 of file battleground_eye_of_the_storm.cpp.

Referenced by AddPoint(), and battleground_eye_of_the_storm().

◆ _honorTics

uint32 battleground_eye_of_the_storm::_honorTics
private

Definition at line 663 of file battleground_eye_of_the_storm.cpp.

Referenced by AddPoint(), and battleground_eye_of_the_storm().

◆ _pointsTimer

TimeTracker battleground_eye_of_the_storm::_pointsTimer
private

Definition at line 662 of file battleground_eye_of_the_storm.cpp.

Referenced by battleground_eye_of_the_storm(), and OnUpdate().

◆ BG_EY_EVENT_START_BATTLE

constexpr uint32 battleground_eye_of_the_storm::BG_EY_EVENT_START_BATTLE = 13180
staticconstexpr

Definition at line 252 of file battleground_eye_of_the_storm.cpp.

Referenced by OnStart().

◆ BG_EY_FLAG_ASSAULT_TIMER

constexpr Seconds battleground_eye_of_the_storm::BG_EY_FLAG_ASSAULT_TIMER = 30s
staticconstexpr

◆ BG_EY_FLAG_BRUTAL_ASSAULT_STACK_COUNT

constexpr uint16 battleground_eye_of_the_storm::BG_EY_FLAG_BRUTAL_ASSAULT_STACK_COUNT = 5
staticconstexpr

Definition at line 251 of file battleground_eye_of_the_storm.cpp.

Referenced by ApplyAssaultDebuffToPlayer().

◆ BG_EY_FlagPoints

constexpr std::array<uint32, EY_POINTS_MAX> battleground_eye_of_the_storm::BG_EY_FlagPoints = { 75, 85, 100, 500 }
staticconstexpr

Definition at line 255 of file battleground_eye_of_the_storm.cpp.

Referenced by OnCaptureFlag().

◆ BG_EY_TickPoints

constexpr std::array<uint8, EY_POINTS_MAX> battleground_eye_of_the_storm::BG_EY_TickPoints = { 1, 2, 5, 10 }
staticconstexpr

Definition at line 254 of file battleground_eye_of_the_storm.cpp.

Referenced by OnUpdate().

◆ POINTS_TICK_TIME

constexpr Seconds battleground_eye_of_the_storm::POINTS_TICK_TIME = 2s
staticconstexpr

Definition at line 249 of file battleground_eye_of_the_storm.cpp.

Referenced by battleground_eye_of_the_storm(), and OnUpdate().


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