diff options
author | Nicola Mettifogo | 2007-03-17 20:48:23 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-03-17 20:48:23 +0000 |
commit | b80dab6c73819edbe2a21903e313b565630a87a3 (patch) | |
tree | aa5b54cdcc308bc254ef4e1fcd60fe9bd3ceb382 /engines/parallaction/zone.h | |
parent | 54201ddaa9bf1ec8bda447f9a76382a238a72617 (diff) | |
download | scummvm-rg350-b80dab6c73819edbe2a21903e313b565630a87a3.tar.gz scummvm-rg350-b80dab6c73819edbe2a21903e313b565630a87a3.tar.bz2 scummvm-rg350-b80dab6c73819edbe2a21903e313b565630a87a3.zip |
added getters for width and height in Zone and Animation
svn-id: r26183
Diffstat (limited to 'engines/parallaction/zone.h')
-rw-r--r-- | engines/parallaction/zone.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/engines/parallaction/zone.h b/engines/parallaction/zone.h index b5a73945f8..ef878eb41e 100644 --- a/engines/parallaction/zone.h +++ b/engines/parallaction/zone.h @@ -134,14 +134,20 @@ struct Zone : public Node { uint32 _type; uint32 _flags; -// char* _labeltext; -// StaticCnv _labelcnv; ZoneLabel _label; uint16 field_2C; // unused uint16 field_2E; // unused ZoneTypeData u; Command *_commands; Point _moveTo; + + uint16 width() const { + return _right - _left; + } + + uint16 height() const { + return _bottom - _top; + } }; struct LocalVariable { @@ -199,6 +205,14 @@ struct Animation { uint16 field_5A; // unused uint16 field_5C; // unused uint16 field_5E; // unused + + uint16 width() const { + return _cnv._width; + } + + uint16 height() const { + return _cnv._height; + } }; extern Node _zones; |