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