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
 
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 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_MAXBG_EY_TickPoints = { 1, 2, 5, 10 }
 
static constexpr std::array< uint32, EY_POINTS_MAXBG_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
BattlegroundMapbattlegroundMap
 
Battlegroundbattleground
 

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()

battleground_eye_of_the_storm::battleground_eye_of_the_storm ( BattlegroundMap map)
inlineexplicit

Definition at line 257 of file battleground_eye_of_the_storm.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ AddPoint()

void battleground_eye_of_the_storm::AddPoint ( Team  team,
uint32  points 
)
inline

Definition at line 333 of file battleground_eye_of_the_storm.cpp.

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

◆ ApplyAssaultDebuffToPlayer()

void battleground_eye_of_the_storm::ApplyAssaultDebuffToPlayer ( Player player)
inline

Definition at line 389 of file battleground_eye_of_the_storm.cpp.

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

◆ CanCaptureFlag()

bool battleground_eye_of_the_storm::CanCaptureFlag ( AreaTrigger areaTrigger,
Player player 
)
inlineoverridevirtual

Reimplemented from ZoneScript.

Definition at line 475 of file battleground_eye_of_the_storm.cpp.

+ Here is the call graph for this function:

◆ DoForFlagKeepers()

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

Definition at line 371 of file battleground_eye_of_the_storm.cpp.

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

◆ EventTeamCapturedPoint()

void battleground_eye_of_the_storm::EventTeamCapturedPoint ( TeamId  teamId,
uint32  point,
GameObject controlZone 
) const
inline

Definition at line 603 of file battleground_eye_of_the_storm.cpp.

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

◆ EventTeamLostPoint()

void battleground_eye_of_the_storm::EventTeamLostPoint ( TeamId  teamId,
uint32  point,
GameObject controlZone 
) const
inline

Definition at line 586 of file battleground_eye_of_the_storm.cpp.

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

◆ GetControlledBaseCount()

uint8 battleground_eye_of_the_storm::GetControlledBaseCount ( TeamId  teamId) const
inline

Definition at line 347 of file battleground_eye_of_the_storm.cpp.

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

◆ GetPrematureWinner()

Team battleground_eye_of_the_storm::GetPrematureWinner ( )
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 620 of file battleground_eye_of_the_storm.cpp.

+ Here is the call graph for this function:

◆ OnCaptureFlag()

void battleground_eye_of_the_storm::OnCaptureFlag ( AreaTrigger areaTrigger,
Player player 
)
inlineoverridevirtual

Reimplemented from ZoneScript.

Definition at line 503 of file battleground_eye_of_the_storm.cpp.

+ Here is the call graph for this function:

◆ OnEnd()

void battleground_eye_of_the_storm::OnEnd ( Team  winner)
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 437 of file battleground_eye_of_the_storm.cpp.

+ Here is the call graph for this function:

◆ OnFlagStateChange()

void battleground_eye_of_the_storm::OnFlagStateChange ( GameObject ,
FlagState  ,
FlagState  newValue,
Player player 
)
inlineoverridevirtual

Reimplemented from ZoneScript.

Definition at line 538 of file battleground_eye_of_the_storm.cpp.

+ Here is the call graph for this function:

◆ OnGameObjectCreate()

void battleground_eye_of_the_storm::OnGameObjectCreate ( GameObject gameObject)
inlineoverridevirtual

Reimplemented from ZoneScript.

Definition at line 459 of file battleground_eye_of_the_storm.cpp.

+ Here is the call graph for this function:

◆ OnInit()

void battleground_eye_of_the_storm::OnInit ( )
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 275 of file battleground_eye_of_the_storm.cpp.

+ Here is the call graph for this function:

◆ OnStart()

void battleground_eye_of_the_storm::OnStart ( )
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 318 of file battleground_eye_of_the_storm.cpp.

+ Here is the call graph for this function:

◆ OnUpdate()

void battleground_eye_of_the_storm::OnUpdate ( uint32  diff)
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 280 of file battleground_eye_of_the_storm.cpp.

+ Here is the call graph for this function:

◆ ProcessEvent()

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

Reimplemented from ZoneScript.

Definition at line 631 of file battleground_eye_of_the_storm.cpp.

+ Here is the call graph for this function:

◆ RemoveAssaultDebuffFromPlayer()

void battleground_eye_of_the_storm::RemoveAssaultDebuffFromPlayer ( Player player)
inline

Definition at line 412 of file battleground_eye_of_the_storm.cpp.

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

◆ ResetAssaultDebuff()

void battleground_eye_of_the_storm::ResetAssaultDebuff ( )
inline

Definition at line 378 of file battleground_eye_of_the_storm.cpp.

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

◆ UpdatePointsCount()

void battleground_eye_of_the_storm::UpdatePointsCount ( TeamId  teamId) const
inline

Definition at line 451 of file battleground_eye_of_the_storm.cpp.

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

◆ UpdateTeamScore()

void battleground_eye_of_the_storm::UpdateTeamScore ( TeamId  Team) const
inline

Definition at line 418 of file battleground_eye_of_the_storm.cpp.

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

Member Data Documentation

◆ _assaultEnabled

bool battleground_eye_of_the_storm::_assaultEnabled
private

Definition at line 670 of file battleground_eye_of_the_storm.cpp.

◆ _assaultStackCount

uint8 battleground_eye_of_the_storm::_assaultStackCount
private

Definition at line 672 of file battleground_eye_of_the_storm.cpp.

◆ _controlZoneHandlers

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

Definition at line 665 of file battleground_eye_of_the_storm.cpp.

◆ _doorGUIDs

GuidUnorderedSet battleground_eye_of_the_storm::_doorGUIDs
private

Definition at line 666 of file battleground_eye_of_the_storm.cpp.

◆ _flagAssaultTimer

TimeTracker battleground_eye_of_the_storm::_flagAssaultTimer
private

Definition at line 671 of file battleground_eye_of_the_storm.cpp.

◆ _flagGUID

ObjectGuid battleground_eye_of_the_storm::_flagGUID
private

Definition at line 667 of file battleground_eye_of_the_storm.cpp.

◆ _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.

◆ _honorTics

uint32 battleground_eye_of_the_storm::_honorTics
private

Definition at line 663 of file battleground_eye_of_the_storm.cpp.

◆ _pointsTimer

TimeTracker battleground_eye_of_the_storm::_pointsTimer
private

Definition at line 662 of file battleground_eye_of_the_storm.cpp.

◆ 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.

◆ BG_EY_FLAG_ASSAULT_TIMER

constexpr Seconds battleground_eye_of_the_storm::BG_EY_FLAG_ASSAULT_TIMER = 30s
staticconstexpr

Definition at line 250 of file battleground_eye_of_the_storm.cpp.

◆ 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.

◆ 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.

◆ 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.

◆ 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.


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