A representation of an entry on a scoreboard.
More...
#include <game_entry.h>
A representation of an entry on a scoreboard.
◆ GameEntry()
dsac::array::GameEntry::GameEntry |
( |
const std::string & |
n = "" , |
|
|
int |
s = 0 |
|
) |
| |
|
inline |
Constructs a game entry with given arguments
- Parameters
-
n | the user's name ("" by default) |
s | the user's score (0 by default) |
◆ get_name()
const std::string & dsac::array::GameEntry::get_name |
( |
| ) |
const |
|
inline |
Returns the user's name
- Returns
- the user's name
◆ get_score()
int dsac::array::GameEntry::get_score |
( |
| ) |
const |
|
inline |
Returns the user's score
- Returns
- the user's score
The documentation for this class was generated from the following file: