![]() |
TrinityCore
|
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 |
Definition at line 586 of file GameObject.cpp.
|
inlineexplicit |
Definition at line 589 of file GameObject.cpp.
References _contestedTriggered, _heartbeatRate, _heartbeatTracker, _previousTeamId, GameObjectTemplate::controlZone, GameObjectTemplate::FrequentHeartbeat, GetControllingTeam(), GameObject::GetGOInfo(), WorldObject::GetMap(), Map::Instanceable(), and TimeTracker::Reset().
|
inlineoverridevirtual |
Reimplemented from GameObjectTypeBase.
Definition at line 629 of file GameObject.cpp.
References _insidePlayers, GameObjectTypeBase::_owner, GameObjectTemplate::controlZone, GameObject::GetGOInfo(), ObjectAccessor::GetPlayer(), MakeInert, and GameObjectTemplate::worldState1.
|
inline |
Definition at line 710 of file GameObject.cpp.
References CalculateTimeNeeded(), and TEAM_HORDE.
Referenced by HandleHeartbeat().
|
inline |
Definition at line 740 of file GameObject.cpp.
References GameObjectTypeBase::_owner, GameObjectTemplate::controlZone, GameObject::GetGOInfo(), GameObjectTemplate::maxSuperiority, GameObjectTemplate::maxTime, GameObjectTemplate::minSuperiority, GameObjectTemplate::minTime, and GameObjectTemplate::UncontestedTime.
Referenced by CalculatePointsPerSecond().
|
inline |
Definition at line 616 of file GameObject.cpp.
References _value, GetMaxHordeValue(), GetMinAllianceValue(), TEAM_ALLIANCE, TEAM_HORDE, and TEAM_NEUTRAL.
Referenced by ControlZone(), GameObject::GetControllingTeam(), and HandleHeartbeat().
|
inline |
Definition at line 627 of file GameObject.cpp.
References _insidePlayers.
|
inline |
Definition at line 792 of file GameObject.cpp.
References GameObjectTypeBase::_owner, GameObjectTemplate::controlZone, GameObject::GetGOInfo(), and GameObjectTemplate::neutralPercent.
Referenced by GetControllingTeam().
|
inline |
Definition at line 798 of file GameObject.cpp.
References GameObjectTypeBase::_owner, GameObjectTemplate::controlZone, GameObject::GetGOInfo(), and GameObjectTemplate::neutralPercent.
Referenced by GetControllingTeam().
|
inline |
Definition at line 813 of file GameObject.cpp.
References GameObjectTypeBase::_owner, GameObjectTemplate::controlZone, GameObject::GetGOInfo(), and GameObjectTemplate::startingValue.
|
inline |
Definition at line 650 of file GameObject.cpp.
References _contestedTriggered, _heartbeatRate, GameObjectTypeBase::_owner, _value, CalculatePointsPerSecond(), GameObjectTemplate::CaptureEventAlliance, GameObjectTemplate::CaptureEventHorde, GameObjectTemplate::ContestedEventAlliance, GameObjectTemplate::ContestedEventHorde, GameObjectTemplate::controlZone, GetControllingTeam(), GameObject::GetGOInfo(), GameObjectTemplate::NeutralEventAlliance, GameObjectTemplate::NeutralEventHorde, GameObjectTemplate::ProgressEventAlliance, GameObjectTemplate::ProgressEventHorde, SearchTargets(), SetValue(), TEAM_ALLIANCE, TEAM_HORDE, TEAM_NEUTRAL, TriggerEvent(), and GameObjectTemplate::worldstate2.
Referenced by Update().
|
inline |
Definition at line 762 of file GameObject.cpp.
References _insidePlayers, GameObjectTypeBase::_owner, _value, GameObjectTemplate::controlZone, GameObject::GetGOInfo(), ObjectAccessor::GetPlayer(), GameObjectTemplate::neutralPercent, GameObjectTemplate::worldState1, GameObjectTemplate::worldstate2, and GameObjectTemplate::worldstate3.
Referenced by SearchTargets().
|
inline |
Definition at line 702 of file GameObject.cpp.
References GameObjectTypeBase::_owner, GameObjectTemplate::controlZone, GameObject::GetGOInfo(), HandleUnitEnterExit(), GameObjectTemplate::radius, and Cell::VisitWorldObjects().
Referenced by HandleHeartbeat().
|
inline |
|
inline |
Definition at line 804 of file GameObject.cpp.
References GameObjectTypeBase::_owner, WorldObject::GetMap(), GameEvents::Trigger(), and Map::UpdateSpawnGroupConditions().
Referenced by HandleHeartbeat().
|
inlineoverridevirtual |
Reimplemented from GameObjectTypeBase.
Definition at line 603 of file GameObject.cpp.
References _heartbeatRate, _heartbeatTracker, GameObjectTypeBase::_owner, GO_FLAG_NOT_SELECTABLE, HandleHeartbeat(), GameObject::HasFlag(), TimeTracker::Passed(), TimeTracker::Reset(), and TimeTracker::Update().
|
private |
Definition at line 824 of file GameObject.cpp.
Referenced by ControlZone(), and HandleHeartbeat().
|
private |
Definition at line 819 of file GameObject.cpp.
Referenced by ControlZone(), HandleHeartbeat(), and Update().
|
private |
Definition at line 820 of file GameObject.cpp.
Referenced by ControlZone(), and Update().
|
private |
Definition at line 821 of file GameObject.cpp.
Referenced by ActivateObject(), GetInsidePlayers(), and HandleUnitEnterExit().
|
private |
Definition at line 822 of file GameObject.cpp.
Referenced by ControlZone().
|
private |
Definition at line 823 of file GameObject.cpp.
Referenced by GetControllingTeam(), HandleHeartbeat(), HandleUnitEnterExit(), and SetValue().