diff options
Diffstat (limited to 'pacman-c++/actor.h')
| -rw-r--r-- | pacman-c++/actor.h | 8 |
1 files changed, 8 insertions, 0 deletions
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: | |||
| 33 | void die(); | 33 | void die(); |
| 34 | void eatingCherry(); | 34 | void eatingCherry(); |
| 35 | 35 | ||
| 36 | unsigned int getRoundPoints() { return m_roundPoints; } | ||
| 37 | unsigned int getGamePoints() { return m_gamePoints; } | ||
| 38 | |||
| 39 | void addRoundPoints(unsigned int amount) { m_roundPoints += amount; } | ||
| 40 | void finishRound() { m_gamePoints += m_roundPoints; m_roundPoints = 0; } | ||
| 41 | |||
| 36 | private slots: | 42 | private slots: |
| 37 | void enqueue(); | 43 | void enqueue(); |
| 38 | 44 | ||
| @@ -43,6 +49,8 @@ private: | |||
| 43 | PixmapItem m_icon; | 49 | PixmapItem m_icon; |
| 44 | bool m_local; | 50 | bool m_local; |
| 45 | 51 | ||
| 52 | unsigned int m_roundPoints, m_gamePoints; | ||
| 53 | |||
| 46 | QList<PixmapItem *> m_images; | 54 | QList<PixmapItem *> m_images; |
| 47 | QList<QSequentialAnimationGroup *> m_eating; | 55 | QList<QSequentialAnimationGroup *> m_eating; |
| 48 | QParallelAnimationGroup *m_moving; | 56 | QParallelAnimationGroup *m_moving; |
