From 78ef1a9f014a8af3b6ba74928d849752c2abc12f Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Wed, 19 Jun 2019 01:15:55 +0530 Subject: HDB: Add cineSetEntity() --- engines/hdb/ai.cpp | 10 ++++++++++ engines/hdb/ai.h | 1 + 2 files changed, 11 insertions(+) diff --git a/engines/hdb/ai.cpp b/engines/hdb/ai.cpp index 0562b39e45..9d5767c312 100644 --- a/engines/hdb/ai.cpp +++ b/engines/hdb/ai.cpp @@ -223,6 +223,16 @@ void AI::cineWaitUntilDone() { _cine.push_back(cmd); } +void AI::cineSetEntity(const char *entName, int x, int y, int level) { + CineCommand *cmd = new CineCommand; + cmd->string = entName; + cmd->x = x * kTileWidth; + cmd->y = y * kTileHeight; + cmd->x2 = level; + cmd->cmdType = C_SETENTITY; + _cine.push_back(cmd); +} + void AI::cineFadeIn(bool isBlack, int steps) { CineCommand *cmd = new CineCommand; cmd->speed = steps; diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index 182f918105..8cabf2e287 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -388,6 +388,7 @@ public: void cineMoveCamera(int x, int y, int speed); void cineWait(int seconds); void cineWaitUntilDone(); + void cineSetEntity(const char *entName, int x, int y, int level); void cineFadeIn(bool isBlack, int steps); void cineFadeOut(bool isBlack, int steps); -- cgit v1.2.3