TrinityCore
GameObjectType::ControlZone Class Reference
+ Inheritance diagram for GameObjectType::ControlZone:

Public Member Functions

 ControlZone (GameObject &owner)
 
void Update (uint32 diff) override
 
TeamId GetControllingTeam () const
 
GuidUnorderedSet const * GetInsidePlayers () const
 
void ActivateObject (GameObjectActions action, int32, WorldObject *, uint32, int32) override
 
void SetValue (float value)
 
void HandleHeartbeat ()
 
void SearchTargets (std::vector< Player * > &targetList)
 
float CalculatePointsPerSecond (std::vector< Player * > const &targetList)
 
void HandleUnitEnterExit (std::vector< Player * > const &newTargetList)
 
float GetMaxHordeValue () const
 
float GetMinAllianceValue () const
 
void TriggerEvent (uint32 eventId) const
 
uint32 GetStartingValue () const
 
- Public Member Functions inherited from GameObjectTypeBase
 GameObjectTypeBase (GameObject &owner)
 
virtual ~GameObjectTypeBase ()=default
 
virtual void Update (uint32 diff)
 
virtual void OnStateChanged (GOState oldState, GOState newState)
 
virtual void OnRelocated ()
 
virtual bool IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects) const
 
virtual void ActivateObject (GameObjectActions action, int32 param, WorldObject *spellCaster=nullptr, uint32 spellId=0, int32 effectIndex=-1)
 

Private Attributes

Milliseconds _heartbeatRate
 
TimeTracker _heartbeatTracker
 
GuidUnorderedSet _insidePlayers
 
TeamId _previousTeamId
 
float _value
 
bool _contestedTriggered
 

Additional Inherited Members

- Protected Attributes inherited from GameObjectTypeBase
GameObject_owner
 

Detailed Description

Definition at line 575 of file GameObject.cpp.

Constructor & Destructor Documentation

◆ ControlZone()

GameObjectType::ControlZone::ControlZone ( GameObject owner)
inlineexplicit

Definition at line 578 of file GameObject.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ ActivateObject()

void GameObjectType::ControlZone::ActivateObject ( GameObjectActions  action,
int32  ,
WorldObject ,
uint32  ,
int32   
)
inlineoverridevirtual

Reimplemented from GameObjectTypeBase.

Definition at line 618 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ CalculatePointsPerSecond()

float GameObjectType::ControlZone::CalculatePointsPerSecond ( std::vector< Player * > const &  targetList)
inline

Definition at line 699 of file GameObject.cpp.

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

◆ GetControllingTeam()

TeamId GameObjectType::ControlZone::GetControllingTeam ( ) const
inline

Definition at line 605 of file GameObject.cpp.

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

◆ GetInsidePlayers()

GuidUnorderedSet const * GameObjectType::ControlZone::GetInsidePlayers ( ) const
inline

Definition at line 616 of file GameObject.cpp.

◆ GetMaxHordeValue()

float GameObjectType::ControlZone::GetMaxHordeValue ( ) const
inline

Definition at line 763 of file GameObject.cpp.

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

◆ GetMinAllianceValue()

float GameObjectType::ControlZone::GetMinAllianceValue ( ) const
inline

Definition at line 769 of file GameObject.cpp.

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

◆ GetStartingValue()

uint32 GameObjectType::ControlZone::GetStartingValue ( ) const
inline

Definition at line 784 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ HandleHeartbeat()

void GameObjectType::ControlZone::HandleHeartbeat ( )
inline

Definition at line 639 of file GameObject.cpp.

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

◆ HandleUnitEnterExit()

void GameObjectType::ControlZone::HandleUnitEnterExit ( std::vector< Player * > const &  newTargetList)
inline

Definition at line 733 of file GameObject.cpp.

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

◆ SearchTargets()

void GameObjectType::ControlZone::SearchTargets ( std::vector< Player * > &  targetList)
inline

Definition at line 691 of file GameObject.cpp.

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

◆ SetValue()

void GameObjectType::ControlZone::SetValue ( float  value)
inline

Definition at line 634 of file GameObject.cpp.

+ Here is the caller graph for this function:

◆ TriggerEvent()

void GameObjectType::ControlZone::TriggerEvent ( uint32  eventId) const
inline

Definition at line 775 of file GameObject.cpp.

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

◆ Update()

void GameObjectType::ControlZone::Update ( uint32  diff)
inlineoverridevirtual

Reimplemented from GameObjectTypeBase.

Definition at line 592 of file GameObject.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _contestedTriggered

bool GameObjectType::ControlZone::_contestedTriggered
private

Definition at line 795 of file GameObject.cpp.

◆ _heartbeatRate

Milliseconds GameObjectType::ControlZone::_heartbeatRate
private

Definition at line 790 of file GameObject.cpp.

◆ _heartbeatTracker

TimeTracker GameObjectType::ControlZone::_heartbeatTracker
private

Definition at line 791 of file GameObject.cpp.

◆ _insidePlayers

GuidUnorderedSet GameObjectType::ControlZone::_insidePlayers
private

Definition at line 792 of file GameObject.cpp.

◆ _previousTeamId

TeamId GameObjectType::ControlZone::_previousTeamId
private

Definition at line 793 of file GameObject.cpp.

◆ _value

float GameObjectType::ControlZone::_value
private

Definition at line 794 of file GameObject.cpp.


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