From c027f1b9cd6c9deb60931a7f9f75bb4ee130291b Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 18 Oct 2009 15:24:07 -0400 Subject: 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 --- highscore.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 highscore.cpp (limited to 'highscore.cpp') diff --git a/highscore.cpp b/highscore.cpp new file mode 100644 index 0000000..6811fa8 --- /dev/null +++ b/highscore.cpp @@ -0,0 +1,27 @@ +#include "includes.h" + +Highscore::Highscore(char* name, int level) +{ + this->name = name; + this->level = level; +} + +char* Highscore::getName() +{ + return name; +} + +int Highscore::getLevel() +{ + return level; +} + +void Highscore::setRank(int rank) +{ + this->rank = rank; +} + +int Highscore::getRank() +{ + return rank; +} -- cgit 1.4.1