diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-10-18 15:24:07 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-10-18 15:24:07 -0400 |
commit | c027f1b9cd6c9deb60931a7f9f75bb4ee130291b (patch) | |
tree | 49426a9cf3ee24434141c903b01481110b2808b6 /highscore.cpp | |
parent | a157cd82a86390f1fcb1a2086f86af5187e85a69 (diff) | |
download | mazeoflife-c027f1b9cd6c9deb60931a7f9f75bb4ee130291b.tar.gz mazeoflife-c027f1b9cd6c9deb60931a7f9f75bb4ee130291b.tar.bz2 mazeoflife-c027f1b9cd6c9deb60931a7f9f75bb4ee130291b.zip |
Added local highscore list
You can now view and add to a local highscore list. A change to State was necessary due to how the user's name would be entered into the highscore list and thus all states have been modified. Refs #104
Diffstat (limited to 'highscore.cpp')
-rw-r--r-- | highscore.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/highscore.cpp b/highscore.cpp new file mode 100644 index 0000000..6811fa8 --- /dev/null +++ b/highscore.cpp | |||
@@ -0,0 +1,27 @@ | |||
1 | #include "includes.h" | ||
2 | |||
3 | Highscore::Highscore(char* name, int level) | ||
4 | { | ||
5 | this->name = name; | ||
6 | this->level = level; | ||
7 | } | ||
8 | |||
9 | char* Highscore::getName() | ||
10 | { | ||
11 | return name; | ||
12 | } | ||
13 | |||
14 | int Highscore::getLevel() | ||
15 | { | ||
16 | return level; | ||
17 | } | ||
18 | |||
19 | void Highscore::setRank(int rank) | ||
20 | { | ||
21 | this->rank = rank; | ||
22 | } | ||
23 | |||
24 | int Highscore::getRank() | ||
25 | { | ||
26 | return rank; | ||
27 | } | ||