From eef1d8ea60e3797ba261ebfe61a7d1e165069ed4 Mon Sep 17 00:00:00 2001 From: totycro Date: Mon, 4 Apr 2011 22:02:31 +0200 Subject: Use only 1 color format for everything Simple map parsing for Blocks and Bonus points --- pacman-c++/bonuspoint.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pacman-c++/bonuspoint.cpp (limited to 'pacman-c++/bonuspoint.cpp') diff --git a/pacman-c++/bonuspoint.cpp b/pacman-c++/bonuspoint.cpp new file mode 100644 index 0000000..67c8250 --- /dev/null +++ b/pacman-c++/bonuspoint.cpp @@ -0,0 +1,13 @@ +#include "bonuspoint.h" + +namespace { + QPixmap *pixmap = 0; +} + +BonusPoint::BonusPoint() +{ + if (pixmap == 0) { + pixmap = new QPixmap(":/cherry"); + } + setPixmap(*pixmap); +} -- cgit v1.2.3