aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/people.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-17 20:45:37 -0400
committerPaul Gilbert2015-06-17 20:45:37 -0400
commit8abce6b025b1b4d8f50605875967f234b4b58312 (patch)
tree2ae99c3ae04e05fb96433ebdf8a4618a65d4d1ae /engines/sherlock/people.cpp
parenta96aad55592101810f71dd8813767ddbe2e76ece (diff)
downloadscummvm-rg350-8abce6b025b1b4d8f50605875967f234b4b58312.tar.gz
scummvm-rg350-8abce6b025b1b4d8f50605875967f234b4b58312.tar.bz2
scummvm-rg350-8abce6b025b1b4d8f50605875967f234b4b58312.zip
SHERLOCK: RT: Implement walkToCoords
Diffstat (limited to 'engines/sherlock/people.cpp')
-rw-r--r--engines/sherlock/people.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/engines/sherlock/people.cpp b/engines/sherlock/people.cpp
index b3ae135b40..cab4abff89 100644
--- a/engines/sherlock/people.cpp
+++ b/engines/sherlock/people.cpp
@@ -152,39 +152,6 @@ void Person::goAllTheWay() {
}
}
-void Person::walkToCoords(const Point32 &destPos, int destDir) {
- Events &events = *_vm->_events;
- People &people = *_vm->_people;
- Scene &scene = *_vm->_scene;
- Talk &talk = *_vm->_talk;
-
- CursorId oldCursor = events.getCursor();
- events.setCursor(WAIT);
-
- _walkDest = Common::Point(destPos.x / FIXED_INT_MULTIPLIER + 10, destPos.y / FIXED_INT_MULTIPLIER);
- people._allowWalkAbort = true;
- goAllTheWay();
-
- // Keep calling doBgAnim until the walk is done
- do {
- events.pollEventsAndWait();
- scene.doBgAnim();
- } while (!_vm->shouldQuit() && _walkCount);
-
- if (!talk._talkToAbort) {
- // Put character exactly on destination position, and set direction
- _position = destPos;
- _sequenceNumber = destDir;
- gotoStand();
-
- // Draw Holmes facing the new direction
- scene.doBgAnim();
-
- if (!talk._talkToAbort)
- events.setCursor(oldCursor);
- }
-}
-
/*----------------------------------------------------------------*/
People *People::init(SherlockEngine *vm) {