summaryrefslogtreecommitdiffstats
path: root/pacman-c++/block.h
diff options
context:
space:
mode:
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