summaryrefslogtreecommitdiffstats
path: root/pacman-c++/mainwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/mainwidget.h')
-rw-r--r--pacman-c++/mainwidget.h4
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
19public: 19public:
20 MainWidget(QWidget *parent = 0); 20 MainWidget(QWidget *parent = 0);
21 bool connected();
21 22
22protected: 23protected:
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
32private: 34private:
33 void createGui(); 35 void createGui();