From ea2880702a7df079f5e8eee0280584f186c2de73 Mon Sep 17 00:00:00 2001 From: totycro Date: Mon, 11 Apr 2011 13:03:40 +0200 Subject: Added code to play the cherry sound, but doesn't work here --- pacman-c++/bonuspoint.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pacman-c++/bonuspoint.cpp') diff --git a/pacman-c++/bonuspoint.cpp b/pacman-c++/bonuspoint.cpp index 2b5500b..a705c09 100644 --- a/pacman-c++/bonuspoint.cpp +++ b/pacman-c++/bonuspoint.cpp @@ -26,3 +26,10 @@ bool BonusPoint::enter(Actor* actor) m_eaten = true; return false; } + +void BonusPoint::onDie(Actor *actor) +{ + qDebug() << "here comes the cherry.. "; + actor->eatingCherry(); +} + -- cgit v1.2.3