summaryrefslogtreecommitdiffstats
path: root/pacman-c++/mainwidget.h
diff options
context:
space:
mode:
authortotycro <totycro@unknown-horizons.org>2011-04-10 01:31:55 +0200
committertotycro <totycro@unknown-horizons.org>2011-04-10 01:31:55 +0200
commit0f111967d746b5d9d74f62ad5f1415ab156ff449 (patch)
tree52b591bdb5d81c70cf49445dd71b26417544949c /pacman-c++/mainwidget.h
parent18ca65a550c25ed69dcf8b75e7b8862458e11025 (diff)
downloadfoop-0f111967d746b5d9d74f62ad5f1415ab156ff449.tar.gz
foop-0f111967d746b5d9d74f62ad5f1415ab156ff449.tar.bz2
foop-0f111967d746b5d9d74f62ad5f1415ab156ff449.zip
transmit game score
Diffstat (limited to 'pacman-c++/mainwidget.h')
-rw-r--r--pacman-c++/mainwidget.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/pacman-c++/mainwidget.h b/pacman-c++/mainwidget.h
index 266f329..bd83d5f 100644
--- a/pacman-c++/mainwidget.h
+++ b/pacman-c++/mainwidget.h
@@ -4,6 +4,7 @@
4#include "sceneholder.h" 4#include "sceneholder.h"
5#include "constants.h" 5#include "constants.h"
6#include "pixmapitem.h" 6#include "pixmapitem.h"
7#include "pacman.pb.h"
7#include <QtGui> 8#include <QtGui>
8#include <QtCore> 9#include <QtCore>
9#include <QTcpSocket> 10#include <QTcpSocket>
@@ -23,21 +24,18 @@ protected:
23 virtual void keyPressEvent(QKeyEvent* ); 24 virtual void keyPressEvent(QKeyEvent* );
24 virtual void keyReleaseEvent(QKeyEvent* ); 25 virtual void keyReleaseEvent(QKeyEvent* );
25 26
26 virtual void updateMap(const Transmission::map_t& map); 27private slots:
28 void startGame();
29 void playerScoreClicked();
30 void tick();
27 31
28private: 32private:
29 void createGui(); 33 void createGui();
30 void createMenu(); 34 void createMenu();
31 void updateScore(); 35 void updateScore(const ProtoBuf::MapUpdate&);
32 bool isRunning(); 36 bool isRunning();
33 Color::Color connectToServer(); 37 Color::Color connectToServer();
34 38
35private slots:
36 void startGame();
37 void playerScoreClicked();
38 void tick();
39
40private:
41 // GUI elements needed in the progress of the game 39 // GUI elements needed in the progress of the game
42 QList<QGridLayout*> m_playerScoreLayouts; 40 QList<QGridLayout*> m_playerScoreLayouts;
43 41