diff options
author | Paul Gilbert | 2014-03-15 21:51:40 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-03-15 21:51:40 -0400 |
commit | 2fb9edc4ee80c99b5a56a66cf52c614939748bd9 (patch) | |
tree | 2c57eb59dde523cd95b9e1e102d483d0f39fef00 /engines | |
parent | 630679a5c8d72242866638b470cd361c0d5c6b0a (diff) | |
download | scummvm-rg350-2fb9edc4ee80c99b5a56a66cf52c614939748bd9.tar.gz scummvm-rg350-2fb9edc4ee80c99b5a56a66cf52c614939748bd9.tar.bz2 scummvm-rg350-2fb9edc4ee80c99b5a56a66cf52c614939748bd9.zip |
MADS: Added some more ImageInterEntries methods
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mads/sprites.cpp | 27 | ||||
-rw-r--r-- | engines/mads/sprites.h | 4 |
2 files changed, 26 insertions, 5 deletions
diff --git a/engines/mads/sprites.cpp b/engines/mads/sprites.cpp index 8979fdb12c..be066ba2db 100644 --- a/engines/mads/sprites.cpp +++ b/engines/mads/sprites.cpp @@ -414,15 +414,34 @@ ImageInterEntry::ImageInterEntry() { /*------------------------------------------------------------------------*/ -int ImageInterEntries::add(int field0, int field2) { +void ImageInterEntries::add(int v1, int v2) { ImageInterEntry ie; - ie._field0 = field0; - ie._field2 = field2; + ie._field0 = -2; + ie._field2 = -1; + + push_back(ie); +} + +void ImageInterEntries::add(int v1, int v2, int v3, int v4) { + assert(size() < 50); + + ImageInterEntry ie; + ie._field0 = -3; + ie._field2 = 201; + ie._field6 = v1; + ie._field8 = v2; + ie._field4 = v3; + ie._field3 = v4; push_back(ie); - return size() - 1; } +ImageInterEntry &ImageInterEntries::add() { + resize(size() + 1); + return (*this)[size() - 1]; +} + + void ImageInterEntries::call(int v1, int v2) { debug("TODO: ImageInterEntries::call"); } diff --git a/engines/mads/sprites.h b/engines/mads/sprites.h index 2d5b2089b9..82f0a9b10d 100644 --- a/engines/mads/sprites.h +++ b/engines/mads/sprites.h @@ -240,7 +240,9 @@ public: class ImageInterEntries: public Common::Array<ImageInterEntry> { public: - int add(int field0, int field2); + void add(int v1, int v2); + void add(int v1, int v2, int v3, int v4); + ImageInterEntry &add(); void call(int v1, int v2); }; |