aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actors/cursor_actor.h
diff options
context:
space:
mode:
authorwhiterandrek2018-06-14 22:45:41 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit861ef3be97eb7efca8d812aab953c8e0aaf32e08 (patch)
treec63cc2cf2031ae9c1aaa9675468892fe90606c42 /engines/pink/objects/actors/cursor_actor.h
parentbc4d32df8bb40b26d1999e08ecfe5d74f0e1e3b6 (diff)
downloadscummvm-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.h9
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