diff options
| author | manuel <manuel@mausz.at> | 2011-05-11 17:38:29 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-05-11 17:38:29 +0200 |
| commit | ca29fc0babe8fc985a9e4656f80fc7faec4ac8a5 (patch) | |
| tree | fb48f74ffcddcd8b260ebf78062623427aeda862 /pacman-c++/client/mainwidget.h | |
| parent | 535c342a2f28e0a1e90010b2f0ff4018eeeb200a (diff) | |
| download | foop-ca29fc0babe8fc985a9e4656f80fc7faec4ac8a5.tar.gz foop-ca29fc0babe8fc985a9e4656f80fc7faec4ac8a5.tar.bz2 foop-ca29fc0babe8fc985a9e4656f80fc7faec4ac8a5.zip | |
- 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
Diffstat (limited to 'pacman-c++/client/mainwidget.h')
| -rw-r--r-- | pacman-c++/client/mainwidget.h | 7 |
1 files changed, 5 insertions, 2 deletions
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: | |||
| 28 | public slots: | 28 | public slots: |
| 29 | void doConnect(QString srv = "127.0.0.1", unsigned int port = Constants::Networking::port); | 29 | void doConnect(QString srv = "127.0.0.1", unsigned int port = Constants::Networking::port); |
| 30 | void doDisconnect(); | 30 | void doDisconnect(); |
| 31 | void onDisconnect(); | ||
| 32 | void deleteGUI(); | ||
| 31 | 33 | ||
| 32 | protected: | 34 | protected: |
| 33 | /* handling of current key */ | 35 | /* handling of current key */ |
| @@ -41,14 +43,15 @@ private slots: | |||
| 41 | void startGame(); | 43 | void startGame(); |
| 42 | void stopGame(); | 44 | void stopGame(); |
| 43 | void playerScoreClicked(); | 45 | void playerScoreClicked(); |
| 44 | void tick(); | 46 | void readServerUpdates(); |
| 45 | void tick(ENetEvent *event); | 47 | void processServerUpdates(ENetEvent *event); |
| 46 | void sendKeyUpdate(); | 48 | void sendKeyUpdate(); |
| 47 | 49 | ||
| 48 | private: | 50 | private: |
| 49 | void createGui(); | 51 | void createGui(); |
| 50 | void createMenu(); | 52 | void createMenu(); |
| 51 | void updateScore(const ProtoBuf::MapUpdate&); | 53 | void updateScore(const ProtoBuf::MapUpdate&); |
| 54 | bool didIWinLoose(); | ||
| 52 | bool isRunning(); | 55 | bool isRunning(); |
| 53 | Color::Color connectToServer(QString srv = "127.0.0.1", unsigned int port = Constants::Networking::port); | 56 | Color::Color connectToServer(QString srv = "127.0.0.1", unsigned int port = Constants::Networking::port); |
| 54 | void closeENetPeer(); | 57 | void closeENetPeer(); |
