]> git.sesse.net Git - ccbs/blobdiff - bigscreen/top10scorescreen.h
Implement a simple priority system.
[ccbs] / bigscreen / top10scorescreen.h
index 9e8f3c07b6313807901ad0bcecc10cfc38de8572..2a32901b285abb12f84df1a922b28c0b5bf4dede 100644 (file)
@@ -1,14 +1,12 @@
 #ifndef _TOP10SCORESCREEN_H
 #define _TOP10SCORESCREEN_H 1
 
-#include <vector>
+#include <set>
 #include <pqxx/connection>
-#include <time.h>
-#include <sys/time.h>
 
 #include "screen.h"
 #include "flagtrigger.h"
-#include "fonts.h"
+#include "fetch_top_scores_for_tournament.h"
 
 /* A screen class showing a group in the tournament */
 class Top10ScoreScreen : public GenericScreen {
@@ -17,7 +15,7 @@ private:
        unsigned tournament;
        FlagTrigger scores_changed;
        bool valid;
-       std::vector<TextDefer> last_text;
+       std::set<TopScore> seen_topscore;
        
 public:
        Top10ScoreScreen(pqxx::connection &conn, unsigned tournament);
@@ -25,6 +23,7 @@ public:
 
        bool check_invalidated();
        void draw(unsigned char *buf);
+       int get_priority();
 };
 
 #endif /* !defined(_TOP10SCORESCREEN_H) */