#include <ThreatManager.h>
|
| HostileReference (Unit *refUnit, ThreatManager *threatManager, float threat) |
|
void | addThreat (float modThreat) |
|
void | setThreat (float threat) |
|
void | addThreatPercent (int32 percent) |
|
float | getThreat () const |
|
bool | isOnline () const |
|
bool | isAccessible () const |
|
void | setTempThreat (float threat) |
|
void | addTempThreat (float threat) |
|
void | resetTempThreat () |
|
float | getTempThreatModifier () |
|
void | updateOnlineStatus () |
|
void | setOnlineOfflineState (bool isOnline) |
|
void | setAccessibleState (bool isAccessible) |
|
bool | operator== (const HostileReference &hostileRef) const |
|
ObjectGuid | getUnitGuid () const |
|
void | removeReference () |
|
HostileReference * | next () |
|
void | targetObjectBuildLink () override |
|
void | targetObjectDestroyLink () override |
|
void | sourceObjectDestroyLink () override |
|
| Reference () |
|
virtual | ~Reference () |
|
void | link (Unit *toObj, ThreatManager *fromObj) |
|
void | unlink () |
|
void | invalidate () |
|
bool | isValid () const |
|
Reference< Unit, ThreatManager > * | next () |
|
Reference< Unit, ThreatManager >
const * | next () const |
|
Reference< Unit, ThreatManager > * | prev () |
|
Reference< Unit, ThreatManager >
const * | prev () const |
|
Reference< Unit, ThreatManager > * | nocheck_next () |
|
Reference< Unit, ThreatManager >
const * | nocheck_next () const |
|
Reference< Unit, ThreatManager > * | nocheck_prev () |
|
Reference< Unit, ThreatManager >
const * | nocheck_prev () const |
|
Unit * | operator-> () const |
|
Unit * | getTarget () const |
|
ThreatManager * | GetSource () const |
|
| LinkedListElement () |
|
virtual | ~LinkedListElement () |
|
bool | hasNext () const |
|
bool | hasPrev () const |
|
bool | isInList () const |
|
LinkedListElement * | next () |
|
LinkedListElement const * | next () const |
|
LinkedListElement * | prev () |
|
LinkedListElement const * | prev () const |
|
LinkedListElement * | nocheck_next () |
|
LinkedListElement const * | nocheck_next () const |
|
LinkedListElement * | nocheck_prev () |
|
LinkedListElement const * | nocheck_prev () const |
|
void | delink () |
|
void | insertBefore (LinkedListElement *pElem) |
|
void | insertAfter (LinkedListElement *pElem) |
|
HostileReference::HostileReference |
( |
Unit * |
refUnit, |
|
|
ThreatManager * |
threatManager, |
|
|
float |
threat |
|
) |
| |
97 link(refUnit, threatManager);
float iThreat
Definition: ThreatManager.h:134
float iTempThreatModifier
Definition: ThreatManager.h:135
bool iAccessible
Definition: ThreatManager.h:138
ObjectGuid iUnitGuid
Definition: ThreatManager.h:136
void link(Unit *toObj, ThreatManager *fromObj)
Definition: Reference.h:46
ObjectGuid const & GetGUID() const
Definition: Object.h:105
bool iOnline
Definition: ThreatManager.h:137
void HostileReference::addTempThreat |
( |
float |
threat | ) |
|
|
inline |
void addThreat(float modThreat)
Definition: ThreatManager.cpp:136
float iTempThreatModifier
Definition: ThreatManager.h:135
void HostileReference::addThreat |
( |
float |
modThreat | ) |
|
143 if (modThreat != 0.0f)
149 if (
isValid() && modThreat >= 0.0f)
152 if (victimOwner && victimOwner->
IsAlive())
bool isOnline() const
Definition: ThreatManager.h:63
void addThreat(Unit *victim, float threat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=NULL)
Definition: ThreatManager.cpp:406
void updateOnlineStatus()
Definition: ThreatManager.cpp:167
Definition: UnitEvents.h:37
void fireStatusChanged(ThreatRefStatusChangeEvent &threatRefStatusChangeEvent)
Definition: ThreatManager.cpp:128
float iThreat
Definition: ThreatManager.h:134
Unit * GetCharmerOrOwner() const
Definition: Unit.cpp:7627
bool IsAlive() const
Definition: Unit.h:1692
ThreatManager * GetSource() const
Definition: Reference.h:96
bool isValid() const
Definition: Reference.h:78
Definition: UnitEvents.h:84
Unit * getTarget() const
Definition: Reference.h:94
void HostileReference::addThreatPercent |
( |
int32 |
percent | ) |
|
160 AddPct(tmpThreat, percent);
void addThreat(float modThreat)
Definition: ThreatManager.cpp:136
float iThreat
Definition: ThreatManager.h:134
T AddPct(T &base, U pct)
Definition: Util.h:98
void processThreatEvent(ThreatRefStatusChangeEvent *threatRefStatusChangeEvent)
Definition: ThreatManager.cpp:516
ThreatManager * GetSource() const
Definition: Reference.h:96
Unit * HostileReference::GetSourceUnit |
( |
| ) |
|
|
private |
ThreatManager * GetSource() const
Definition: Reference.h:96
float HostileReference::getTempThreatModifier |
( |
| ) |
|
|
inline |
float iTempThreatModifier
Definition: ThreatManager.h:135
float HostileReference::getThreat |
( |
| ) |
const |
|
inline |
float iThreat
Definition: ThreatManager.h:134
ObjectGuid HostileReference::getUnitGuid |
( |
| ) |
const |
|
inline |
ObjectGuid iUnitGuid
Definition: ThreatManager.h:136
bool HostileReference::isAccessible |
( |
| ) |
const |
|
inline |
bool iAccessible
Definition: ThreatManager.h:138
bool HostileReference::isOnline |
( |
| ) |
const |
|
inline |
bool iOnline
Definition: ThreatManager.h:137
Definition: ThreatManager.h:49
Definition: Reference.h:27
ObjectGuid getUnitGuid() const
Definition: ThreatManager.h:107
void HostileReference::removeReference |
( |
| ) |
|
void fireStatusChanged(ThreatRefStatusChangeEvent &threatRefStatusChangeEvent)
Definition: ThreatManager.cpp:128
Definition: UnitEvents.h:40
void invalidate()
Definition: Reference.h:71
Definition: UnitEvents.h:84
void HostileReference::resetTempThreat |
( |
| ) |
|
|
inline |
void addThreat(float modThreat)
Definition: ThreatManager.cpp:136
float iTempThreatModifier
Definition: ThreatManager.h:135
void HostileReference::setAccessibleState |
( |
bool |
isAccessible | ) |
|
Definition: UnitEvents.h:43
void fireStatusChanged(ThreatRefStatusChangeEvent &threatRefStatusChangeEvent)
Definition: ThreatManager.cpp:128
bool iAccessible
Definition: ThreatManager.h:138
bool isAccessible() const
Definition: ThreatManager.h:67
Definition: UnitEvents.h:84
void HostileReference::setOnlineOfflineState |
( |
bool |
isOnline | ) |
|
bool isOnline() const
Definition: ThreatManager.h:63
void fireStatusChanged(ThreatRefStatusChangeEvent &threatRefStatusChangeEvent)
Definition: ThreatManager.cpp:128
Definition: UnitEvents.h:34
void setAccessibleState(bool isAccessible)
Definition: ThreatManager.cpp:219
Definition: UnitEvents.h:84
bool iOnline
Definition: ThreatManager.h:137
void HostileReference::setTempThreat |
( |
float |
threat | ) |
|
|
inline |
float getThreat() const
Definition: ThreatManager.h:61
void addTempThreat(float threat)
Definition: ThreatManager.h:76
void HostileReference::setThreat |
( |
float |
threat | ) |
|
|
inline |
void addThreat(float modThreat)
Definition: ThreatManager.cpp:136
float getThreat() const
Definition: ThreatManager.h:61
void HostileReference::sourceObjectDestroyLink |
( |
| ) |
|
|
overridevirtual |
void HostileReference::targetObjectBuildLink |
( |
| ) |
|
|
overridevirtual |
Implements Reference< Unit, ThreatManager >.
void addHatedBy(HostileReference *pHostileReference)
Definition: Unit.h:1999
Unit * getTarget() const
Definition: Reference.h:94
void HostileReference::targetObjectDestroyLink |
( |
| ) |
|
|
overridevirtual |
void HostileReference::updateOnlineStatus |
( |
| ) |
|
170 bool accessible =
false;
bool IsWithinCombatRange(const Unit *obj, float dist2compare) const
Definition: Unit.cpp:492
TC_GAME_API Unit * GetUnit(WorldObject const &, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:163
void setOnlineOfflineState(bool isOnline)
Definition: ThreatManager.cpp:204
Definition: Creature.h:467
ObjectGuid getUnitGuid() const
Definition: ThreatManager.h:107
bool isInAccessiblePlaceFor(Creature const *c) const
Definition: Unit.cpp:2956
void link(Unit *toObj, ThreatManager *fromObj)
Definition: Reference.h:46
Definition: ObjectGuid.h:33
ThreatManager * GetSource() const
Definition: Reference.h:96
Creature * ToCreature()
Definition: Object.h:194
void setAccessibleState(bool isAccessible)
Definition: ThreatManager.cpp:219
bool isValid() const
Definition: Reference.h:78
Unit * GetSourceUnit()
Definition: ThreatManager.cpp:244
float m_CombatDistance
Definition: Creature.h:704
Unit * getTarget() const
Definition: Reference.h:94
bool HostileReference::iAccessible |
|
private |
bool HostileReference::iOnline |
|
private |
float HostileReference::iTempThreatModifier |
|
private |
float HostileReference::iThreat |
|
private |
The documentation for this class was generated from the following files: