diff options
author | Nipun Garg | 2019-06-24 03:02:51 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:58 +0200 |
commit | 812878661af5aa502555c1e87e90c09dfafe5928 (patch) | |
tree | c55b721b285c7cd51e062d83b1e7cf85e93d4f6d /engines | |
parent | d7cc3ab225873be825b01bb97be455244c5e020e (diff) | |
download | scummvm-rg350-812878661af5aa502555c1e87e90c09dfafe5928.tar.gz scummvm-rg350-812878661af5aa502555c1e87e90c09dfafe5928.tar.bz2 scummvm-rg350-812878661af5aa502555c1e87e90c09dfafe5928.zip |
HDB: Add cineAnimEntity()
Diffstat (limited to 'engines')
-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); |