aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/hires2.h
diff options
context:
space:
mode:
authorWalter van Niftrik2016-03-16 11:04:34 +0100
committerWalter van Niftrik2016-06-06 20:35:49 +0200
commit7ff7e0def4670fee3346c4b75aa1e79d2f684bb0 (patch)
treef4902ac3fa3cd855875b01e7fcd370d435db2015 /engines/adl/hires2.h
parent0a6b7fb6a6414caa4d8654a75e07b6a33ef6cce3 (diff)
downloadscummvm-rg350-7ff7e0def4670fee3346c4b75aa1e79d2f684bb0.tar.gz
scummvm-rg350-7ff7e0def4670fee3346c4b75aa1e79d2f684bb0.tar.bz2
scummvm-rg350-7ff7e0def4670fee3346c4b75aa1e79d2f684bb0.zip
ADL: Add hires2 command loading
Diffstat (limited to 'engines/adl/hires2.h')
-rw-r--r--engines/adl/hires2.h6
1 files changed, 6 insertions, 0 deletions
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<Picture2> 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);