From 11a1b82636ab75cb9d002712a3e0f353ad6b2579 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 7 Apr 2011 04:02:55 +0200 Subject: add some sounds --- pacman-c++/mainwidget.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'pacman-c++/mainwidget.h') diff --git a/pacman-c++/mainwidget.h b/pacman-c++/mainwidget.h index b15427c..6adcba2 100644 --- a/pacman-c++/mainwidget.h +++ b/pacman-c++/mainwidget.h @@ -1,11 +1,10 @@ #ifndef MAINWIDGET_H #define MAINWIDGET_H -#include -#include - #include "constants.h" #include "pixmapitem.h" +#include +#include class Actor; @@ -24,12 +23,15 @@ protected: private: void createGui(); - void updateMap(const Transmission::map_t& map); - void updateScore(); + bool isRunning(); - QVector< QVector< PixmapItem* > > visualMap; +private slots: + void startGame(); + +private: + QVector< QVector > visualMap; // data conversion QPoint mapPositionToCoord(unsigned int x, unsigned int y); @@ -46,6 +48,9 @@ private: // translate Qt::Key to our key format Transmission::field_t translateKey(int); + + // game running + bool m_running; }; #endif // MAINWIDGET_H -- cgit v1.2.3