TrinityCore
Loading...
Searching...
No Matches
battleground_battle_for_gilneas Struct Reference
+ Inheritance diagram for battleground_battle_for_gilneas:

Public Member Functions

 battleground_battle_for_gilneas (BattlegroundMap *map)
 
void OnUpdate (uint32 diff) override
 
void OnStart () override
 
void ProcessEvent (WorldObject *source, uint32 eventId, WorldObject *invoker) override
 
void HandleAssaultPoint (GameObject const *capturePoint, Player *player)
 
void HandleDefendPoint (GameObject const *capturePoint, Player *player)
 
void HandleCapturePoint (GameObject const *capturePoint, TeamId const teamId)
 
void CalculateTeamNodes (uint8 &alliance, uint8 &horde) const
 
void OnGameObjectCreate (GameObject *gameobject) override
 
- Public Member Functions inherited from BattlegroundScript
 BattlegroundScript (BattlegroundMap *map) noexcept
 
 ~BattlegroundScript () override=default
 
virtual void OnInit ()
 
virtual void OnPrepareStage1 ()
 
virtual void OnPrepareStage2 ()
 
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
 
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 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)
 

Static Public Attributes

static constexpr uint32 TICK_POINTS [4] = { 0, 1, 3, 30 }
 
static constexpr uint32 WARNING_NEAR_VICTORY_SCORE = 1200
 
static constexpr uint32 MAX_TEAM_SCORE = 1500
 

Private Attributes

TimeTracker _tickTracker
 
GuidVector _capturePoints
 
GuidVector _doors
 
std::array< bool, PVP_TEAMS_COUNT_isInformedNearVictory
 
std::unordered_map< uint32, BattleForGilneasCapturePointData_capturePointData
 

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 92 of file battleground_battle_for_gilneas.cpp.

Constructor & Destructor Documentation

◆ battleground_battle_for_gilneas()

battleground_battle_for_gilneas::battleground_battle_for_gilneas ( BattlegroundMap map)
inlineexplicit

Definition at line 99 of file battleground_battle_for_gilneas.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ CalculateTeamNodes()

void battleground_battle_for_gilneas::CalculateTeamNodes ( uint8 alliance,
uint8 horde 
) const
inline

Definition at line 266 of file battleground_battle_for_gilneas.cpp.

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

◆ HandleAssaultPoint()

void battleground_battle_for_gilneas::HandleAssaultPoint ( GameObject const *  capturePoint,
Player player 
)
inline

Definition at line 206 of file battleground_battle_for_gilneas.cpp.

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

◆ HandleCapturePoint()

void battleground_battle_for_gilneas::HandleCapturePoint ( GameObject const *  capturePoint,
TeamId const  teamId 
)
inline

Definition at line 250 of file battleground_battle_for_gilneas.cpp.

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

◆ HandleDefendPoint()

void battleground_battle_for_gilneas::HandleDefendPoint ( GameObject const *  capturePoint,
Player player 
)
inline

Definition at line 228 of file battleground_battle_for_gilneas.cpp.

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

◆ OnGameObjectCreate()

void battleground_battle_for_gilneas::OnGameObjectCreate ( GameObject gameobject)
inlineoverridevirtual

Reimplemented from ZoneScript.

Definition at line 291 of file battleground_battle_for_gilneas.cpp.

+ Here is the call graph for this function:

◆ OnStart()

void battleground_battle_for_gilneas::OnStart ( )
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 175 of file battleground_battle_for_gilneas.cpp.

+ Here is the call graph for this function:

◆ OnUpdate()

void battleground_battle_for_gilneas::OnUpdate ( uint32  diff)
inlineoverridevirtual

Reimplemented from BattlegroundScript.

Definition at line 109 of file battleground_battle_for_gilneas.cpp.

+ Here is the call graph for this function:

◆ ProcessEvent()

void battleground_battle_for_gilneas::ProcessEvent ( WorldObject source,
uint32  eventId,
WorldObject invoker 
)
inlineoverridevirtual

Reimplemented from ZoneScript.

Definition at line 188 of file battleground_battle_for_gilneas.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _capturePointData

std::unordered_map<uint32, BattleForGilneasCapturePointData> battleground_battle_for_gilneas::_capturePointData
private

Definition at line 314 of file battleground_battle_for_gilneas.cpp.

◆ _capturePoints

GuidVector battleground_battle_for_gilneas::_capturePoints
private

Definition at line 311 of file battleground_battle_for_gilneas.cpp.

◆ _doors

GuidVector battleground_battle_for_gilneas::_doors
private

Definition at line 312 of file battleground_battle_for_gilneas.cpp.

◆ _isInformedNearVictory

std::array<bool, PVP_TEAMS_COUNT> battleground_battle_for_gilneas::_isInformedNearVictory
private

Definition at line 313 of file battleground_battle_for_gilneas.cpp.

◆ _tickTracker

TimeTracker battleground_battle_for_gilneas::_tickTracker
private

Definition at line 310 of file battleground_battle_for_gilneas.cpp.

◆ MAX_TEAM_SCORE

constexpr uint32 battleground_battle_for_gilneas::MAX_TEAM_SCORE = 1500
staticconstexpr

Definition at line 97 of file battleground_battle_for_gilneas.cpp.

◆ TICK_POINTS

constexpr uint32 battleground_battle_for_gilneas::TICK_POINTS[4] = { 0, 1, 3, 30 }
staticconstexpr

Definition at line 94 of file battleground_battle_for_gilneas.cpp.

◆ WARNING_NEAR_VICTORY_SCORE

constexpr uint32 battleground_battle_for_gilneas::WARNING_NEAR_VICTORY_SCORE = 1200
staticconstexpr

Definition at line 96 of file battleground_battle_for_gilneas.cpp.


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