name input and game start works
[multypo.git] / qt / multypo.h
index f10a5d40e947d17b2a205a2340857529eef82815..9220df841240d0602427d1b481e551b079aede51 100644 (file)
@@ -2,8 +2,10 @@
 #define MULTIKBD_H
 
 #include <QWidget>
+#include <QMap>
+#include <QFile>
 
-class QLabel;
+#include "player.h"
 
 class MultypoWindow : public QWidget
 {
@@ -15,16 +17,18 @@ public:
 
        bool handleX11Event(XEvent *event);
 
-protected:
-       virtual void showEvent (QShowEvent *);
-
 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;
 };
 
 #endif // MULTIKBD_H