diff options
| author | totycro <totycro@unknown-horizons.org> | 2011-04-10 01:31:55 +0200 |
|---|---|---|
| committer | totycro <totycro@unknown-horizons.org> | 2011-04-10 01:31:55 +0200 |
| commit | 0f111967d746b5d9d74f62ad5f1415ab156ff449 (patch) | |
| tree | 52b591bdb5d81c70cf49445dd71b26417544949c /pacman-c++/actor.h | |
| parent | 18ca65a550c25ed69dcf8b75e7b8862458e11025 (diff) | |
| download | foop-0f111967d746b5d9d74f62ad5f1415ab156ff449.tar.gz foop-0f111967d746b5d9d74f62ad5f1415ab156ff449.tar.bz2 foop-0f111967d746b5d9d74f62ad5f1415ab156ff449.zip | |
transmit game score
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; |
