aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_areas.h
diff options
context:
space:
mode:
authorBastien Bouclet2010-12-16 16:12:38 +0000
committerBastien Bouclet2010-12-16 16:12:38 +0000
commit24808d49eb9e8dd8c2a85ceb6cf307435a285b50 (patch)
treede69a5bb907a2e79ae3ced5a59d7ee6c78c1b687 /engines/mohawk/myst_areas.h
parentebf2dd8d3805988c8a527c7c4518ffa23fc155f8 (diff)
downloadscummvm-rg350-24808d49eb9e8dd8c2a85ceb6cf307435a285b50.tar.gz
scummvm-rg350-24808d49eb9e8dd8c2a85ceb6cf307435a285b50.tar.bz2
scummvm-rg350-24808d49eb9e8dd8c2a85ceb6cf307435a285b50.zip
MOHAWK: Added the "resources" command to Myst's debug console, which lists the resources in the current card.
Allow the "drawRect" debug command to take a resource id as a parameter, to draw the resource's bounding rect. svn-id: r54933
Diffstat (limited to 'engines/mohawk/myst_areas.h')
-rw-r--r--engines/mohawk/myst_areas.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/mohawk/myst_areas.h b/engines/mohawk/myst_areas.h
index c65c91ba55..0aa5f082f6 100644
--- a/engines/mohawk/myst_areas.h
+++ b/engines/mohawk/myst_areas.h
@@ -60,6 +60,8 @@ class MystResource {
public:
MystResource(MohawkEngine_Myst *vm, Common::SeekableReadStream *rlstStream, MystResource *parent);
virtual ~MystResource();
+ virtual const Common::String describe();
+ void drawBoundingRect();
MystResource *_parent;
ResourceType type;
@@ -95,6 +97,7 @@ class MystResourceType5 : public MystResource {
public:
MystResourceType5(MohawkEngine_Myst *vm, Common::SeekableReadStream *rlstStream, MystResource *parent);
void handleMouseUp(const Common::Point &mouse);
+ const Common::String describe();
protected:
MystScript _script;
@@ -145,6 +148,8 @@ class MystResourceType8 : public MystResourceType7 {
public:
MystResourceType8(MohawkEngine_Myst *vm, Common::SeekableReadStream *rlstStream, MystResource *parent);
virtual ~MystResourceType8();
+ virtual const Common::String describe();
+
virtual void drawDataToScreen();
void drawConditionalDataToScreen(uint16 state, bool update = true);
uint16 getType8Var();
@@ -165,6 +170,8 @@ class MystResourceType11 : public MystResourceType8 {
public:
MystResourceType11(MohawkEngine_Myst *vm, Common::SeekableReadStream *rlstStream, MystResource *parent);
virtual ~MystResourceType11();
+ const Common::String describe();
+
void handleMouseDown(const Common::Point &mouse);
void handleMouseUp(const Common::Point &mouse);
void handleMouseDrag(const Common::Point &mouse);
@@ -237,6 +244,8 @@ private:
class MystResourceType13 : public MystResource {
public:
MystResourceType13(MohawkEngine_Myst *vm, Common::SeekableReadStream *rlstStream, MystResource *parent);
+ const Common::String describe();
+
void handleMouseUp(const Common::Point &mouse);
void handleMouseEnter();
void handleMouseLeave();