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 /hslist.h | |
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 'hslist.h')
-rw-r--r-- | hslist.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/hslist.h b/hslist.h new file mode 100644 index 0000000..88c47c4 --- /dev/null +++ b/hslist.h | |||
@@ -0,0 +1,21 @@ | |||
1 | #ifndef HSLIST_H | ||
2 | #define HSLIST_H | ||
3 | |||
4 | class HighscoreList | ||
5 | { | ||
6 | public: | ||
7 | SDL_Surface* render(); | ||
8 | |||
9 | protected: | ||
10 | std::vector<Highscore> getLocalHighscores(); | ||
11 | std::vector<Highscore> getGlobalHighscores(); | ||
12 | |||
13 | std::vector<Highscore> hslist; | ||
14 | }; | ||
15 | |||
16 | class LocalHighscoreList : public HighscoreList { | ||
17 | public: | ||
18 | LocalHighscoreList(); | ||
19 | }; | ||
20 | |||
21 | #endif | ||