From ce48af53646cd9e7ec762fc1ac176b3aa620b11d Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 5 May 2011 00:57:07 +0200 Subject: - refactorized the whole project and made a few subprojects - replaced tcp with enet - added connect dialog - some smaller bugfixes --- pacman-c++/point.cpp | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 pacman-c++/point.cpp (limited to 'pacman-c++/point.cpp') 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 @@ -#include "point.h" -#include "constants.h" -#include "actor.h" - -namespace -{ - QPixmap *pixmap = NULL; -} - -Point::Point(QGraphicsItem *parent) - : GameEntity(parent) -{ - m_type = Type; - - /* empty object for servers */ - if (Constants::server) - return; - - if (pixmap == NULL) - pixmap = new QPixmap(":/points"); - setPixmap(*pixmap); -} - -GameEntity::EnteredState Point::enter(Actor *actor) -{ - actor->addRoundPoints(Constants::Game::point_value); - return DestroyedEntity; -} - -void Point::onDie(Actor *actor) -{ - actor->startEating(); -} -- cgit v1.2.3