TrinityCore
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Class List
Class Index
Class Hierarchy
Class Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Public Member Functions
|
Private Attributes
|
List of all members
Trinity::ThreatOrderPred Class Reference
#include <
ThreatManager.h
>
Public Member Functions
ThreatOrderPred
(
bool
ascending=
false
)
bool
operator()
(
HostileReference
const
*a,
HostileReference
const
*b)
const
Private Attributes
const
bool
m_ascending
Constructor & Destructor Documentation
Trinity::ThreatOrderPred::ThreatOrderPred
(
bool
ascending
=
false
)
inline
285
:
m_ascending
(ascending) { }
Trinity::ThreatOrderPred::m_ascending
const bool m_ascending
Definition:
ThreatManager.h:291
Member Function Documentation
bool
Trinity::ThreatOrderPred::operator()
(
HostileReference
const
*
a
,
HostileReference
const
*
b
)
const
inline
287
{
288
return
m_ascending
? a->getThreat() < b->getThreat() : a->getThreat() > b->getThreat();
289
}
Trinity::ThreatOrderPred::m_ascending
const bool m_ascending
Definition:
ThreatManager.h:291
Here is the call graph for this function:
Member Data Documentation
const
bool
Trinity::ThreatOrderPred::m_ascending
private
The documentation for this class was generated from the following file:
src/server/game/Combat/
ThreatManager.h
Generated on Tue Apr 5 2016 20:40:53 for TrinityCore by
1.8.8