TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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) { }
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  }
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: