]> git.sesse.net Git - ccbs/blobdiff - bigscreen/groupscreen.h
Only allocate space for four digits in the score screen -- if somebody actually gets...
[ccbs] / bigscreen / groupscreen.h
index c794f60465904d2070c2976f9b9fba95130379ae..2d0e81b608c68cc686208a26a912734bdf062fac 100644 (file)
@@ -1,18 +1,23 @@
 #ifndef _GROUPSCREEN_H
 #define _GROUPSCREEN_H 1
 
+#include <pqxx/connection>
+
+#include "screen.h"
 #include "flagtrigger.h"
 #include "group.h"
 
 /* A screen class showing a group in the tournament */
-class GroupScreen : public Screen {
+class GroupScreen : public GenericScreen {
 private:
-       unsigned tournament;
+       unsigned tournament, round, parallel;
        FlagTrigger scores_changed;
-       
+       pqxx::connection &conn;
+       bool valid;
 
 public:
-       Screen(unsigned tournament);
+       GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel);
+       virtual ~GroupScreen();
 
        bool check_invalidated();
        void draw(unsigned char *buf);