X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Ftop10scorescreen.h;h=439bfebddc87e2d5a7540a8d075b157fe8ae080f;hp=9e8f3c07b6313807901ad0bcecc10cfc38de8572;hb=09ae4d8636130d4c86ab3f8df8f823482f948f97;hpb=5a591d5e5db52bb78fd794342f090c7db66211dd diff --git a/bigscreen/top10scorescreen.h b/bigscreen/top10scorescreen.h index 9e8f3c0..439bfeb 100644 --- a/bigscreen/top10scorescreen.h +++ b/bigscreen/top10scorescreen.h @@ -1,14 +1,12 @@ #ifndef _TOP10SCORESCREEN_H #define _TOP10SCORESCREEN_H 1 -#include +#include #include -#include -#include #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,14 +15,15 @@ private: unsigned tournament; FlagTrigger scores_changed; bool valid; - std::vector last_text; + std::set 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) */