aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actors/actor.h
diff options
context:
space:
mode:
authorwhiterandrek2018-04-02 08:57:56 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit49d5ea28c023a43f7d1444b55ac8c06df9966128 (patch)
tree37db0a106b33970b934243f8c48adcb12c12255e /engines/pink/objects/actors/actor.h
parente48ac17f68ccd1b4432d9d6e15e811a88ea8daf4 (diff)
downloadscummvm-rg350-49d5ea28c023a43f7d1444b55ac8c06df9966128.tar.gz
scummvm-rg350-49d5ea28c023a43f7d1444b55ac8c06df9966128.tar.bz2
scummvm-rg350-49d5ea28c023a43f7d1444b55ac8c06df9966128.zip
PINK: added basic cursor implementation, fixed sequenceAudio restarting and skipping, fixed various mem leaks, hopefully fixed finding of transparent color index.
Diffstat (limited to 'engines/pink/objects/actors/actor.h')
-rw-r--r--engines/pink/objects/actors/actor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/pink/objects/actors/actor.h b/engines/pink/objects/actors/actor.h
index 1d6fdf4bd4..270ac99914 100644
--- a/engines/pink/objects/actors/actor.h
+++ b/engines/pink/objects/actors/actor.h
@@ -24,6 +24,7 @@
#define PINK_ACTOR_H
#include <common/array.h>
+#include <common/rect.h>
#include "engines/pink/objects/object.h"
namespace Pink {
@@ -32,6 +33,7 @@ class GamePage;
class Action;
class Sequencer;
class Director;
+class CursorMgr;
class Actor : public NamedObject {
public:
@@ -39,6 +41,7 @@ public:
: _page(nullptr), _action(nullptr),
_isActionEnded(1)
{};
+ ~Actor();
virtual void deserialize(Archive &archive);
virtual void toConsole();
@@ -61,6 +64,9 @@ public:
virtual void update() {};
+ virtual void onMouseOver(Common::Point point, CursorMgr *mgr);
+
+ virtual bool isClickable() { return 0;}
protected:
GamePage *_page;
Action *_action;