diff options
author | Nicola Mettifogo | 2008-07-23 01:07:39 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-07-23 01:07:39 +0000 |
commit | 5eec5f6b17d7e403408699d9eaf71a1956574cd9 (patch) | |
tree | abafe48eaae4ec1a6d46e76b4417f70db2f31f0d /engines/parallaction/input.h | |
parent | 62d4a469b9897623913d8e83018f253e8d14017d (diff) | |
download | scummvm-rg350-5eec5f6b17d7e403408699d9eaf71a1956574cd9.tar.gz scummvm-rg350-5eec5f6b17d7e403408699d9eaf71a1956574cd9.tar.bz2 scummvm-rg350-5eec5f6b17d7e403408699d9eaf71a1956574cd9.zip |
More merging of input code.
svn-id: r33219
Diffstat (limited to 'engines/parallaction/input.h')
-rw-r--r-- | engines/parallaction/input.h | 12 |
1 files changed, 8 insertions, 4 deletions
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() { } |