diff options
author | Eugene Sandulenko | 2018-03-11 22:01:37 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-03-11 22:21:30 +0100 |
commit | b530bd38dff3c789be21f294cf8561ef52fd4e90 (patch) | |
tree | 5f90dd883ce8be9fcd947ae1c402f0d73de05b8c /engines/bladerunner | |
parent | edaeb0f105e7a12c19db01cf897a89d4fba985f5 (diff) | |
download | scummvm-rg350-b530bd38dff3c789be21f294cf8561ef52fd4e90.tar.gz scummvm-rg350-b530bd38dff3c789be21f294cf8561ef52fd4e90.tar.bz2 scummvm-rg350-b530bd38dff3c789be21f294cf8561ef52fd4e90.zip |
BLADERUNNER: Added TheBard actor
Diffstat (limited to 'engines/bladerunner')
-rw-r--r-- | engines/bladerunner/module.mk | 1 | ||||
-rw-r--r-- | engines/bladerunner/script/ai/the_bard.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 0874770276..3de756e1ca 100644 --- a/engines/bladerunner/module.mk +++ b/engines/bladerunner/module.mk @@ -84,6 +84,7 @@ MODULE_OBJS = \ script/ai/sergeant_walls.o \ script/ai/shoeshine_man.o \ script/ai/steele.o \ + script/ai/the_bard.o \ script/ai/transient.o \ script/ai/tyrell_guard.o \ script/ai/zuben.o \ diff --git a/engines/bladerunner/script/ai/the_bard.cpp b/engines/bladerunner/script/ai/the_bard.cpp new file mode 100644 index 0000000000..abbd3b4d28 --- /dev/null +++ b/engines/bladerunner/script/ai/the_bard.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 { + +AIScriptTheBard::AIScriptTheBard(BladeRunnerEngine *vm) : AIScriptBase(vm) { +} + +void AIScriptTheBard::Initialize() { + _animationFrame = 0; + _animationState = 0; + _animationStateNext = 0; + _animationNext = 0; +} + +bool AIScriptTheBard::Update() { + return false; +} + +void AIScriptTheBard::TimerExpired(int timer) { + //return false; +} + +void AIScriptTheBard::CompletedMovementTrack() { + //return false; +} + +void AIScriptTheBard::ReceivedClue(int clueId, int fromActorId) { + //return false; +} + +void AIScriptTheBard::ClickedByPlayer() { + //return false; +} + +void AIScriptTheBard::EnteredScene(int sceneId) { + // return false; +} + +void AIScriptTheBard::OtherAgentEnteredThisScene(int otherActorId) { + // return false; +} + +void AIScriptTheBard::OtherAgentExitedThisScene(int otherActorId) { + // return false; +} + +void AIScriptTheBard::OtherAgentEnteredCombatMode(int otherActorId, int combatMode) { + // return false; +} + +void AIScriptTheBard::ShotAtAndMissed() { + // return false; +} + +bool AIScriptTheBard::ShotAtAndHit() { + return false; +} + +void AIScriptTheBard::Retired(int byActorId) { + // return false; +} + +int AIScriptTheBard::GetFriendlinessModifierIfGetsClue(int otherActorId, int clueId) { + return 0; +} + +bool AIScriptTheBard::GoalChanged(int currentGoalNumber, int newGoalNumber) { + return false; +} + +bool AIScriptTheBard::UpdateAnimation(int *animation, int *frame) { + return true; +} + +bool AIScriptTheBard::ChangeAnimationMode(int mode) { + return true; +} + +void AIScriptTheBard::QueryAnimationState(int *animationState, int *animationFrame, int *animationStateNext, int *animationNext) { + *animationState = _animationState; + *animationFrame = _animationFrame; + *animationStateNext = _animationStateNext; + *animationNext = _animationNext; +} + +void AIScriptTheBard::SetAnimationState(int animationState, int animationFrame, int animationStateNext, int animationNext) { + _animationState = animationState; + _animationFrame = animationFrame; + _animationStateNext = animationStateNext; + _animationNext = animationNext; +} + +bool AIScriptTheBard::ReachedMovementTrackWaypoint(int waypointId) { + return true; +} + +void AIScriptTheBard::FledCombat() { + // return false; +} + +} // End of namespace BladeRunner diff --git a/engines/bladerunner/script/ai_script.cpp b/engines/bladerunner/script/ai_script.cpp index 7034fa9a27..5f8102bd78 100644 --- a/engines/bladerunner/script/ai_script.cpp +++ b/engines/bladerunner/script/ai_script.cpp @@ -63,6 +63,7 @@ AIScripts::AIScripts(BladeRunnerEngine *vm, int actorCount) { _AIScripts[kActorHawkersBarkeep] = new AIScriptHawkersBarkeep(_vm); // 32 _AIScripts[kActorSergeantWalls] = new AIScriptSergeantWalls(_vm); // 34 _AIScripts[kActorMoraji] = new AIScriptMoraji(_vm); // 35 + _AIScripts[kActorTheBard] = new AIScriptTheBard(_vm); // 36 _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 f7d5370ebb..2d7a62f6b3 100644 --- a/engines/bladerunner/script/ai_script.h +++ b/engines/bladerunner/script/ai_script.h @@ -251,6 +251,9 @@ DECLARE_SCRIPT(Moraji) int _var2; END_SCRIPT +DECLARE_SCRIPT(TheBard) +END_SCRIPT + DECLARE_SCRIPT(HysteriaPatron1) END_SCRIPT |