diff options
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/ai-cinematic.cpp | 10 | ||||
-rw-r--r-- | engines/hdb/ai.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index a09eeb47db..dd1f1e641e 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -493,6 +493,16 @@ void AI::cineMoveEntity(const char *entName, int x, int y, int level, int speed) _cine.push_back(cmd); } +void AI::cineAnimEntity(const char *entName, AIState state, int loop) { + CineCommand *cmd = new CineCommand; + cmd->start = 0; + strcpy(cmd->title, entName); + cmd->speed = state; + cmd->end = loop; + cmd->cmdType = C_ANIMENTITY; + _cine.push_back(cmd); +} + void AI::cineEntityFace(const char *luaName, double dir) { CineCommand *cmd = new CineCommand; strcpy(cmd->title, luaName); diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index 82849a9c88..6269697bfa 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -744,6 +744,7 @@ public: 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 cineAnimEntity(const char *entName, AIState state, int loop); void cineEntityFace(const char *luaName, double dir); void cineDialog(const char *title, const char *string, int seconds); void cineMoveMaskedPic(const char *id, const char *pic, int x1, int y1, int x2, int y2, int speed); |