more stuff from the schönen künste
[multypo.git] / qt / multypo.h
index b9dbf3faefc1d49c7a58b000473eb679a1b63f0c..1a088bd30692295858291e2e3d748c8e134f4fb5 100644 (file)
@@ -2,8 +2,10 @@
 #define MULTIKBD_H
 
 #include <QWidget>
+#include <QMap>
+#include <QFile>
 
-class QLabel;
+#include "player.h"
 
 class MultypoWindow : public QWidget
 {
@@ -17,11 +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