diff options
author | Nicola Mettifogo | 2008-08-15 08:44:41 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-08-15 08:44:41 +0000 |
commit | 22eaffcb343c688defbcd53445ad111390edb71d (patch) | |
tree | 3b0cb32a54def2af1e6e2deb00fda2dbbcf4de7c /engines/parallaction/objects.h | |
parent | 0606fef24e03580d2d2f3c34f9fd254f361d7623 (diff) | |
download | scummvm-rg350-22eaffcb343c688defbcd53445ad111390edb71d.tar.gz scummvm-rg350-22eaffcb343c688defbcd53445ad111390edb71d.tar.bz2 scummvm-rg350-22eaffcb343c688defbcd53445ad111390edb71d.zip |
Updated layer calculation: animations are now hidden properly by background elements (but not items yet).
svn-id: r33894
Diffstat (limited to 'engines/parallaction/objects.h')
-rw-r--r-- | engines/parallaction/objects.h | 12 |
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; } |