aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/objects.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/parallaction/objects.h')
-rw-r--r--engines/parallaction/objects.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/parallaction/objects.h b/engines/parallaction/objects.h
index 96145578fc..d06eaf1a03 100644
--- a/engines/parallaction/objects.h
+++ b/engines/parallaction/objects.h
@@ -322,7 +322,6 @@ public:
Zone();
virtual ~Zone();
- void getRect(Common::Rect& r) const;
void translate(int16 x, int16 y);
virtual uint16 width() const;
virtual uint16 height() const;
@@ -334,6 +333,14 @@ public:
_bottom = bottom;
}
+ void getBox(Common::Rect& r) {
+ r.left = getX();
+ r.right = getX() + width();
+ r.top = getY();
+ r.bottom = getY() + height();
+ }
+
+
// getters/setters
virtual int16 getX() { return _left; }
virtual void setX(int16 value) { _left = value; }
@@ -513,6 +520,9 @@ public:
void validateScriptVars();
+ int16 getFrameX() const;
+ int16 getFrameY() const;
+
// getters/setters used by scripts
int16 getX() { return _left; }
void setX(int16 value) { _left = value; }