aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/input.h
diff options
context:
space:
mode:
authorNicola Mettifogo2008-07-23 01:07:39 +0000
committerNicola Mettifogo2008-07-23 01:07:39 +0000
commit5eec5f6b17d7e403408699d9eaf71a1956574cd9 (patch)
treeabafe48eaae4ec1a6d46e76b4417f70db2f31f0d /engines/parallaction/input.h
parent62d4a469b9897623913d8e83018f253e8d14017d (diff)
downloadscummvm-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.h12
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() { }