summaryrefslogtreecommitdiffstats
path: root/pacman-c++/point.cpp
diff options
context:
space:
mode:
authortotycro <totycro@unknown-horizons.org>2011-04-11 12:09:04 +0200
committertotycro <totycro@unknown-horizons.org>2011-04-11 12:09:04 +0200
commit98f4a31e1a359a69dbcc0fa4055f36cefb6d4e02 (patch)
treeddd164d3339a067116f02f88314e2f57457bb1df /pacman-c++/point.cpp
parent30c36b7549f8ae411f8eca4de144627331895a24 (diff)
downloadfoop-98f4a31e1a359a69dbcc0fa4055f36cefb6d4e02.tar.gz
foop-98f4a31e1a359a69dbcc0fa4055f36cefb6d4e02.tar.bz2
foop-98f4a31e1a359a69dbcc0fa4055f36cefb6d4e02.zip
Added basic game logic
Diffstat (limited to 'pacman-c++/point.cpp')
-rw-r--r--pacman-c++/point.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/pacman-c++/point.cpp b/pacman-c++/point.cpp
index 8837bba..67a7e5f 100644
--- a/pacman-c++/point.cpp
+++ b/pacman-c++/point.cpp
@@ -1,5 +1,6 @@
1#include "point.h" 1#include "point.h"
2#include "constants.h" 2#include "constants.h"
3#include "actor.h"
3 4
4namespace 5namespace
5{ 6{
@@ -15,3 +16,8 @@ Point::Point(QGraphicsItem *parent)
15 16
16 //setSprite(rand * 20 + Constants::sprite_margin, Constants::sprite_margin, Constants::field_size.width, Constants::field_size.height); 17 //setSprite(rand * 20 + Constants::sprite_margin, Constants::sprite_margin, Constants::field_size.width, Constants::field_size.height);
17} 18}
19
20void Point::enter(Actor* actor)
21{
22 actor->addRoundPoints(Constants::Game::point_value);
23}