summaryrefslogtreecommitdiffstats
path: root/pacman-c++/block.h
diff options
context:
space:
mode:
authortotycro <totycro@unknown-horizons.org>2011-04-04 22:02:31 +0200
committertotycro <totycro@unknown-horizons.org>2011-04-04 22:02:31 +0200
commiteef1d8ea60e3797ba261ebfe61a7d1e165069ed4 (patch)
treec10e397f58af5dafd0d450bb104fb3122bb611e2 /pacman-c++/block.h
parent47ae4a32e6e81dabbd2784a4b3c9c4ad68076a50 (diff)
downloadfoop-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++/block.h')
-rw-r--r--pacman-c++/block.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/pacman-c++/block.h b/pacman-c++/block.h
index 1e76aa9..f19b590 100644
--- a/pacman-c++/block.h
+++ b/pacman-c++/block.h
@@ -1,20 +1,22 @@
1#ifndef BLOCK_H 1#ifndef BLOCK_H
2#define BLOCK_H 2#define BLOCK_H
3 3
4#include <map>
5 4
6#include "pixmapitem.h" 5#include "pixmapitem.h"
7#include "actor.h" 6
7#include <map>
8
9#include "constants.h"
8 10
9 11
10class Block 12class Block
11 : public PixmapItem { 13 : public PixmapItem {
12public: 14public:
13 Block(Actor::Type type); 15 Block(Color color);
14 16
15 private: 17 private:
16 // map for saving QPixmaps for reuse 18 // map for saving QPixmaps for reuse
17 std::map<Actor::Type, QPixmap> m_pixmaps; 19 static std::map<Color, QPixmap> m_pixmaps;
18 20
19}; 21};
20 22