From b695f67ef718724144a3a5c4be42be373b0f691f Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 11 Apr 2011 17:30:47 +0200 Subject: implement pointsleft counter --- pacman-c++/sceneholder.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'pacman-c++/sceneholder.h') diff --git a/pacman-c++/sceneholder.h b/pacman-c++/sceneholder.h index 1ca991e..ccb2a42 100644 --- a/pacman-c++/sceneholder.h +++ b/pacman-c++/sceneholder.h @@ -17,25 +17,32 @@ public: SceneHolder(QWidget* parent = 0); virtual ~SceneHolder() {}; + unsigned int pointsLeft(); + +private slots: + void decrementPoints(); protected: virtual void updateMap(const Transmission::map_t& map); - // data conversion + /* data conversion */ QPoint mapPositionToCoord(unsigned int x, unsigned int y); QPoint mapPositionToCoord(QPoint point); QPoint CoordToMapPosition(unsigned int x, unsigned int y); QPoint CoordToMapPosition(QPoint point); - // map of all pixmap instances + /* map of all pixmap instances */ QVector< QVector > visualMap; - // map of actors in order to keep track of those instances + /* map of actors in order to keep track of those instances */ QMap m_actors; - /* my color */ + /* my local color */ Color::Color m_color; + /* points left before round ends */ + unsigned int m_pointsLeft; + QGraphicsScene *m_scene; }; -- cgit v1.2.3