diff options
author | Eugene Sandulenko | 2018-03-11 22:11:26 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-03-11 22:21:30 +0100 |
commit | c635f7c8d7baea6aa9475c8e7e60814face0743f (patch) | |
tree | 479eb4b3b407c79c031491b8d81d8c1085d866dd | |
parent | d3cde2c16e3a95ff3082cb12f9c3dcf8053e37f3 (diff) | |
download | scummvm-rg350-c635f7c8d7baea6aa9475c8e7e60814face0743f.tar.gz scummvm-rg350-c635f7c8d7baea6aa9475c8e7e60814face0743f.tar.bz2 scummvm-rg350-c635f7c8d7baea6aa9475c8e7e60814face0743f.zip |
BLADERUNNER: Added AnsweringMachine actor
-rw-r--r-- | engines/bladerunner/module.mk | 1 | ||||
-rw-r--r-- | engines/bladerunner/script/ai/answering_machine.cpp | 123 | ||||
-rw-r--r-- | engines/bladerunner/script/ai_script.cpp | 1 | ||||
-rw-r--r-- | engines/bladerunner/script/ai_script.h | 3 |
4 files changed, 128 insertions, 0 deletions
diff --git a/engines/bladerunner/module.mk b/engines/bladerunner/module.mk index 9a23a2a229..cb96d362a7 100644 --- a/engines/bladerunner/module.mk +++ b/engines/bladerunner/module.mk @@ -50,6 +50,7 @@ MODULE_OBJS = \ script/vk_script.o \ script/esper_script.o \ script/ai_script.o \ + script/ai/answering_machine.o \ script/ai/baker.o \ script/ai/bryant.o \ script/ai/crazylegs.o \ diff --git a/engines/bladerunner/script/ai/answering_machine.cpp b/engines/bladerunner/script/ai/answering_machine.cpp new file mode 100644 index 0000000000..488de2ed11 --- /dev/null +++ b/engines/bladerunner/script/ai/answering_machine.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 { + +AIScriptAnsweringMachine::AIScriptAnsweringMachine(BladeRunnerEngine *vm) : AIScriptBase(vm) { +} + +void AIScriptAnsweringMachine::Initialize() { + _animationFrame = 0; + _animationState = 0; + _animationStateNext = 0; + _animationNext = 0; +} + +bool AIScriptAnsweringMachine::Update() { + return false; +} + +void AIScriptAnsweringMachine::TimerExpired(int timer) { + //return false; +} + +void AIScriptAnsweringMachine::CompletedMovementTrack() { + //return false; +} + +void AIScriptAnsweringMachine::ReceivedClue(int clueId, int fromActorId) { + //return false; +} + +void AIScriptAnsweringMachine::ClickedByPlayer() { + //return false; +} + +void AIScriptAnsweringMachine::EnteredScene(int sceneId) { + // return false; +} + +void AIScriptAnsweringMachine::OtherAgentEnteredThisScene(int otherActorId) { + // return false; +} + +void AIScriptAnsweringMachine::OtherAgentExitedThisScene(int otherActorId) { + // return false; +} + +void AIScriptAnsweringMachine::OtherAgentEnteredCombatMode(int otherActorId, int combatMode) { + // return false; +} + +void AIScriptAnsweringMachine::ShotAtAndMissed() { + // return false; +} + +bool AIScriptAnsweringMachine::ShotAtAndHit() { + return false; +} + +void AIScriptAnsweringMachine::Retired(int byActorId) { + // return false; +} + +int AIScriptAnsweringMachine::GetFriendlinessModifierIfGetsClue(int otherActorId, int clueId) { + return 0; +} + +bool AIScriptAnsweringMachine::GoalChanged(int currentGoalNumber, int newGoalNumber) { + return false; +} + +bool AIScriptAnsweringMachine::UpdateAnimation(int *animation, int *frame) { + return true; +} + +bool AIScriptAnsweringMachine::ChangeAnimationMode(int mode) { + return true; +} + +void AIScriptAnsweringMachine::QueryAnimationState(int *animationState, int *animationFrame, int *animationStateNext, int *animationNext) { + *animationState = _animationState; + *animationFrame = _animationFrame; + *animationStateNext = _animationStateNext; + *animationNext = _animationNext; +} + +void AIScriptAnsweringMachine::SetAnimationState(int animationState, int animationFrame, int animationStateNext, int animationNext) { + _animationState = animationState; + _animationFrame = animationFrame; + _animationStateNext = animationStateNext; + _animationNext = animationNext; +} + +bool AIScriptAnsweringMachine::ReachedMovementTrackWaypoint(int waypointId) { + return true; +} + +void AIScriptAnsweringMachine::FledCombat() { + // return false; +} + +} // End of namespace BladeRunner diff --git a/engines/bladerunner/script/ai_script.cpp b/engines/bladerunner/script/ai_script.cpp index fabe5a5e49..9e7b8b2573 100644 --- a/engines/bladerunner/script/ai_script.cpp +++ b/engines/bladerunner/script/ai_script.cpp @@ -65,6 +65,7 @@ AIScripts::AIScripts(BladeRunnerEngine *vm, int actorCount) { _AIScripts[kActorMoraji] = new AIScriptMoraji(_vm); // 35 _AIScripts[kActorTheBard] = new AIScriptTheBard(_vm); // 36 _AIScripts[kActorDispatcher] = new AIScriptDispatcher(_vm); // 38 + _AIScripts[kActorAnsweringMachine] = new AIScriptAnsweringMachine(_vm);// 39 _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 da66eae673..1b3c5fb91f 100644 --- a/engines/bladerunner/script/ai_script.h +++ b/engines/bladerunner/script/ai_script.h @@ -254,6 +254,9 @@ END_SCRIPT DECLARE_SCRIPT(TheBard) END_SCRIPT +DECLARE_SCRIPT(AnsweringMachine) +END_SCRIPT + DECLARE_SCRIPT(Dispatcher) END_SCRIPT |