aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/adl_v2.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_v2.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_v2.h')
-rw-r--r--engines/adl/adl_v2.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/adl/adl_v2.h b/engines/adl/adl_v2.h
index e21c43c107..d4847193d0 100644
--- a/engines/adl/adl_v2.h
+++ b/engines/adl/adl_v2.h
@@ -44,18 +44,30 @@ public:
protected:
AdlEngine_v2(OSystem *syst, const AdlGameDescription *gd);
+ // AdlEngine
virtual void setupOpcodeTables();
bool matchesCurrentPic(byte pic) const;
byte roomArg(byte room) const;
+ void advanceClock();
+
+ void checkTextOverflow(char c);
+ void printString(const Common::String &str);
int o2_isFirstTime(ScriptEnv &e);
int o2_isRandomGT(ScriptEnv &e);
int o2_isNounNotInRoom(ScriptEnv &e);
int o2_isCarryingSomething(ScriptEnv &e);
+
+ int o2_moveItem(ScriptEnv &e);
int o2_moveAllItems(ScriptEnv &e);
int o2_placeItem(ScriptEnv &e);
+ int o2_tellTime(ScriptEnv &e);
- int o2_moveItem(ScriptEnv &e);
+ struct {
+ Common::String time;
+ } _strings_v2;
+
+ uint _linesPrinted;
private:
Common::RandomSource *_random;