diff options
Diffstat (limited to 'pacman-c++/actor.cpp')
| -rw-r--r-- | pacman-c++/actor.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp index 8184c6f..e34d338 100644 --- a/pacman-c++/actor.cpp +++ b/pacman-c++/actor.cpp | |||
| @@ -202,3 +202,25 @@ void Actor::eatingCherry() | |||
| 202 | return; | 202 | return; |
| 203 | AudioManager::self()->play(Sound::EatingCherry); | 203 | AudioManager::self()->play(Sound::EatingCherry); |
| 204 | } | 204 | } |
| 205 | |||
| 206 | unsigned int Actor::getRoundPoints() | ||
| 207 | { | ||
| 208 | return m_roundPoints; | ||
| 209 | } | ||
| 210 | |||
| 211 | unsigned int Actor::getGamePoints() | ||
| 212 | { | ||
| 213 | return m_gamePoints; | ||
| 214 | } | ||
| 215 | |||
| 216 | void Actor::addRoundPoints(unsigned int amount) | ||
| 217 | { | ||
| 218 | m_roundPoints += amount; | ||
| 219 | } | ||
| 220 | |||
| 221 | void Actor::finishRound() | ||
| 222 | { | ||
| 223 | m_gamePoints += m_roundPoints; | ||
| 224 | m_roundPoints = 0; | ||
| 225 | } | ||
| 226 | |||
