summaryrefslogtreecommitdiffstats
path: root/pacman-c++/point.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/point.cpp')
-rw-r--r--pacman-c++/point.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/pacman-c++/point.cpp b/pacman-c++/point.cpp
deleted file mode 100644
index d7ebdb1..0000000
--- a/pacman-c++/point.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
1#include "point.h"
2#include "constants.h"
3#include "actor.h"
4
5namespace
6{
7 QPixmap *pixmap = NULL;
8}
9
10Point::Point(QGraphicsItem *parent)
11 : GameEntity(parent)
12{
13 m_type = Type;
14
15 /* empty object for servers */
16 if (Constants::server)
17 return;
18
19 if (pixmap == NULL)
20 pixmap = new QPixmap(":/points");
21 setPixmap(*pixmap);
22}
23
24GameEntity::EnteredState Point::enter(Actor *actor)
25{
26 actor->addRoundPoints(Constants::Game::point_value);
27 return DestroyedEntity;
28}
29
30void Point::onDie(Actor *actor)
31{
32 actor->startEating();
33}