From bfaf2e63e64169abbb1a4c079a937091060574b7 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 5 Apr 2011 12:26:04 +0200 Subject: forgot some commits.. replace std::map with QMap --- pacman-c++/actor.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'pacman-c++/actor.cpp') diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp index 2df238b..d900e57 100644 --- a/pacman-c++/actor.cpp +++ b/pacman-c++/actor.cpp @@ -6,10 +6,6 @@ #include #include -#define SPRITE_MARGIN 2 -#define SPRITE_PLAYER_WIDTH 16 -#define SPRITE_PLAYER_HEIGHT 16 - static QVariant myBooleanInterpolator(const bool &start, const bool &end, qreal progress) { return (progress == 1.0) ? end : start; @@ -37,7 +33,7 @@ Actor::Actor(Color color, QGraphicsItem *parent) PixmapItem *img = new PixmapItem(m_pix, this); int x = i * 20 + SPRITE_MARGIN; int y = m_direction * 20 + SPRITE_MARGIN; - img->setSprite(x, y, SPRITE_PLAYER_WIDTH, SPRITE_PLAYER_HEIGHT); + img->setSprite(x, y, SPRITE_WIDTH, SPRITE_HEIGHT); img->setZValue(zValue()); img->setVisible(false); img->setPos(QPointF(200, 0)); -- cgit v1.2.3