X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Fgroupscreen.h;h=d0175883b61790c954c8f1b1d87ed84c0371befa;hp=2d0e81b608c68cc686208a26a912734bdf062fac;hb=6b842eb46838b703e982c14a8e573e7a5f67a71e;hpb=22ef1e003f53437829039885c5aedf20a22423d9;ds=sidebyside diff --git a/bigscreen/groupscreen.h b/bigscreen/groupscreen.h index 2d0e81b..d017588 100644 --- a/bigscreen/groupscreen.h +++ b/bigscreen/groupscreen.h @@ -1,26 +1,34 @@ #ifndef _GROUPSCREEN_H #define _GROUPSCREEN_H 1 +#include #include +#include +#include #include "screen.h" #include "flagtrigger.h" #include "group.h" +#include "fonts.h" /* A screen class showing a group in the tournament */ class GroupScreen : public GenericScreen { private: - unsigned tournament, round, parallel; + unsigned tournament, round, parallel, machine, num_machines, players_per_machine; FlagTrigger scores_changed; pqxx::connection &conn; bool valid; + struct timeval last_updated; + std::vector last_text; public: - GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel); + // the last two parameters should probably not be there, but fetched from GroupScreen itself + GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel, unsigned machine, unsigned num_machines, unsigned players_per_machine); virtual ~GroupScreen(); bool check_invalidated(); - void draw(unsigned char *buf); + void draw(unsigned char *buf, unsigned width, unsigned height); + int get_priority(); }; #endif /* !defined(_GROUPSCREEN_H) */