diff options
author | Starla Insigna <starla4444@gmail.com> | 2013-08-30 00:38:40 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2013-08-30 00:38:40 -0400 |
commit | 022337356809de1e6656ce95a4c74028ac0836a2 (patch) | |
tree | c6a5a6a9d8516ac6ee1eaffe35099c94b2b58ad0 /hslist.cpp | |
parent | f42c9936ca65695c097900ad3bdf24ef13d512c4 (diff) | |
download | mazeoflife-022337356809de1e6656ce95a4c74028ac0836a2.tar.gz mazeoflife-022337356809de1e6656ce95a4c74028ac0836a2.tar.bz2 mazeoflife-022337356809de1e6656ce95a4c74028ac0836a2.zip |
Added headers to dist file
Diffstat (limited to 'hslist.cpp')
-rw-r--r-- | hslist.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hslist.cpp b/hslist.cpp index 9a12dac..ed7f3ca 100644 --- a/hslist.cpp +++ b/hslist.cpp | |||
@@ -8,6 +8,7 @@ | |||
8 | #include "titlestate.h" | 8 | #include "titlestate.h" |
9 | #include "gamestate.h" | 9 | #include "gamestate.h" |
10 | 10 | ||
11 | // We want to be able to sort Highscore objects in descending score order | ||
11 | struct hslist_comp { | 12 | struct hslist_comp { |
12 | bool operator() (Highscore* lhs, Highscore* rhs) const | 13 | bool operator() (Highscore* lhs, Highscore* rhs) const |
13 | { | 14 | { |
@@ -15,6 +16,7 @@ struct hslist_comp { | |||
15 | } | 16 | } |
16 | } hslist_comp_i; | 17 | } hslist_comp_i; |
17 | 18 | ||
19 | // resetRanks : sets the rank of all Highscore objects in a hslist_t to their (one-based) index in the list | ||
18 | void resetRanks(hslist_t in) | 20 | void resetRanks(hslist_t in) |
19 | { | 21 | { |
20 | int i=1; | 22 | int i=1; |