From ca29fc0babe8fc985a9e4656f80fc7faec4ac8a5 Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 11 May 2011 17:38:29 +0200 Subject: - fix audio plugin and make that a real interface - that fixes a duplicate statis audiomanager (1x pacman, 1x audio plugin) on windows - display won/lost dialog upon gameend --- pacman-c++/client/mainwidget.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pacman-c++/client/mainwidget.h') diff --git a/pacman-c++/client/mainwidget.h b/pacman-c++/client/mainwidget.h index 99ff7d7..cfc6cf8 100644 --- a/pacman-c++/client/mainwidget.h +++ b/pacman-c++/client/mainwidget.h @@ -28,6 +28,8 @@ public: public slots: void doConnect(QString srv = "127.0.0.1", unsigned int port = Constants::Networking::port); void doDisconnect(); + void onDisconnect(); + void deleteGUI(); protected: /* handling of current key */ @@ -41,14 +43,15 @@ private slots: void startGame(); void stopGame(); void playerScoreClicked(); - void tick(); - void tick(ENetEvent *event); + void readServerUpdates(); + void processServerUpdates(ENetEvent *event); void sendKeyUpdate(); private: void createGui(); void createMenu(); void updateScore(const ProtoBuf::MapUpdate&); + bool didIWinLoose(); bool isRunning(); Color::Color connectToServer(QString srv = "127.0.0.1", unsigned int port = Constants::Networking::port); void closeENetPeer(); -- cgit v1.2.3