diff options
Diffstat (limited to 'pacman-c++/actor.cpp')
| -rw-r--r-- | pacman-c++/actor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp new file mode 100644 index 0000000..860f490 --- /dev/null +++ b/pacman-c++/actor.cpp | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | #include "actor.h" | ||
| 2 | |||
| 3 | Actor::Actor(Type type) | ||
| 4 | : PixmapItem("google-pacman-sprite"), m_type(type), m_direction(Actor::None) | ||
| 5 | { | ||
| 6 | setSprite(2, 2, 16, 16); | ||
| 7 | } | ||
