diff options
author | whiterandrek | 2018-06-14 22:45:41 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 861ef3be97eb7efca8d812aab953c8e0aaf32e08 (patch) | |
tree | c63cc2cf2031ae9c1aaa9675468892fe90606c42 /engines/pink/objects/actors/cursor_actor.h | |
parent | bc4d32df8bb40b26d1999e08ecfe5d74f0e1e3b6 (diff) | |
download | scummvm-rg350-861ef3be97eb7efca8d812aab953c8e0aaf32e08.tar.gz scummvm-rg350-861ef3be97eb7efca8d812aab953c8e0aaf32e08.tar.bz2 scummvm-rg350-861ef3be97eb7efca8d812aab953c8e0aaf32e08.zip |
PINK: rework CursorMgr
Diffstat (limited to 'engines/pink/objects/actors/cursor_actor.h')
-rw-r--r-- | engines/pink/objects/actors/cursor_actor.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/pink/objects/actors/cursor_actor.h b/engines/pink/objects/actors/cursor_actor.h index 2d5eb281e8..ff4c5de9c3 100644 --- a/engines/pink/objects/actors/cursor_actor.h +++ b/engines/pink/objects/actors/cursor_actor.h @@ -25,12 +25,11 @@ #include "common/debug.h" -#include "pink/objects/actions/action.h" +#include "pink/objects/actions/action_cel.h" #include "pink/objects/actors/actor.h" namespace Pink { -//same as actor class CursorActor : public Actor { public: void toConsole() override { @@ -43,6 +42,12 @@ public: bool isCursor() override { return true; } + + void setCursorItem(const Common::String &name, const Common::Point point) { + if (!_action || _action->getName() != name) + setAction(name); + static_cast<ActionCEL*>(_action)->setCenter(point); + } }; } // End of namespace Pink |