Updated layer calculation: animations are now hidden properly by background elements (but not items yet).
svn-id: r33894
This commit is contained in:
parent
0606fef24e
commit
22eaffcb34
7 changed files with 62 additions and 29 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue