From 31bf086186e3bd1747f9cff1e974a22513cadbab Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 11 Mar 2018 22:26:33 +0100 Subject: BLADERUNNER: Added GovernorKolvig actor --- engines/bladerunner/module.mk | 1 + engines/bladerunner/script/ai/governor_kolvig.cpp | 123 ++++++++++++++++++++++ engines/bladerunner/script/ai_script.cpp | 1 + engines/bladerunner/script/ai_script.h | 3 + 4 files changed, 128 insertions(+) create mode 100644 engines/bladerunner/script/ai/governor_kolvig.cpp (limited to 'engines/bladerunner') diff --git a/engines/bladerunner/module.mk b/engines/bladerunner/module.mk index cba0edf1bd..43519ab8e8 100644 --- a/engines/bladerunner/module.mk +++ b/engines/bladerunner/module.mk @@ -62,6 +62,7 @@ MODULE_OBJS = \ script/ai/generic_walker_b.o \ script/ai/generic_walker_c.o \ script/ai/gordo.o \ + script/ai/governor_kolvig.o \ script/ai/grigorian.o \ script/ai/guzza.o \ script/ai/hawkers_barkeep.o \ diff --git a/engines/bladerunner/script/ai/governor_kolvig.cpp b/engines/bladerunner/script/ai/governor_kolvig.cpp new file mode 100644 index 0000000000..f0d05eea73 --- /dev/null +++ b/engines/bladerunner/script/ai/governor_kolvig.cpp @@ -0,0 +1,123 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#include "bladerunner/script/ai_script.h" + +namespace BladeRunner { + +AIScriptGovernorKolvig::AIScriptGovernorKolvig(BladeRunnerEngine *vm) : AIScriptBase(vm) { +} + +void AIScriptGovernorKolvig::Initialize() { + _animationFrame = 0; + _animationState = 0; + _animationStateNext = 0; + _animationNext = 0; +} + +bool AIScriptGovernorKolvig::Update() { + return false; +} + +void AIScriptGovernorKolvig::TimerExpired(int timer) { + //return false; +} + +void AIScriptGovernorKolvig::CompletedMovementTrack() { + //return false; +} + +void AIScriptGovernorKolvig::ReceivedClue(int clueId, int fromActorId) { + //return false; +} + +void AIScriptGovernorKolvig::ClickedByPlayer() { + //return false; +} + +void AIScriptGovernorKolvig::EnteredScene(int sceneId) { + // return false; +} + +void AIScriptGovernorKolvig::OtherAgentEnteredThisScene(int otherActorId) { + // return false; +} + +void AIScriptGovernorKolvig::OtherAgentExitedThisScene(int otherActorId) { + // return false; +} + +void AIScriptGovernorKolvig::OtherAgentEnteredCombatMode(int otherActorId, int combatMode) { + // return false; +} + +void AIScriptGovernorKolvig::ShotAtAndMissed() { + // return false; +} + +bool AIScriptGovernorKolvig::ShotAtAndHit() { + return false; +} + +void AIScriptGovernorKolvig::Retired(int byActorId) { + // return false; +} + +int AIScriptGovernorKolvig::GetFriendlinessModifierIfGetsClue(int otherActorId, int clueId) { + return 0; +} + +bool AIScriptGovernorKolvig::GoalChanged(int currentGoalNumber, int newGoalNumber) { + return false; +} + +bool AIScriptGovernorKolvig::UpdateAnimation(int *animation, int *frame) { + return true; +} + +bool AIScriptGovernorKolvig::ChangeAnimationMode(int mode) { + return true; +} + +void AIScriptGovernorKolvig::QueryAnimationState(int *animationState, int *animationFrame, int *animationStateNext, int *animationNext) { + *animationState = _animationState; + *animationFrame = _animationFrame; + *animationStateNext = _animationStateNext; + *animationNext = _animationNext; +} + +void AIScriptGovernorKolvig::SetAnimationState(int animationState, int animationFrame, int animationStateNext, int animationNext) { + _animationState = animationState; + _animationFrame = animationFrame; + _animationStateNext = animationStateNext; + _animationNext = animationNext; +} + +bool AIScriptGovernorKolvig::ReachedMovementTrackWaypoint(int waypointId) { + return true; +} + +void AIScriptGovernorKolvig::FledCombat() { + // return false; +} + +} // End of namespace BladeRunner diff --git a/engines/bladerunner/script/ai_script.cpp b/engines/bladerunner/script/ai_script.cpp index b9872361d2..caf9d8bc14 100644 --- a/engines/bladerunner/script/ai_script.cpp +++ b/engines/bladerunner/script/ai_script.cpp @@ -67,6 +67,7 @@ AIScripts::AIScripts(BladeRunnerEngine *vm, int actorCount) { _AIScripts[kActorDispatcher] = new AIScriptDispatcher(_vm); // 38 _AIScripts[kActorAnsweringMachine] = new AIScriptAnsweringMachine(_vm);// 39 _AIScripts[kActorRajif] = new AIScriptRajif(_vm); // 40 + _AIScripts[kActorGovernorKolvig] = new AIScriptGovernorKolvig(_vm); // 41 _AIScripts[kActorHysteriaPatron1] = new AIScriptHysteriaPatron1(_vm); // 47 _AIScripts[kActorHysteriaPatron2] = new AIScriptHysteriaPatron2(_vm); // 48 _AIScripts[kActorHysteriaPatron3] = new AIScriptHysteriaPatron3(_vm); // 49 diff --git a/engines/bladerunner/script/ai_script.h b/engines/bladerunner/script/ai_script.h index d2ce59f96f..5d679c28df 100644 --- a/engines/bladerunner/script/ai_script.h +++ b/engines/bladerunner/script/ai_script.h @@ -263,6 +263,9 @@ END_SCRIPT DECLARE_SCRIPT(Rajif) END_SCRIPT +DECLARE_SCRIPT(GovernorKolvig) +END_SCRIPT + DECLARE_SCRIPT(HysteriaPatron1) END_SCRIPT -- cgit v1.2.3