aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-06-18 16:43:12 +0530
committerEugene Sandulenko2019-09-03 17:16:48 +0200
commit116d1d7cc8dd783f1bdbc6d74bf67f890f0602f5 (patch)
tree49b07062cb08795af207c2aa230b67233777c4d1
parent6f82e8fc3d659b12d9c4d5ad3c6b1c9fd0316b3d (diff)
downloadscummvm-rg350-116d1d7cc8dd783f1bdbc6d74bf67f890f0602f5.tar.gz
scummvm-rg350-116d1d7cc8dd783f1bdbc6d74bf67f890f0602f5.tar.bz2
scummvm-rg350-116d1d7cc8dd783f1bdbc6d74bf67f890f0602f5.zip
HDB: Add cineFadeIn() and cineFadeOut()
-rw-r--r--engines/hdb/ai.cpp18
-rw-r--r--engines/hdb/ai.h2
2 files changed, 20 insertions, 0 deletions
diff --git a/engines/hdb/ai.cpp b/engines/hdb/ai.cpp
index cf4d93882c..c52bc272e8 100644
--- a/engines/hdb/ai.cpp
+++ b/engines/hdb/ai.cpp
@@ -157,4 +157,22 @@ void AI::cineWaitUntilDone() {
_cine->push_back(cmd);
}
+void AI::cineFadeIn(bool isBlack, int steps) {
+ CineCommand *cmd = new CineCommand;
+ cmd->speed = steps;
+ cmd->end = (int) isBlack;
+ cmd->start = 0;
+ cmd->cmdType = C_FADEIN;
+ _cine->push_back(cmd);
+}
+
+void AI::cineFadeOut(bool isBlack, int steps) {
+ CineCommand *cmd = new CineCommand;
+ cmd->speed = steps;
+ cmd->end = (int) isBlack;
+ cmd->start = 0;
+ cmd->cmdType = C_FADEOUT;
+ _cine->push_back(cmd);
+}
+
} // End of Namespace
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h
index 549157716d..f06f3a6009 100644
--- a/engines/hdb/ai.h
+++ b/engines/hdb/ai.h
@@ -95,6 +95,8 @@ public:
void cineMoveCamera(int x, int y, int speed);
void cineWait(int seconds);
void cineWaitUntilDone();
+ void cineFadeIn(bool isBlack, int steps);
+ void cineFadeOut(bool isBlack, int steps);
Common::Array<CineCommand *> *_cine;