From 638305fcbb9a1c53425b546a0deb2ea6c3208f5a Mon Sep 17 00:00:00 2001 From: Robert Špalek Date: Sat, 7 Nov 2009 01:54:47 +0000 Subject: The hero turns the right direction after walking svn-id: r45713 --- engines/draci/walking.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'engines/draci/walking.h') diff --git a/engines/draci/walking.h b/engines/draci/walking.h index 180c3cf855..6c8d9b9b07 100644 --- a/engines/draci/walking.h +++ b/engines/draci/walking.h @@ -128,8 +128,11 @@ public: // scheduled animation. void heroAnimationFinished(); - // Returns the hero's animation corresponding to looking into given direction. - Movement animationForSightDirection(SightDirection dir) const; + // Returns the hero's animation corresponding to looking into given + // direction. The direction can be smart and in that case this + // function needs to know the whole last path, the current position of + // the hero, or the mouse position. + Movement animationForSightDirection(SightDirection dir, const Common::Point &hero, const Common::Point &mouse, const WalkingPath &path) const; private: DraciEngine *_vm; -- cgit v1.2.3