diff options
-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; |