|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <ThreatManager.h>
Public Types | |
| typedef std::list< HostileReference * > | StorageType |
Public Member Functions | |
| HostileReference * | addThreat (Unit *victim, float threat) |
| bool | empty () const |
| HostileReference * | getMostHated () const |
| HostileReference * | getReferenceByTarget (Unit *victim) const |
| StorageType const & | getThreatList () const |
| bool | isDirty () const |
| void | modifyThreatPercent (Unit *victim, int32 percent) |
| HostileReference * | selectNextVictim (Creature *attacker, HostileReference *currentVictim) const |
| void | setDirty (bool isDirty) |
| ThreatContainer () | |
| ~ThreatContainer () | |
Private Member Functions | |
| void | addReference (HostileReference *hostileRef) |
| void | clearReferences () |
| void | remove (HostileReference *hostileRef) |
| void | update () |
Private Attributes | |
| bool | iDirty |
| StorageType | iThreatList |
Friends | |
| class | ThreatManager |
Definition at line 122 of file ThreatManager.h.
| typedef std::list<HostileReference*> ThreatContainer::StorageType |
Definition at line 127 of file ThreatManager.h.
|
inline |
Definition at line 129 of file ThreatManager.h.
References iDirty.
|
inline |
Definition at line 131 of file ThreatManager.h.
References clearReferences().
|
inlineprivate |
Definition at line 163 of file ThreatManager.h.
References iThreatList.
| HostileReference * ThreatContainer::addThreat | ( | Unit * | victim, |
| float | threat ) |
Definition at line 286 of file ThreatManager.cpp.
References HostileReference::addThreat(), and getReferenceByTarget().
|
private |
Definition at line 254 of file ThreatManager.cpp.
References iThreatList.
Referenced by ~ThreatContainer().
|
inline |
Definition at line 143 of file ThreatManager.h.
References iThreatList.
|
inline |
Definition at line 148 of file ThreatManager.h.
References iThreatList.
| HostileReference * ThreatContainer::getReferenceByTarget | ( | Unit * | victim | ) | const |
Definition at line 267 of file ThreatManager.cpp.
References Object::GetGUID(), HostileReference::getUnitGuid(), and iThreatList.
Referenced by addThreat(), and modifyThreatPercent().
|
inline |
Definition at line 155 of file ThreatManager.h.
References iThreatList.
|
inline |
Definition at line 296 of file ThreatManager.cpp.
References HostileReference::addThreatPercent(), and getReferenceByTarget().
|
inlineprivate |
Definition at line 158 of file ThreatManager.h.
References iThreatList.
| HostileReference * ThreatContainer::selectNextVictim | ( | Creature * | attacker, |
| HostileReference * | currentVictim ) const |
Definition at line 317 of file ThreatManager.cpp.
References ASSERT, AURA_INTERRUPT_FLAG_TAKE_DAMAGE, Creature::CanCreatureAttack(), Creature::GetMeleeDamageSchoolMask(), Reference< TO, FROM >::getTarget(), HostileReference::getThreat(), Unit::HasNegativeAuraWithInterruptFlag(), Unit::IsImmunedToDamage(), Unit::IsWithinMeleeRange(), and iThreatList.
|
inline |
Definition at line 139 of file ThreatManager.h.
|
private |
Definition at line 305 of file ThreatManager.cpp.
References iDirty, and iThreatList.
|
friend |
Definition at line 124 of file ThreatManager.h.
References ThreatManager.
Referenced by ThreatManager.
|
private |
Definition at line 174 of file ThreatManager.h.
Referenced by isDirty(), setDirty(), ThreatContainer(), and update().
|
private |
Definition at line 173 of file ThreatManager.h.
Referenced by addReference(), clearReferences(), empty(), getMostHated(), getReferenceByTarget(), getThreatList(), remove(), selectNextVictim(), and update().