diff options
Diffstat (limited to 'pacman-c++/mainwidget.h')
| -rw-r--r-- | pacman-c++/mainwidget.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pacman-c++/mainwidget.h b/pacman-c++/mainwidget.h index 46de6fb..ec053a0 100644 --- a/pacman-c++/mainwidget.h +++ b/pacman-c++/mainwidget.h | |||
| @@ -18,9 +18,10 @@ class MainWidget | |||
| 18 | 18 | ||
| 19 | public: | 19 | public: |
| 20 | MainWidget(QWidget *parent = 0); | 20 | MainWidget(QWidget *parent = 0); |
| 21 | bool connected(); | ||
| 21 | 22 | ||
| 22 | protected: | 23 | protected: |
| 23 | // handling of current key | 24 | /* handling of current key */ |
| 24 | virtual void keyPressEvent(QKeyEvent* ); | 25 | virtual void keyPressEvent(QKeyEvent* ); |
| 25 | virtual void keyReleaseEvent(QKeyEvent* ); | 26 | virtual void keyReleaseEvent(QKeyEvent* ); |
| 26 | 27 | ||
| @@ -28,6 +29,7 @@ private slots: | |||
| 28 | void startGame(); | 29 | void startGame(); |
| 29 | void playerScoreClicked(); | 30 | void playerScoreClicked(); |
| 30 | void tick(); | 31 | void tick(); |
| 32 | void sendKeyUpdate(); | ||
| 31 | 33 | ||
| 32 | private: | 34 | private: |
| 33 | void createGui(); | 35 | void createGui(); |
