From 0693d00da48d795c7ccb658e8b69fe17f4427337 Mon Sep 17 00:00:00 2001 From: totycro Date: Mon, 4 Apr 2011 19:20:32 +0200 Subject: Cache QPixmaps for Blocks --- pacman-c++/block.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pacman-c++/block.h') 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 @@ #ifndef BLOCK_H #define BLOCK_H +#include + #include "pixmapitem.h" #include "actor.h" + class Block : public PixmapItem { public: Block(Actor::Type type); + private: + // map for saving QPixmaps for reuse + std::map m_pixmaps; + }; #endif // BLOCK_H -- cgit v1.2.3