aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/hires2.h
diff options
context:
space:
mode:
authorWalter van Niftrik2016-03-16 23:12:31 +0100
committerWalter van Niftrik2016-06-06 20:35:49 +0200
commita653fa2f459957029978f14618ff634ec3485cf8 (patch)
tree72cdc23c15f6ddaeaaea3f1169bc296955e60bb8 /engines/adl/hires2.h
parent0593460b1bd1d70e3848f1d5195d83384c347c92 (diff)
downloadscummvm-rg350-a653fa2f459957029978f14618ff634ec3485cf8.tar.gz
scummvm-rg350-a653fa2f459957029978f14618ff634ec3485cf8.tar.bz2
scummvm-rg350-a653fa2f459957029978f14618ff634ec3485cf8.zip
ADL: Add partial hires2 item drawing
Diffstat (limited to 'engines/adl/hires2.h')
-rw-r--r--engines/adl/hires2.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/adl/hires2.h b/engines/adl/hires2.h
index 6c7904bfaa..631b3418cc 100644
--- a/engines/adl/hires2.h
+++ b/engines/adl/hires2.h
@@ -46,6 +46,7 @@ namespace Adl {
#define IDI_HR2_OFS_NOUNS TS(0x22, 0x2)
#define IDI_HR2_OFS_ROOMS TSO(0x21, 0x5, 0x0e) // Skip bogus room 0
#define IDI_HR2_OFS_MESSAGES TSO(0x1f, 0x2, 0x04) // Skip bogus message 0
+#define IDI_HR2_OFS_ITEM_PICS TSO(0x1e, 0x9, 0x05) // Skip bogus pic 0
#define IDI_HR2_OFS_ITEMS T(0x21)
#define IDI_HR2_OFS_CMDS_0 TS(0x1f, 0x7)
@@ -54,6 +55,7 @@ namespace Adl {
#define IDI_HR2_NUM_ROOMS 135
#define IDI_HR2_NUM_MESSAGES 254
#define IDI_HR2_NUM_VARS 40
+#define IDI_HR2_NUM_ITEM_PICS 38
// Messages used outside of scripts
#define IDI_HR2_MSG_CANT_GO_THERE 123
@@ -92,7 +94,7 @@ private:
void initState();
void restartGame();
void drawPic(byte pic, Common::Point pos) const;
- void drawItem(const Item &item, const Common::Point &pos) const { }
+ void drawItem(const Item &item, const Common::Point &pos) const;
void showRoom();
void printMessage(uint idx, bool wait);
void checkInput(byte verb, byte noun);
@@ -102,6 +104,7 @@ private:
void printString(const Common::String &str);
RoomData _roomData;
+ Common::Array<Picture2> _itemPics;
uint _linesPrinted;
};