summaryrefslogtreecommitdiffstats
path: root/pacman-c++/point.cpp
blob: 8837bba75d1dd993413e325da97b3bcbde8e1dab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "point.h"
#include "constants.h"

namespace
{
  QPixmap *pixmap = NULL;
}

Point::Point(QGraphicsItem *parent)
  : PixmapItem(parent)
{
  if (pixmap == NULL)
    pixmap = new QPixmap(":/points");
  setPixmap(*pixmap);

  //setSprite(rand * 20 + Constants::sprite_margin, Constants::sprite_margin, Constants::field_size.width, Constants::field_size.height);
}