diff options
| author | manuel <manuel@mausz.at> | 2011-04-17 21:50:32 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-17 21:50:32 +0200 |
| commit | f5c00e32e6f32ca1216c72281b547faf372f0179 (patch) | |
| tree | bcaf8caacd662b4891591c0b04cf39d0d6a66c21 /pacman-c++/actor.h | |
| parent | becd390b551f4ee705aa14a97c90eaa8596c824c (diff) | |
| download | foop-f5c00e32e6f32ca1216c72281b547faf372f0179.tar.gz foop-f5c00e32e6f32ca1216c72281b547faf372f0179.tar.bz2 foop-f5c00e32e6f32ca1216c72281b547faf372f0179.zip | |
funny ai implementation
Diffstat (limited to 'pacman-c++/actor.h')
| -rw-r--r-- | pacman-c++/actor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pacman-c++/actor.h b/pacman-c++/actor.h index 0738593..902951b 100644 --- a/pacman-c++/actor.h +++ b/pacman-c++/actor.h | |||
| @@ -32,7 +32,6 @@ public: | |||
| 32 | virtual ~Actor() | 32 | virtual ~Actor() |
| 33 | {}; | 33 | {}; |
| 34 | 34 | ||
| 35 | QSequentialAnimationGroup *setupEatingAnimation(Actor::Movement direction); | ||
| 36 | PixmapItem &icon(); | 35 | PixmapItem &icon(); |
| 37 | Movement direction(); | 36 | Movement direction(); |
| 38 | bool isLocal(); | 37 | bool isLocal(); |
| @@ -49,8 +48,11 @@ public: | |||
| 49 | void addRoundPoints(unsigned int amount); | 48 | void addRoundPoints(unsigned int amount); |
| 50 | void finishRound(); | 49 | void finishRound(); |
| 51 | 50 | ||
| 51 | static QPoint movementToPoint(const Actor::Movement direction); | ||
| 52 | |||
| 52 | private: | 53 | private: |
| 53 | void moveByServer(Movement direction); | 54 | void moveByServer(Movement direction); |
| 55 | QSequentialAnimationGroup *setupEatingAnimation(Actor::Movement direction); | ||
| 54 | 56 | ||
| 55 | private: | 57 | private: |
| 56 | QPixmap m_pix; | 58 | QPixmap m_pix; |
