From 6d53dfe917ffdc6c569c29d82957214cc8a24afc Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 11 Jan 2010 14:12:52 +0000 Subject: 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 --- engines/sci/graphics/portrait.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'engines/sci/graphics/portrait.h') 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; -- cgit v1.2.3