diff options
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; |