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

#include <Unit.h>

Public Member Functions

bool operator() (const Unit *a, const Unit *b) const
 PowerPctOrderPred (Powers power, bool ascending=true)

Private Attributes

const bool m_ascending
const Powers m_power

Detailed Description

Definition at line 2994 of file Unit.h.

Constructor & Destructor Documentation

◆ PowerPctOrderPred()

Skyfire::PowerPctOrderPred::PowerPctOrderPred ( Powers power,
bool ascending = true )
inline

Definition at line 2997 of file Unit.h.

References m_ascending, and m_power.

Member Function Documentation

◆ operator()()

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

Definition at line 2999 of file Unit.h.

References Unit::GetMaxPower(), Unit::GetPower(), m_ascending, and m_power.

Member Data Documentation

◆ m_ascending

const bool Skyfire::PowerPctOrderPred::m_ascending
private

Definition at line 3007 of file Unit.h.

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

◆ m_power

const Powers Skyfire::PowerPctOrderPred::m_power
private

Definition at line 3006 of file Unit.h.

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


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