diff options
author | Gregory Montoir | 2004-09-03 17:27:40 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-09-03 17:27:40 +0000 |
commit | 54a84da97c1aab75ed1cec46f65691a00d4ff87a (patch) | |
tree | a80f131d1acfd355c002b4bb15dbc26998952100 /scumm/intern.h | |
parent | 08fc27b764dcf93f5d052912d9ab5a241e2b7602 (diff) | |
download | scummvm-rg350-54a84da97c1aab75ed1cec46f65691a00d4ff87a.tar.gz scummvm-rg350-54a84da97c1aab75ed1cec46f65691a00d4ff87a.tar.bz2 scummvm-rg350-54a84da97c1aab75ed1cec46f65691a00d4ff87a.zip |
preliminar Wiz images support (HE 72)
svn-id: r14875
Diffstat (limited to 'scumm/intern.h')
-rw-r--r-- | scumm/intern.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/scumm/intern.h b/scumm/intern.h index 64126aa755..ff1e497b74 100644 --- a/scumm/intern.h +++ b/scumm/intern.h @@ -661,14 +661,23 @@ protected: byte data[1]; //14 } GCC_PACK; + struct WizImage { + int resnum; + int x1; + int y1; + int flags; + }; + #if !defined(__GNUC__) #pragma END_PACK_STRUCTS #endif const OpcodeEntryV72he *_opcodesV72he; + WizImage _wizImages[20]; + uint16 _wizImagesNum; public: - ScummEngine_v72he(GameDetector *detector, OSystem *syst, const ScummGameSettings &gs) : ScummEngine_v7he(detector, syst, gs) {} + ScummEngine_v72he(GameDetector *detector, OSystem *syst, const ScummGameSettings &gs) : ScummEngine_v7he(detector, syst, gs), _wizImagesNum(0) {} protected: virtual void setupScummVars(); @@ -677,6 +686,8 @@ protected: virtual void setupOpcodes(); virtual void executeOpcode(byte i); virtual const char *getOpcodeDesc(byte i); + + virtual void redrawBGAreas(); ArrayHeader *defineArray(int array, int type, int dim2start, int dim2end, int dim1start, int dim1end); int readArray(int array, int idx2, int idx1); @@ -687,6 +698,10 @@ protected: int readFileToArray(int slot, int32 size); void writeFileFromArray(int slot, int resID); + void drawWizImage(int restype, int resnum, int x1, int y1, int flags); + void flushWizBuffer(); + void copyWizImage(uint8 *dst, const uint8 *src, int dstw, int dsth, int srcx, int srcy, int srcw, int srch, Common::Rect *pr); + /* Version 7 script opcodes */ void o72_pushDWord(); void o72_addMessageToStack(); @@ -707,14 +722,14 @@ protected: void o72_startScript(); void o72_startObject(); void o72_drawObject(); - void o72_unknown62(); + void o72_printWizImage(); void o72_getArrayDimSize(); void o72_getNumFreeArrays(); void o72_pickupObject(); void o72_arrayOps(); void o72_dimArray(); void o72_dim2dimArray(); - void o72_unknownCE(); + void o72_drawWizImage(); void o72_shuffle(); void o72_jumpToScript(); void o72_openFile(); |