diff options
author | Nipun Garg | 2019-06-20 18:14:46 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:52 +0200 |
commit | 3a8a79f2cc22c77b1c4e5779a174587300427355 (patch) | |
tree | 6ebb366515890eb7b28540857e58388aaabaeae3 | |
parent | 054a9a55301b49a657c714c155ccaea29f896d41 (diff) | |
download | scummvm-rg350-3a8a79f2cc22c77b1c4e5779a174587300427355.tar.gz scummvm-rg350-3a8a79f2cc22c77b1c4e5779a174587300427355.tar.bz2 scummvm-rg350-3a8a79f2cc22c77b1c4e5779a174587300427355.zip |
HDB: Add cineMoveEntity()
-rw-r--r-- | engines/hdb/ai-cinematic.cpp | 12 | ||||
-rw-r--r-- | engines/hdb/ai.h | 1 |
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); |