summaryrefslogtreecommitdiffstats
path: root/pacman-c++/actor.cpp
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++/actor.cpp
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++/actor.cpp')
-rw-r--r--pacman-c++/actor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp
index 5f668fc..2df238b 100644
--- a/pacman-c++/actor.cpp
+++ b/pacman-c++/actor.cpp
@@ -15,14 +15,14 @@ static QVariant myBooleanInterpolator(const bool &start, const bool &end, qreal
15 return (progress == 1.0) ? end : start; 15 return (progress == 1.0) ? end : start;
16} 16}
17 17
18Actor::Actor(Type type, QGraphicsItem *parent) 18Actor::Actor(Color color, QGraphicsItem *parent)
19 : PixmapItem(parent), m_type(type), m_direction(Actor::None) 19 : PixmapItem(parent), m_color(color), m_direction(Actor::None)
20{ 20{
21 m_pix = ":/" + QString("actor%1").arg(m_type); 21 m_pix = ":/" + QString("actor%1").arg(m_color);
22 // DON'T set any pixmap here. we've a pixmap in the animation 22 // DON'T set any pixmap here. we've a pixmap in the animation
23 //setPixmap(m_pix); 23 //setPixmap(m_pix);
24 // higher player "over" lower player 24 // higher player "over" lower player
25 setZValue(m_type * 10); 25 setZValue(m_color * 10);
26 26
27 m_direction = Actor::Left; 27 m_direction = Actor::Left;
28 28