diff options
author | Nicola Mettifogo | 2007-03-19 21:49:41 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-03-19 21:49:41 +0000 |
commit | fe5660400fd0a108d7cee4e0c37978154a8ab085 (patch) | |
tree | 16b4ce0e86464c12a23c5edd093929ea1c9e6199 /engines/parallaction/zone.h | |
parent | 3dd12518cbb75545ed4de029c7cec22ffce32f78 (diff) | |
download | scummvm-rg350-fe5660400fd0a108d7cee4e0c37978154a8ab085.tar.gz scummvm-rg350-fe5660400fd0a108d7cee4e0c37978154a8ab085.tar.bz2 scummvm-rg350-fe5660400fd0a108d7cee4e0c37978154a8ab085.zip |
made Animation a subclass of Zone (finally!)
svn-id: r26244
Diffstat (limited to 'engines/parallaction/zone.h')
-rw-r--r-- | engines/parallaction/zone.h | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/engines/parallaction/zone.h b/engines/parallaction/zone.h index 1fc3cdb016..3c6e708c5b 100644 --- a/engines/parallaction/zone.h +++ b/engines/parallaction/zone.h @@ -184,14 +184,10 @@ struct Label { }; struct Zone : public Node { - int16 _left; int16 _top; int16 _right; int16 _bottom; - int16 _oldLeft; - int16 _oldTop; - uint32 _type; uint32 _flags; Label _label; @@ -203,7 +199,6 @@ struct Zone : public Node { Zone() { _left = _top = _right = _bottom = 0; - _oldLeft = _oldTop = 0; _type = 0; _flags = 0; @@ -298,8 +293,9 @@ struct Program : public Node { -struct Animation { - Zone _zone; +struct Animation : public Zone { + int16 _oldLeft; + int16 _oldTop; Program *_program; Cnv *_cnv; int16 _frame; @@ -313,18 +309,8 @@ struct Animation { uint16 field_5E; // unused Animation() { - - // FIXME: temporary hack until Animation become a subclass of Zone - _zone._left = _zone._top = _zone._right = _zone._bottom = 0; - _zone._oldLeft = _zone._oldTop = 0; - - _zone._type = 0; - _zone._flags = 0; - _zone._commands = NULL; - + _oldLeft = _oldTop = 0; _cnv = NULL; - - _program = NULL; _frame = 0; _z = 0; |