aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-06-18 04:56:16 +0530
committerEugene Sandulenko2019-09-03 17:16:47 +0200
commit7e728aff4ea90ca7db622c19feac57ecae189ee1 (patch)
tree1f510e6fa0fe60cf98b226e6169bec80f9ad1bec /engines
parent6910430770b967f10cb9fe5038bbca898e673b25 (diff)
downloadscummvm-rg350-7e728aff4ea90ca7db622c19feac57ecae189ee1.tar.gz
scummvm-rg350-7e728aff4ea90ca7db622c19feac57ecae189ee1.tar.bz2
scummvm-rg350-7e728aff4ea90ca7db622c19feac57ecae189ee1.zip
HDB: Add cineWait() and cineWaitUntilDone()
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/ai.cpp14
-rw-r--r--engines/hdb/ai.h2
2 files changed, 16 insertions, 0 deletions
diff --git a/engines/hdb/ai.cpp b/engines/hdb/ai.cpp
index 3b79150333..45a29f8d53 100644
--- a/engines/hdb/ai.cpp
+++ b/engines/hdb/ai.cpp
@@ -116,4 +116,18 @@ void AI::cineMoveCamera(int x, int y, int speed) {
_cine->push_back(cmd);
}
+void AI::cineWait(int seconds) {
+ CineCommand *cmd = new CineCommand;
+ cmd->start = 0;
+ cmd->cmdType = C_WAIT;
+ cmd->delay = seconds;
+ _cine->push_back(cmd);
+}
+
+void AI::cineWaitUntilDone() {
+ CineCommand *cmd = new CineCommand;
+ cmd->cmdType = C_WAITUNTILDONE;
+ _cine->push_back(cmd);
+}
+
} // End of Namespace
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h
index 570a4044e5..ee82a45e0c 100644
--- a/engines/hdb/ai.h
+++ b/engines/hdb/ai.h
@@ -91,6 +91,8 @@ public:
void cineSetCamera(int x, int y);
void cineResetCamera();
void cineMoveCamera(int x, int y, int speed);
+ void cineWait(int seconds);
+ void cineWaitUntilDone();
Common::Array<CineCommand *> *_cine;