summaryrefslogtreecommitdiffstats
path: root/pacman-c++/block.h
diff options
context:
space:
mode:
authortotycro <totycro@unknown-horizons.org>2011-04-04 19:20:32 +0200
committertotycro <totycro@unknown-horizons.org>2011-04-04 19:20:32 +0200
commit0693d00da48d795c7ccb658e8b69fe17f4427337 (patch)
treec750928f839ebf242fe9fdfefec904c921889931 /pacman-c++/block.h
parentf3f2cc63376019aaf9e8dd807ab674f92908123c (diff)
downloadfoop-0693d00da48d795c7ccb658e8b69fe17f4427337.tar.gz
foop-0693d00da48d795c7ccb658e8b69fe17f4427337.tar.bz2
foop-0693d00da48d795c7ccb658e8b69fe17f4427337.zip
Cache QPixmaps for Blocks
Diffstat (limited to 'pacman-c++/block.h')
-rw-r--r--pacman-c++/block.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pacman-c++/block.h b/pacman-c++/block.h
index 25a331c..1e76aa9 100644
--- a/pacman-c++/block.h
+++ b/pacman-c++/block.h
@@ -1,14 +1,21 @@
1#ifndef BLOCK_H 1#ifndef BLOCK_H
2#define BLOCK_H 2#define BLOCK_H
3 3
4#include <map>
5
4#include "pixmapitem.h" 6#include "pixmapitem.h"
5#include "actor.h" 7#include "actor.h"
6 8
9
7class Block 10class Block
8 : public PixmapItem { 11 : public PixmapItem {
9public: 12public:
10 Block(Actor::Type type); 13 Block(Actor::Type type);
11 14
15 private:
16 // map for saving QPixmaps for reuse
17 std::map<Actor::Type, QPixmap> m_pixmaps;
18
12}; 19};
13 20
14#endif // BLOCK_H 21#endif // BLOCK_H