diff options
| author | manuel <manuel@mausz.at> | 2011-04-05 12:58:06 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-05 12:58:06 +0200 |
| commit | 7a56db7a6e9a21c1e2782f27b2f04ccc387d4efe (patch) | |
| tree | dbd61885fa9bcdf547c450088813beb0b15f5a45 /pacman-c++/actor.h | |
| parent | bfaf2e63e64169abbb1a4c079a937091060574b7 (diff) | |
| download | foop-7a56db7a6e9a21c1e2782f27b2f04ccc387d4efe.tar.gz foop-7a56db7a6e9a21c1e2782f27b2f04ccc387d4efe.tar.bz2 foop-7a56db7a6e9a21c1e2782f27b2f04ccc387d4efe.zip | |
add icon method for actor
Diffstat (limited to 'pacman-c++/actor.h')
| -rw-r--r-- | pacman-c++/actor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pacman-c++/actor.h b/pacman-c++/actor.h index 5bec353..5e9ed72 100644 --- a/pacman-c++/actor.h +++ b/pacman-c++/actor.h | |||
| @@ -17,11 +17,13 @@ public: | |||
| 17 | }; | 17 | }; |
| 18 | 18 | ||
| 19 | Actor(Color color, QGraphicsItem *parent = 0); | 19 | Actor(Color color, QGraphicsItem *parent = 0); |
| 20 | PixmapItem &getIcon(); | ||
| 20 | 21 | ||
| 21 | private: | 22 | private: |
| 22 | QPixmap m_pix; | 23 | QPixmap m_pix; |
| 23 | Color m_color; | 24 | Color m_color; |
| 24 | Movement m_direction; | 25 | Movement m_direction; |
| 26 | PixmapItem m_icon; | ||
| 25 | }; | 27 | }; |
| 26 | 28 | ||
| 27 | #endif // ACTOR_H | 29 | #endif // ACTOR_H |
