From 7090841ccc43c64d5a1d9058071ebccaf6b52fc2 Mon Sep 17 00:00:00 2001 From: Peter Kohaut Date: Sun, 18 Feb 2018 22:18:41 +0100 Subject: BLADERUNNER: Support for running Fixed Runciter idle state Fixed movement track delay Basic combat support --- engines/bladerunner/actor_walk.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'engines/bladerunner/actor_walk.cpp') diff --git a/engines/bladerunner/actor_walk.cpp b/engines/bladerunner/actor_walk.cpp index fccc8e22b3..3a2327a8df 100644 --- a/engines/bladerunner/actor_walk.cpp +++ b/engines/bladerunner/actor_walk.cpp @@ -37,8 +37,8 @@ namespace BladeRunner { ActorWalk::ActorWalk(BladeRunnerEngine *vm) { _vm = vm; - _walking = 0; - _running = 0; + _walking = false; + _running = false; _facing = -1; _status = 0; @@ -228,6 +228,16 @@ void ActorWalk::stop(int actorId, bool immediately, int combatAnimationMode, int } } +void ActorWalk::run(int actorId) { + _running = true; + + int animationMode = kAnimationModeRun; + if (_vm->_actors[actorId]->inCombat()) { + animationMode = kAnimationModeCombatRun; + } + _vm->_actors[actorId]->changeAnimationMode(animationMode, false); +} + bool ActorWalk::isXYZEmpty(float x, float y, float z, int actorId) const { if (_vm->_scene->_set->findWalkbox(x, z) == -1) { return true; -- cgit v1.2.3