aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/ai-cinematic.cpp12
-rw-r--r--engines/hdb/ai.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp
index 0f21d4fe0d..cab0d0fd30 100644
--- a/engines/hdb/ai-cinematic.cpp
+++ b/engines/hdb/ai-cinematic.cpp
@@ -273,6 +273,18 @@ void AI::cineSetEntity(const char *entName, int x, int y, int level) {
_cine.push_back(cmd);
}
+void AI::cineMoveEntity(const char *entName, int x, int y, int level, int speed) {
+ CineCommand *cmd = new CineCommand;
+ cmd->x = x;
+ cmd->y = y;
+ cmd->x2 = level;
+ cmd->start = 0;
+ cmd->speed = speed;
+ cmd->title = entName;
+ cmd->cmdType = C_MOVEENTITY;
+ _cine.push_back(cmd);
+}
+
void AI::cineUse(const char *entName) {
CineCommand *cmd = new CineCommand;
cmd->string = entName;
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h
index d6af20d3d6..8c620ad445 100644
--- a/engines/hdb/ai.h
+++ b/engines/hdb/ai.h
@@ -535,6 +535,7 @@ public:
void cineWait(int seconds);
void cineWaitUntilDone();
void cineSetEntity(const char *entName, int x, int y, int level);
+ void cineMoveEntity(const char *entName, int x, int y, int level, int speed);
void cineUse(const char *entName);
void cineFadeIn(bool isBlack, int steps);
void cineFadeOut(bool isBlack, int steps);