From 817dcc4e4493fb89c6d52b5e5ce1548b6a047d08 Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 10 Apr 2011 21:34:29 +0200 Subject: - first round of coding cleanup - small sound fix --- pacman-c++/actor.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'pacman-c++/actor.cpp') 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() return; AudioManager::self()->play(Sound::EatingCherry); } + +unsigned int Actor::getRoundPoints() +{ + return m_roundPoints; +} + +unsigned int Actor::getGamePoints() +{ + return m_gamePoints; +} + +void Actor::addRoundPoints(unsigned int amount) +{ + m_roundPoints += amount; +} + +void Actor::finishRound() +{ + m_gamePoints += m_roundPoints; + m_roundPoints = 0; +} + -- cgit v1.2.3