summary refs log tree commit diff stats
path: root/highscore.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-02 09:17:25 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-02 09:17:25 -0400
commit45d6e635c880a7fae8711fba366519dd314d9faf (patch)
treea7c5e254938161727c8ba191ad68f801f1f0f2bb /highscore.cpp
parent4e8f554286593ec8aca6c61fa0fb9c4934bd640c (diff)
downloadmazeoflife-45d6e635c880a7fae8711fba366519dd314d9faf.tar.gz
mazeoflife-45d6e635c880a7fae8711fba366519dd314d9faf.tar.bz2
mazeoflife-45d6e635c880a7fae8711fba366519dd314d9faf.zip
Formatted source code
Diffstat (limited to 'highscore.cpp')
-rw-r--r--highscore.cpp27
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
3Highscore::Highscore(char* name, int level) 3Highscore::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
9char* Highscore::getName() 8char* Highscore::getName() { return name; }
10{
11 return name;
12}
13 9
14int Highscore::getLevel() 10int Highscore::getLevel() { return level; }
15{
16 return level;
17}
18 11
19void Highscore::setRank(int rank) 12void Highscore::setRank(int rank) { this->rank = rank; }
20{
21 this->rank = rank;
22}
23 13
24int Highscore::getRank() 14int Highscore::getRank() { return rank; }
25{
26 return rank;
27}