players get points now which are shown per word
[multypo.git] / qt / multypo.h
index de0898fd530fa335bbe2804359671cc247d21535..1a088bd30692295858291e2e3d748c8e134f4fb5 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <QWidget>
 #include <QMap>
+#include <QFile>
 
 #include "player.h"
 
@@ -18,13 +19,17 @@ public:
 
 private:
        void handleKeyPress(int device, QString string);
+       void nextWord();
+       void resetPlayerText();
 
 private:
        bool xiInited;
        int xiOpcode;
+       bool gameStarted;
        QLabel *mainLabel;
-
+       QFile words;
        QMap<int, Player*> players;
+       int typingPlayers; // how many are not ready yet
 };
 
 #endif // MULTIKBD_H