diff options
author | whiterandrek | 2018-06-11 23:30:50 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 471840514f148a1730dd7a7c281a062bcab5eeed (patch) | |
tree | 881355aac82f7feb780f4a9e09d411a32e5351f4 /engines/pink/objects/actors | |
parent | 2fb268b155357c999499460bf98431a4e3761564 (diff) | |
download | scummvm-rg350-471840514f148a1730dd7a7c281a062bcab5eeed.tar.gz scummvm-rg350-471840514f148a1730dd7a7c281a062bcab5eeed.tar.bz2 scummvm-rg350-471840514f148a1730dd7a7c281a062bcab5eeed.zip |
PINK: fix determination of Actor by point
Diffstat (limited to 'engines/pink/objects/actors')
-rw-r--r-- | engines/pink/objects/actors/actor.h | 2 | ||||
-rw-r--r-- | engines/pink/objects/actors/cursor_actor.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/pink/objects/actors/actor.h b/engines/pink/objects/actors/actor.h index 2d42f37705..668186217d 100644 --- a/engines/pink/objects/actors/actor.h +++ b/engines/pink/objects/actors/actor.h @@ -57,6 +57,8 @@ public: void endAction() { _isActionEnded = true; } + virtual bool isCursor() { return false; } + virtual bool isLeftClickHandlers() { return false; } virtual bool isUseClickHandlers(InventoryItem *item) { return false; } diff --git a/engines/pink/objects/actors/cursor_actor.h b/engines/pink/objects/actors/cursor_actor.h index 8446b76e45..2d5eb281e8 100644 --- a/engines/pink/objects/actors/cursor_actor.h +++ b/engines/pink/objects/actors/cursor_actor.h @@ -39,6 +39,10 @@ public: _actions[i]->toConsole(); } } + + bool isCursor() override { + return true; + } }; } // End of namespace Pink |