diff options
author | Robert Špalek | 2009-11-05 14:22:39 +0000 |
---|---|---|
committer | Robert Špalek | 2009-11-05 14:22:39 +0000 |
commit | f8a19bb4a9be128de321522b92037774e1625b69 (patch) | |
tree | 3e43354c1505bdd2690731a375da6a793236865b /engines/draci/game.h | |
parent | 455f27f0561a5ef723b74f44bb9e26bcda1d9cdb (diff) | |
download | scummvm-rg350-f8a19bb4a9be128de321522b92037774e1625b69.tar.gz scummvm-rg350-f8a19bb4a9be128de321522b92037774e1625b69.tar.bz2 scummvm-rg350-f8a19bb4a9be128de321522b92037774e1625b69.zip |
Implemented proper walking.
First shot, not debugged yet, but seems to work (even though a bit hairy)!
svn-id: r45688
Diffstat (limited to 'engines/draci/game.h')
-rw-r--r-- | engines/draci/game.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/draci/game.h b/engines/draci/game.h index bb4d97e6af..f57b917e91 100644 --- a/engines/draci/game.h +++ b/engines/draci/game.h @@ -207,9 +207,11 @@ public: } Common::Point findNearestWalkable(int x, int y) const; + void heroAnimationFinished() { _walkingState.heroAnimationFinished(); } void stopWalking() { _walkingState.stopWalking(); } // and clear callback void positionHero(const Common::Point &p, SightDirection dir); // teleport the dragon void walkHero(int x, int y, SightDirection dir); // start walking and leave callback as is + void setHeroPosition(const Common::Point &p); int getHeroX() const { return _hero.x; } int getHeroY() const { return _hero.y; } void positionAnimAsHero(Animation *anim); |