|
Pacman Torben Petré
|
#include <Score.h>
Public Member Functions | |
| ScoreEntry () | |
| Default constructor initiates an empty object. | |
| ScoreEntry (std::string username, const int score) | |
| Constructs a new ScoreEntry object, populated with the provided values. | |
| bool | operator< (const ScoreEntry &other) const |
| Accesses the score member variables and compares them. | |
Public Attributes | |
| std::string | username |
| int | score |
Helper struct which links a username with a score. Also implements an override for the less than operator which is used to sort Highscore objects based on the score they hold.
|
inline |
Default constructor initiates an empty object.
|
inline |
Constructs a new ScoreEntry object, populated with the provided values.
| username | Username of person with score |
| score | Score |
|
inline |
Accesses the score member variables and compares them.
| other | Other ScoreEntry object for comparison |
| int logic::ScoreEntry::score |
| std::string logic::ScoreEntry::username |