diff options
author | Nipun Garg | 2019-06-18 04:56:16 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:47 +0200 |
commit | 7e728aff4ea90ca7db622c19feac57ecae189ee1 (patch) | |
tree | 1f510e6fa0fe60cf98b226e6169bec80f9ad1bec /engines | |
parent | 6910430770b967f10cb9fe5038bbca898e673b25 (diff) | |
download | scummvm-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.cpp | 14 | ||||
-rw-r--r-- | engines/hdb/ai.h | 2 |
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; |