summaryrefslogtreecommitdiffstats
path: root/pacman-c++/mainwidget.h
diff options
context:
space:
mode:
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