SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MessageQueue::CompareMessages Class Reference

A function class to compare messages, required for priority_queue. More...

Public Member Functions

bool operator() (const std::unique_ptr< Message > &a, const std::unique_ptr< Message > &b) const
 Used to sort messages by priority in the priority queue.
 

Detailed Description

A function class to compare messages, required for priority_queue.

Member Function Documentation

◆ operator()()

bool MessageQueue::CompareMessages::operator() ( const std::unique_ptr< Message > &  a,
const std::unique_ptr< Message > &  b 
) const
inline

Used to sort messages by priority in the priority queue.

Achievement messages (1) need to have a higher priority than friend messages (value 0), and errors (3) the highest priority.


The documentation for this class was generated from the following file: