#include "point.h" #include "constants.h" #include "actor.h" namespace { QPixmap *pixmap = NULL; } Point::Point(QGraphicsItem *parent) : PixmapItem(parent) { if (pixmap == NULL) pixmap = new QPixmap(":/points"); setPixmap(*pixmap); } bool Point::enter(Actor *actor) { actor->addRoundPoints(Constants::Game::point_value); m_eaten = true; return false; } void Point::onDie(Actor *actor) { //TODO }