projects
/
multypo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ralfs Fixes
[multypo.git]
/
qt
/
multypo.h
diff --git
a/qt/multypo.h
b/qt/multypo.h
index 49b70b1bdf7d079d5252c97c81743e8245809d92..1a088bd30692295858291e2e3d748c8e134f4fb5 100644
(file)
--- a/
qt/multypo.h
+++ b/
qt/multypo.h
@@
-3,8
+3,9
@@
#include <QWidget>
#include <QMap>
#include <QWidget>
#include <QMap>
+#include <QFile>
-class QLabel;
+#include "player.h"
class MultypoWindow : public QWidget
{
class MultypoWindow : public QWidget
{
@@
-18,13
+19,17
@@
public:
private:
void handleKeyPress(int device, QString string);
private:
void handleKeyPress(int device, QString string);
+ void nextWord();
+ void resetPlayerText();
private:
bool xiInited;
int xiOpcode;
private:
bool xiInited;
int xiOpcode;
+ bool gameStarted;
QLabel *mainLabel;
QLabel *mainLabel;
-
- QMap<int, QLabel*> players;
+ QFile words;
+ QMap<int, Player*> players;
+ int typingPlayers; // how many are not ready yet
};
#endif // MULTIKBD_H
};
#endif // MULTIKBD_H