From 7667effa9635b0c25088305fe89c15a9805d6dbb Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 11 Apr 2011 16:58:36 +0200 Subject: - server doesn't neet mainwidget.cpp - removed local mode (doesn't work anyway) - made movement more like orginal pacman --- pacman-c++/mainwidget.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pacman-c++/mainwidget.h') 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 public: MainWidget(QWidget *parent = 0); + bool connected(); protected: - // handling of current key + /* handling of current key */ virtual void keyPressEvent(QKeyEvent* ); virtual void keyReleaseEvent(QKeyEvent* ); @@ -28,6 +29,7 @@ private slots: void startGame(); void playerScoreClicked(); void tick(); + void sendKeyUpdate(); private: void createGui(); -- cgit v1.2.3