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++/actor.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pacman-c++/actor.h') diff --git a/pacman-c++/actor.h b/pacman-c++/actor.h index 77a5b34..965d240 100644 --- a/pacman-c++/actor.h +++ b/pacman-c++/actor.h @@ -33,6 +33,12 @@ public: void die(); void eatingCherry(); + unsigned int getRoundPoints() { return m_roundPoints; } + unsigned int getGamePoints() { return m_gamePoints; } + + void addRoundPoints(unsigned int amount) { m_roundPoints += amount; } + void finishRound() { m_gamePoints += m_roundPoints; m_roundPoints = 0; } + private slots: void enqueue(); @@ -43,6 +49,8 @@ private: PixmapItem m_icon; bool m_local; + unsigned int m_roundPoints, m_gamePoints; + QList m_images; QList m_eating; QParallelAnimationGroup *m_moving; -- cgit v1.2.3