From 0f111967d746b5d9d74f62ad5f1415ab156ff449 Mon Sep 17 00:00:00 2001 From: totycro Date: Sun, 10 Apr 2011 01:31:55 +0200 Subject: transmit game score --- pacman-c++/mainwidget.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'pacman-c++/mainwidget.h') 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 @@ #include "sceneholder.h" #include "constants.h" #include "pixmapitem.h" +#include "pacman.pb.h" #include #include #include @@ -23,21 +24,18 @@ protected: virtual void keyPressEvent(QKeyEvent* ); virtual void keyReleaseEvent(QKeyEvent* ); - virtual void updateMap(const Transmission::map_t& map); +private slots: + void startGame(); + void playerScoreClicked(); + void tick(); private: void createGui(); void createMenu(); - void updateScore(); + void updateScore(const ProtoBuf::MapUpdate&); bool isRunning(); Color::Color connectToServer(); -private slots: - void startGame(); - void playerScoreClicked(); - void tick(); - -private: // GUI elements needed in the progress of the game QList m_playerScoreLayouts; -- cgit v1.2.3