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.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'pacman-c++/actor.h') diff --git a/pacman-c++/actor.h b/pacman-c++/actor.h index 78b7c01..19d672b 100644 --- a/pacman-c++/actor.h +++ b/pacman-c++/actor.h @@ -23,7 +23,8 @@ public: }; Actor(Color::Color color, bool local = false, QGraphicsItem *parent = 0); - virtual ~Actor() {}; + virtual ~Actor() + {}; QSequentialAnimationGroup *setupEatingAnimation(Actor::Movement direction); Color::Color getColor(); @@ -34,11 +35,10 @@ 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; } + unsigned int getRoundPoints(); + unsigned int getGamePoints(); + void addRoundPoints(unsigned int amount); + void finishRound(); private: QPixmap m_pix; @@ -48,7 +48,8 @@ private: bool m_local; AudioPlayer *m_player; - unsigned int m_roundPoints, m_gamePoints; + unsigned int m_roundPoints; + unsigned int m_gamePoints; QList m_images; QList m_eating; -- cgit v1.2.3