diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-02 09:17:25 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-02 09:17:25 -0400 |
commit | 45d6e635c880a7fae8711fba366519dd314d9faf (patch) | |
tree | a7c5e254938161727c8ba191ad68f801f1f0f2bb /highscore.cpp | |
parent | 4e8f554286593ec8aca6c61fa0fb9c4934bd640c (diff) | |
download | mazeoflife-45d6e635c880a7fae8711fba366519dd314d9faf.tar.gz mazeoflife-45d6e635c880a7fae8711fba366519dd314d9faf.tar.bz2 mazeoflife-45d6e635c880a7fae8711fba366519dd314d9faf.zip |
Formatted source code
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 | } | ||