diff options
Diffstat (limited to 'pacman-c++/point.cpp')
| -rw-r--r-- | pacman-c++/point.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pacman-c++/point.cpp b/pacman-c++/point.cpp new file mode 100644 index 0000000..8837bba --- /dev/null +++ b/pacman-c++/point.cpp | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #include "point.h" | ||
| 2 | #include "constants.h" | ||
| 3 | |||
| 4 | namespace | ||
| 5 | { | ||
| 6 | QPixmap *pixmap = NULL; | ||
| 7 | } | ||
| 8 | |||
| 9 | Point::Point(QGraphicsItem *parent) | ||
| 10 | : PixmapItem(parent) | ||
| 11 | { | ||
| 12 | if (pixmap == NULL) | ||
| 13 | pixmap = new QPixmap(":/points"); | ||
| 14 | setPixmap(*pixmap); | ||
| 15 | |||
| 16 | //setSprite(rand * 20 + Constants::sprite_margin, Constants::sprite_margin, Constants::field_size.width, Constants::field_size.height); | ||
| 17 | } | ||
