From 81f90c772151b3abe14b86350aa9db9e98819083 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Wed, 19 Jun 2019 17:58:37 +0530 Subject: [PATCH] HDB: Add cineUseEntity() --- engines/hdb/ai-cinematic.cpp | 7 +++++++ engines/hdb/ai.h | 1 + 2 files changed, 8 insertions(+) diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index 92f4a94203e..fb3c01b5be4 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -241,6 +241,13 @@ void AI::cineSetEntity(const char *entName, int x, int y, int level) { _cine.push_back(cmd); } +void AI::cineUse(const char *entName) { + CineCommand *cmd = new CineCommand; + cmd->string = entName; + cmd->cmdType = C_USEENTITY; + _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 0d76eec2486..1a86f2422c2 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -411,6 +411,7 @@ public: void cineWait(int seconds); void cineWaitUntilDone(); void cineSetEntity(const char *entName, int x, int y, int level); + void cineUse(const char *entName); void cineFadeIn(bool isBlack, int steps); void cineFadeOut(bool isBlack, int steps);