From 7ff7e0def4670fee3346c4b75aa1e79d2f684bb0 Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Wed, 16 Mar 2016 11:04:34 +0100 Subject: ADL: Add hires2 command loading --- engines/adl/hires2.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/adl/hires2.h') diff --git a/engines/adl/hires2.h b/engines/adl/hires2.h index 58831c497d..f9d6d924bc 100644 --- a/engines/adl/hires2.h +++ b/engines/adl/hires2.h @@ -47,8 +47,12 @@ namespace Adl { #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_CMDS_0 TS(0x1f, 0x7) +#define IDI_HR2_OFS_CMDS_1 TS(0x1d, 0x7) + #define IDI_HR2_NUM_ROOMS 135 #define IDI_HR2_NUM_MESSAGES 254 +#define IDI_HR2_NUM_VARS 40 // Messages used outside of scripts #define IDI_HR2_MSG_CANT_GO_THERE 123 @@ -73,6 +77,7 @@ struct Picture2 { struct RoomData { Common::String description; Common::Array pictures; + Commands commands; }; class HiRes2Engine : public AdlEngine { @@ -89,6 +94,7 @@ private: void drawItem(const Item &item, const Common::Point &pos) const { } void showRoom(); void printMessage(uint idx, bool wait); + void checkInput(byte verb, byte noun); void loadRoom(byte roomNr); void checkTextOverflow(char c); -- cgit v1.2.3