Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Skyfire::HealthPctOrderPred Class Reference

#include <Unit.h>

Public Member Functions

 HealthPctOrderPred (bool ascending=true)
bool operator() (const Unit *a, const Unit *b) const

Private Attributes

const bool m_ascending

Detailed Description

Definition at line 3011 of file Unit.h.

Constructor & Destructor Documentation

◆ HealthPctOrderPred()

Skyfire::HealthPctOrderPred::HealthPctOrderPred ( bool ascending = true)
inline

Definition at line 3014 of file Unit.h.

References m_ascending.

Member Function Documentation

◆ operator()()

bool Skyfire::HealthPctOrderPred::operator() ( const Unit * a,
const Unit * b ) const
inline

Definition at line 3016 of file Unit.h.

References Unit::GetHealth(), Unit::GetMaxHealth(), and m_ascending.

Member Data Documentation

◆ m_ascending

const bool Skyfire::HealthPctOrderPred::m_ascending
private

Definition at line 3023 of file Unit.h.

Referenced by HealthPctOrderPred(), and operator()().


The documentation for this class was generated from the following file:
  • src/server/game/Entities/Unit/Unit.h