name input and game start works
[multypo.git] / qt / multypo.h
index 49b70b1bdf7d079d5252c97c81743e8245809d92..9220df841240d0602427d1b481e551b079aede51 100644 (file)
@@ -3,8 +3,9 @@
 
 #include <QWidget>
 #include <QMap>
+#include <QFile>
 
-class QLabel;
+#include "player.h"
 
 class MultypoWindow : public QWidget
 {
@@ -18,13 +19,16 @@ public:
 
 private:
        void handleKeyPress(int device, QString string);
+       void nextWord();
+       void resetPlayerText();
 
 private:
        bool xiInited;
        int xiOpcode;
+       bool gameStarted;
        QLabel *mainLabel;
-
-       QMap<int, QLabel*> players;
+       QFile words;
+       QMap<int, Player*> players;
 };
 
 #endif // MULTIKBD_H