#include "CombatManager.h"
◆ CombatReference() [1/2]
◆ CombatReference() [2/2]
| CombatReference::CombatReference |
( |
Unit * |
a, |
|
|
Unit * |
b, |
|
|
bool |
pvp = false |
|
) |
| |
|
inlineprotected |
bool const _isPvP
Definition CombatManager.h:63
Unit *const second
Definition CombatManager.h:62
Unit *const first
Definition CombatManager.h:61
◆ EndCombat()
| void CombatReference::EndCombat |
( |
| ) |
|
73{
74
75
76
79
80
83
84
87
88
89 if (needFirstAI)
91 firstAI->JustExitedCombat();
92 if (needSecondAI)
94 secondAI->JustExitedCombat();
95
96
97 delete this;
98}
bool UpdateOwnerCombatState() const
Definition CombatManager.cpp:408
void PurgeReference(ObjectGuid const &guid, bool pvp)
Definition CombatManager.cpp:400
static ObjectGuid GetGUID(Object const *o)
Definition Object.h:114
void ClearThreat(Unit *target)
Definition ThreatManager.cpp:560
ThreatManager & GetThreatMgr()
Definition Unit.h:951
UnitAI * GetAI()
Definition Unit.h:693
CombatManager & GetCombatManager()
Definition Unit.h:953
References _isPvP, ThreatManager::ClearThreat(), first, Unit::GetAI(), Unit::GetCombatManager(), Object::GetGUID(), Unit::GetThreatMgr(), CombatManager::PurgeReference(), second, and CombatManager::UpdateOwnerCombatState().
Referenced by CombatManager::EndCombatBeyondRange(), CombatManager::RevalidateCombat(), and CombatManager::Update().
◆ GetOther()
| Unit * CombatReference::GetOther |
( |
Unit const * |
me | ) |
const |
|
inline |
◆ IsSuppressedFor()
| bool CombatReference::IsSuppressedFor |
( |
Unit const * |
who | ) |
const |
|
inline |
bool _suppressSecond
Definition CombatManager.h:83
bool _suppressFirst
Definition CombatManager.h:82
◆ operator=()
◆ Refresh()
| void CombatReference::Refresh |
( |
| ) |
|
|
protected |
◆ Suppress()
| void CombatReference::Suppress |
( |
Unit * |
who | ) |
|
|
inlineprotected |
◆ SuppressFor()
| void CombatReference::SuppressFor |
( |
Unit * |
who | ) |
|
◆ CombatManager
◆ _isPvP
| bool const CombatReference::_isPvP |
◆ _suppressFirst
| bool CombatReference::_suppressFirst = false |
|
protected |
◆ _suppressSecond
| bool CombatReference::_suppressSecond = false |
|
protected |
◆ first
| Unit* const CombatReference::first |
◆ second
| Unit* const CombatReference::second |
The documentation for this struct was generated from the following files: