From 7e728aff4ea90ca7db622c19feac57ecae189ee1 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Tue, 18 Jun 2019 04:56:16 +0530 Subject: HDB: Add cineWait() and cineWaitUntilDone() --- engines/hdb/ai.cpp | 14 ++++++++++++++ engines/hdb/ai.h | 2 ++ 2 files changed, 16 insertions(+) (limited to 'engines') 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 *_cine; -- cgit v1.2.3