From 022337356809de1e6656ce95a4c74028ac0836a2 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Fri, 30 Aug 2013 00:38:40 -0400 Subject: Added headers to dist file --- Makefile.am | 2 +- hslist.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index c08852f..f0b1082 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = subdir-objects ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} bin_PROGRAMS = mazeoflife -mazeoflife_SOURCES = highscore.cpp hslist.cpp mazeoflife.cpp util.cpp titlestate.cpp gamestate.cpp +mazeoflife_SOURCES = highscore.cpp highscore.h hslist.cpp hslist.h mazeoflife.cpp mazeoflife.h util.cpp util.h titlestate.cpp titlestate.h gamestate.cpp gamestate.h AM_CXXFLAGS = $(SDLTTF_CXXFLAGS) $(SDLNET_CXXFLAGS) mazeoflife_LDADD = $(SDLTTF_LIBS) $(SDLNET_LIBS) EXTRA_DIST = resources/chl.bmp resources/hlo_paartm.bmp resources/hlo_passartm.bmp resources/hlo_rtm.bmp resources/htp1.bmp resources/htp2.bmp resources/icon.bmp resources/mono.ttf resources/pointer.bmp resources/title.bmp diff --git a/hslist.cpp b/hslist.cpp index 9a12dac..ed7f3ca 100644 --- a/hslist.cpp +++ b/hslist.cpp @@ -8,6 +8,7 @@ #include "titlestate.h" #include "gamestate.h" +// We want to be able to sort Highscore objects in descending score order struct hslist_comp { bool operator() (Highscore* lhs, Highscore* rhs) const { @@ -15,6 +16,7 @@ struct hslist_comp { } } hslist_comp_i; +// resetRanks : sets the rank of all Highscore objects in a hslist_t to their (one-based) index in the list void resetRanks(hslist_t in) { int i=1; -- cgit 1.4.1