summaryrefslogtreecommitdiffstats
path: root/pacman-c++/mainwidget.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-11 16:58:36 +0200
committermanuel <manuel@mausz.at>2011-04-11 16:58:36 +0200
commit7667effa9635b0c25088305fe89c15a9805d6dbb (patch)
tree587cdd64e633c2940f71e269cbb119cfebf4ce48 /pacman-c++/mainwidget.h
parentee094b8cd15d040cb64b2082673f7bd2a2c61f4b (diff)
downloadfoop-7667effa9635b0c25088305fe89c15a9805d6dbb.tar.gz
foop-7667effa9635b0c25088305fe89c15a9805d6dbb.tar.bz2
foop-7667effa9635b0c25088305fe89c15a9805d6dbb.zip
- server doesn't neet mainwidget.cpp
- removed local mode (doesn't work anyway) - made movement more like orginal pacman
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();