]> git.sesse.net Git - ccbs/blobdiff - bigscreen/groupscreen.h
Make the bigscreen application read in the number of players per machine, but don...
[ccbs] / bigscreen / groupscreen.h
index fb27787b34813e1ca39f6708aed6cec7a610c899..d0175883b61790c954c8f1b1d87ed84c0371befa 100644 (file)
@@ -14,7 +14,7 @@
 /* A screen class showing a group in the tournament */
 class GroupScreen : public GenericScreen {
 private:
-       unsigned tournament, round, parallel, machine, num_machines;
+       unsigned tournament, round, parallel, machine, num_machines, players_per_machine;
        FlagTrigger scores_changed;
        pqxx::connection &conn;
        bool valid;
@@ -22,7 +22,8 @@ private:
        std::vector<TextDefer> last_text;
 
 public:
-       GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel, unsigned machine, unsigned num_machines);
+       // 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();