TrinityCore
Loading...
Searching...
No Matches
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) const
 
float CalculateTimeNeeded (int32 hordePlayers, int32 alliancePlayers) const
 
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 OnStateChanged (GOState oldState, GOState newState)
 
virtual void OnRelocated ()
 
virtual bool IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects) const
 

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 580 of file GameObject.cpp.

Constructor & Destructor Documentation

◆ ControlZone()

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

Definition at line 583 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 623 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ CalculatePointsPerSecond()

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

Definition at line 704 of file GameObject.cpp.

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

◆ CalculateTimeNeeded()

float GameObjectType::ControlZone::CalculateTimeNeeded ( int32  hordePlayers,
int32  alliancePlayers 
) const
inline

Definition at line 734 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 610 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 621 of file GameObject.cpp.

◆ GetMaxHordeValue()

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

Definition at line 786 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 792 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 807 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ HandleHeartbeat()

void GameObjectType::ControlZone::HandleHeartbeat ( )
inline

Definition at line 644 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 756 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 696 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 639 of file GameObject.cpp.

+ Here is the caller graph for this function:

◆ TriggerEvent()

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

Definition at line 798 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 597 of file GameObject.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _contestedTriggered

bool GameObjectType::ControlZone::_contestedTriggered
private

Definition at line 818 of file GameObject.cpp.

◆ _heartbeatRate

Milliseconds GameObjectType::ControlZone::_heartbeatRate
private

Definition at line 813 of file GameObject.cpp.

◆ _heartbeatTracker

TimeTracker GameObjectType::ControlZone::_heartbeatTracker
private

Definition at line 814 of file GameObject.cpp.

◆ _insidePlayers

GuidUnorderedSet GameObjectType::ControlZone::_insidePlayers
private

Definition at line 815 of file GameObject.cpp.

◆ _previousTeamId

TeamId GameObjectType::ControlZone::_previousTeamId
private

Definition at line 816 of file GameObject.cpp.

◆ _value

float GameObjectType::ControlZone::_value
private

Definition at line 817 of file GameObject.cpp.


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