#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 {
unsigned tournament;
FlagTrigger scores_changed;
bool valid;
- std::vector<TextDefer> last_text;
+ std::set<TopScore> seen_topscore;
public:
Top10ScoreScreen(pqxx::connection &conn, unsigned tournament);
virtual ~Top10ScoreScreen();
bool check_invalidated();
- void draw(unsigned char *buf);
+ void draw(unsigned char *buf, unsigned width, unsigned height);
+ int get_priority();
};
#endif /* !defined(_TOP10SCORESCREEN_H) */