From 5eec5f6b17d7e403408699d9eaf71a1956574cd9 Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Wed, 23 Jul 2008 01:07:39 +0000 Subject: More merging of input code. svn-id: r33219 --- engines/parallaction/input.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'engines/parallaction/input.h') diff --git a/engines/parallaction/input.h b/engines/parallaction/input.h index 2a97077603..19825c8baa 100644 --- a/engines/parallaction/input.h +++ b/engines/parallaction/input.h @@ -52,14 +52,17 @@ class Input { // input-only InputData _inputData; - bool _actionAfterWalk; // actived when the character needs to move before taking an action - // these two could/should be merged as they carry on the same duty in two member functions, - // respectively processInput and translateInput + + bool _hasDelayedAction; // actived when the character needs to move before taking an action + ZonePtr _delayedActionZone; + int16 _transCurrentHoverItem; InputData *translateInput(); bool translateGameInput(); bool translateInventoryInput(); + void takeAction(ZonePtr z); + void walkTo(const Common::Point &dest); Parallaction *_vm; @@ -83,11 +86,12 @@ public: Input(Parallaction *vm) : _vm(vm) { _transCurrentHoverItem = 0; - _actionAfterWalk = false; // actived when the character needs to move before taking an action + _hasDelayedAction = false; // actived when the character needs to move before taking an action _mouseHidden = false; _activeItem._index = 0; _activeItem._id = 0; _mouseButtons = 0; + _delayedActionZone = nullZonePtr; } virtual ~Input() { } -- cgit v1.2.3