summaryrefslogtreecommitdiffstats
path: root/pacman-c++/point.cpp
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-05-05 00:57:07 +0200
committermanuel <manuel@mausz.at>2011-05-05 00:57:07 +0200
commitce48af53646cd9e7ec762fc1ac176b3aa620b11d (patch)
treef8fbf2cae8c7d0cbac2696a8f4cf94410bfb4928 /pacman-c++/point.cpp
parente54ccad07e256ba877bd41d70bd358bd0085bd1e (diff)
downloadfoop-ce48af53646cd9e7ec762fc1ac176b3aa620b11d.tar.gz
foop-ce48af53646cd9e7ec762fc1ac176b3aa620b11d.tar.bz2
foop-ce48af53646cd9e7ec762fc1ac176b3aa620b11d.zip
- refactorized the whole project and made a few subprojects
- replaced tcp with enet - added connect dialog - some smaller bugfixes
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}