diff options
Diffstat (limited to 'highscore.cpp')
| -rw-r--r-- | highscore.cpp | 27 |
1 files changed, 7 insertions, 20 deletions
| diff --git a/highscore.cpp b/highscore.cpp index 7133e1a..eefe058 100644 --- a/highscore.cpp +++ b/highscore.cpp | |||
| @@ -1,27 +1,14 @@ | |||
| 1 | #include "highscore.h" | 1 | #include "highscore.h" |
| 2 | 2 | ||
| 3 | Highscore::Highscore(char* name, int level) | 3 | Highscore::Highscore(char* name, int level) { |
| 4 | { | 4 | this->name = name; |
| 5 | this->name = name; | 5 | this->level = level; |
| 6 | this->level = level; | ||
| 7 | } | 6 | } |
| 8 | 7 | ||
| 9 | char* Highscore::getName() | 8 | char* Highscore::getName() { return name; } |
| 10 | { | ||
| 11 | return name; | ||
| 12 | } | ||
| 13 | 9 | ||
| 14 | int Highscore::getLevel() | 10 | int Highscore::getLevel() { return level; } |
| 15 | { | ||
| 16 | return level; | ||
| 17 | } | ||
| 18 | 11 | ||
| 19 | void Highscore::setRank(int rank) | 12 | void Highscore::setRank(int rank) { this->rank = rank; } |
| 20 | { | ||
| 21 | this->rank = rank; | ||
| 22 | } | ||
| 23 | 13 | ||
| 24 | int Highscore::getRank() | 14 | int Highscore::getRank() { return rank; } |
| 25 | { | ||
| 26 | return rank; | ||
| 27 | } | ||
