diff options
author | Filippos Karapetis | 2010-01-11 14:12:52 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-01-11 14:12:52 +0000 |
commit | 6d53dfe917ffdc6c569c29d82957214cc8a24afc (patch) | |
tree | e77b91920adde5f7fd50763c7853d5bf19343bfb /engines/sci/graphics/portrait.h | |
parent | 6a07bbd5f41960d5c773f116d24c4de741ef3541 (diff) | |
download | scummvm-rg350-6d53dfe917ffdc6c569c29d82957214cc8a24afc.tar.gz scummvm-rg350-6d53dfe917ffdc6c569c29d82957214cc8a24afc.tar.bz2 scummvm-rg350-6d53dfe917ffdc6c569c29d82957214cc8a24afc.zip |
Some portrait-related changes, to be used when portrait loading/unloading is done. Also, added a comment on where the class is used
svn-id: r47251
Diffstat (limited to 'engines/sci/graphics/portrait.h')
-rw-r--r-- | engines/sci/graphics/portrait.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/sci/graphics/portrait.h b/engines/sci/graphics/portrait.h index dab009bfa1..5053df8b7c 100644 --- a/engines/sci/graphics/portrait.h +++ b/engines/sci/graphics/portrait.h @@ -35,6 +35,11 @@ struct PortraitBitmap { byte *rawBitmap; }; +/** + * This class is used to handle all the hi-res portraits used in the Windows + * release of KQ6. These are all in external data files, and handled separately + * from the rest of the engine (originally, inside rave.dll) + */ class Portrait { public: Portrait(ResourceManager *resMan, SciEvent *event, SciGui *gui, Screen *screen, SciPalette *palette, AudioPlayer *audio, Common::String resourceName); @@ -43,8 +48,10 @@ public: void setupAudio(uint16 resourceId, uint16 noun, uint16 verb, uint16 cond, uint16 seq); void doit(Common::Point position, uint16 resourceId, uint16 noun, uint16 verb, uint16 cond, uint16 seq); + Common::String getResourceName() { return _resourceName; } + private: - void init(Common::String resourceName); + void init(); void drawBitmap(uint16 bitmapNr); void bitsShow(); @@ -62,6 +69,8 @@ private: uint16 _bitmapCount; PortraitBitmap *_bitmaps; + Common::String _resourceName; + byte *_fileData; Common::Point _position; |