]> git.sesse.net Git - ccbs/blobdiff - bigscreen/groupscreen.h
Implement a simple priority system.
[ccbs] / bigscreen / groupscreen.h
index 3d24403443e6aa0b957a02ee9aa73abd3f3fdd5f..1bff23fdb57607009fe3e3def8a1a0083ceb08ad 100644 (file)
@@ -14,7 +14,7 @@
 /* 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;
        FlagTrigger scores_changed;
        pqxx::connection &conn;
        bool valid;
@@ -22,11 +22,12 @@ private:
        std::vector<TextDefer> last_text;
 
 public:
-       GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel);
+       GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel, unsigned machine, unsigned num_machines);
        virtual ~GroupScreen();
 
        bool check_invalidated();
        void draw(unsigned char *buf);
+       int get_priority();
 };
 
 #endif /* !defined(_GROUPSCREEN_H) */