#define MULTIKBD_H
#include <QWidget>
+#include <QMap>
+#include <QFile>
-class QLabel;
+#include "player.h"
class MultypoWindow : public QWidget
{
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;
+ int typingPlayers; // how many are not ready yet
};
#endif // MULTIKBD_H