From dfdcbd8b4f397ebc2209d301b0f9ae5c9ee6e320 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Thu, 20 Jun 2019 18:33:18 +0530 Subject: HDB: Process cineEntityFace() --- engines/hdb/ai-cinematic.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'engines/hdb') diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index 45274b4a7c..0fa6bc8641 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -179,6 +179,33 @@ void AI::processCines() { } } break; + case C_ENTITYFACE: + { + AIEntity *e = locateEntity(_cine[i]->title); + + if (e) { + int d = (int)_cine[i]->x; + e->dir = (AIDir)d; + switch (e->dir) { + case DIR_UP: + e->state = STATE_STANDUP; + break; + case DIR_DOWN: + e->state = STATE_STANDDOWN; + break; + case DIR_LEFT: + e->state = STATE_STANDLEFT; + break; + case DIR_RIGHT: + e->state = STATE_STANDRIGHT; + break; + } + } else { + warning("Can't find %s to ENTITYFACE", _cine[i]->title); + } + complete = true; + break; + } case C_USEENTITY: _cine[i]->e = locateEntity(_cine[i]->string); warning("STUB: PROCESSCINES: USEENTITY: HDBGame::useEntity required;"); -- cgit v1.2.3