diff options
| author | totycro <totycro@unknown-horizons.org> | 2011-04-04 22:02:31 +0200 |
|---|---|---|
| committer | totycro <totycro@unknown-horizons.org> | 2011-04-04 22:02:31 +0200 |
| commit | eef1d8ea60e3797ba261ebfe61a7d1e165069ed4 (patch) | |
| tree | c10e397f58af5dafd0d450bb104fb3122bb611e2 /pacman-c++/bonuspoint.cpp | |
| parent | 47ae4a32e6e81dabbd2784a4b3c9c4ad68076a50 (diff) | |
| download | foop-eef1d8ea60e3797ba261ebfe61a7d1e165069ed4.tar.gz foop-eef1d8ea60e3797ba261ebfe61a7d1e165069ed4.tar.bz2 foop-eef1d8ea60e3797ba261ebfe61a7d1e165069ed4.zip | |
Use only 1 color format for everything
Simple map parsing for Blocks and Bonus points
Diffstat (limited to 'pacman-c++/bonuspoint.cpp')
| -rw-r--r-- | pacman-c++/bonuspoint.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ | |||
| 1 | #include "bonuspoint.h" | ||
| 2 | |||
| 3 | namespace { | ||
| 4 | QPixmap *pixmap = 0; | ||
| 5 | } | ||
| 6 | |||
| 7 | BonusPoint::BonusPoint() | ||
| 8 | { | ||
| 9 | if (pixmap == 0) { | ||
| 10 | pixmap = new QPixmap(":/cherry"); | ||
| 11 | } | ||
| 12 | setPixmap(*pixmap); | ||
| 13 | } | ||
