aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai-cinematic.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-06-21 06:38:14 +0530
committerEugene Sandulenko2019-09-03 17:16:53 +0200
commitcad0e0bb9886f97c671368cf48df9735c1a7cbbc (patch)
treef5b643f3da7eedfc75f6e1175d29cb39b9cbc28f /engines/hdb/ai-cinematic.cpp
parent13c614bd3a14fed4ba7b3344a347c018468f3c5e (diff)
downloadscummvm-rg350-cad0e0bb9886f97c671368cf48df9735c1a7cbbc.tar.gz
scummvm-rg350-cad0e0bb9886f97c671368cf48df9735c1a7cbbc.tar.bz2
scummvm-rg350-cad0e0bb9886f97c671368cf48df9735c1a7cbbc.zip
HDB: Add cine clear FG, and set BG/FG functions
Diffstat (limited to 'engines/hdb/ai-cinematic.cpp')
-rw-r--r--engines/hdb/ai-cinematic.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp
index ee67737074..d279050cd3 100644
--- a/engines/hdb/ai-cinematic.cpp
+++ b/engines/hdb/ai-cinematic.cpp
@@ -365,4 +365,30 @@ void AI::cineFadeOut(bool isBlack, int steps) {
_cine.push_back(cmd);
}
+void AI::cineClearForeground(int x, int y) {
+ CineCommand *cmd = new CineCommand;
+ cmd->x = x;
+ cmd->y = y;
+ cmd->cmdType = C_CLEAR_FG;
+ _cine.push_back(cmd);
+}
+
+void AI::cineSetBackground(int x, int y, int index) {
+ CineCommand *cmd = new CineCommand;
+ cmd->x = x;
+ cmd->y = y;
+ cmd->start = index;
+ cmd->cmdType = C_SET_BG;
+ _cine.push_back(cmd);
+}
+
+void AI::cineSetForeground(int x, int y, int index) {
+ CineCommand *cmd = new CineCommand;
+ cmd->x = x;
+ cmd->y = y;
+ cmd->start = index;
+ cmd->cmdType = C_SET_FG;
+ _cine.push_back(cmd);
+}
+
} // End of Namespace