aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/adl.h
diff options
context:
space:
mode:
authorWalter van Niftrik2016-03-20 07:56:53 +0100
committerWalter van Niftrik2016-06-06 20:35:49 +0200
commita7a371c63d1570714c7b5cb766f6acc3fd26f5fc (patch)
treed6186ca34ee6c5c85665e86523f7b0dd26a51d22 /engines/adl/adl.h
parente7c93489e4f6055c988d048c9c479de3eff94ece (diff)
downloadscummvm-rg350-a7a371c63d1570714c7b5cb766f6acc3fd26f5fc.tar.gz
scummvm-rg350-a7a371c63d1570714c7b5cb766f6acc3fd26f5fc.tar.bz2
scummvm-rg350-a7a371c63d1570714c7b5cb766f6acc3fd26f5fc.zip
ADL: Implement time opcode
Diffstat (limited to 'engines/adl/adl.h')
-rw-r--r--engines/adl/adl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/adl/adl.h b/engines/adl/adl.h
index 595386cb29..5aba30eeab 100644
--- a/engines/adl/adl.h
+++ b/engines/adl/adl.h
@@ -136,6 +136,12 @@ struct Item {
Common::Array<byte> roomPictures;
};
+struct Time {
+ byte hours, minutes;
+
+ Time() : hours(12), minutes(0) { }
+};
+
struct State {
Common::Array<Room> rooms;
Common::Array<Item> items;
@@ -144,6 +150,7 @@ struct State {
byte room;
uint16 moves;
bool isDark;
+ Time time;
State() : room(1), moves(1), isDark(false) { }
};
@@ -177,6 +184,7 @@ protected:
virtual void setupOpcodeTables();
virtual bool matchesCurrentPic(byte pic) const;
virtual byte roomArg(byte room) const;
+ virtual void advanceClock() { }
// Opcodes
int o1_isItemInRoom(ScriptEnv &e);