From 861ef3be97eb7efca8d812aab953c8e0aaf32e08 Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Thu, 14 Jun 2018 22:45:41 +0300 Subject: PINK: rework CursorMgr --- engines/pink/objects/actors/cursor_actor.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'engines/pink/objects/actors/cursor_actor.h') 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(_action)->setCenter(point); + } }; } // End of namespace Pink -- cgit v1.2.3