aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/script
diff options
context:
space:
mode:
authorEugene Sandulenko2018-03-12 20:35:36 +0100
committerEugene Sandulenko2018-03-12 20:35:36 +0100
commite1cd47baef55e6a97935f7e3babc5a1b6d602054 (patch)
tree95d1f81aa0762711e1a69c68a59a1f811b9c00bc /engines/bladerunner/script
parentb5887e17598e0fa1ab7bad5312767b0ab9eadd52 (diff)
downloadscummvm-rg350-e1cd47baef55e6a97935f7e3babc5a1b6d602054.tar.gz
scummvm-rg350-e1cd47baef55e6a97935f7e3babc5a1b6d602054.tar.bz2
scummvm-rg350-e1cd47baef55e6a97935f7e3babc5a1b6d602054.zip
BLADERUNNER: Added HawkersParrot actor
Diffstat (limited to 'engines/bladerunner/script')
-rw-r--r--engines/bladerunner/script/ai/hawkers_parrot.cpp123
-rw-r--r--engines/bladerunner/script/ai_script.cpp1
-rw-r--r--engines/bladerunner/script/ai_script.h3
3 files changed, 127 insertions, 0 deletions
diff --git a/engines/bladerunner/script/ai/hawkers_parrot.cpp b/engines/bladerunner/script/ai/hawkers_parrot.cpp
new file mode 100644
index 0000000000..539156893f
--- /dev/null
+++ b/engines/bladerunner/script/ai/hawkers_parrot.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 {
+
+AIScriptHawkersParrot::AIScriptHawkersParrot(BladeRunnerEngine *vm) : AIScriptBase(vm) {
+}
+
+void AIScriptHawkersParrot::Initialize() {
+ _animationFrame = 0;
+ _animationState = 0;
+ _animationStateNext = 0;
+ _animationNext = 0;
+}
+
+bool AIScriptHawkersParrot::Update() {
+ return false;
+}
+
+void AIScriptHawkersParrot::TimerExpired(int timer) {
+ //return false;
+}
+
+void AIScriptHawkersParrot::CompletedMovementTrack() {
+ //return false;
+}
+
+void AIScriptHawkersParrot::ReceivedClue(int clueId, int fromActorId) {
+ //return false;
+}
+
+void AIScriptHawkersParrot::ClickedByPlayer() {
+ //return false;
+}
+
+void AIScriptHawkersParrot::EnteredScene(int sceneId) {
+ // return false;
+}
+
+void AIScriptHawkersParrot::OtherAgentEnteredThisScene(int otherActorId) {
+ // return false;
+}
+
+void AIScriptHawkersParrot::OtherAgentExitedThisScene(int otherActorId) {
+ // return false;
+}
+
+void AIScriptHawkersParrot::OtherAgentEnteredCombatMode(int otherActorId, int combatMode) {
+ // return false;
+}
+
+void AIScriptHawkersParrot::ShotAtAndMissed() {
+ // return false;
+}
+
+bool AIScriptHawkersParrot::ShotAtAndHit() {
+ return false;
+}
+
+void AIScriptHawkersParrot::Retired(int byActorId) {
+ // return false;
+}
+
+int AIScriptHawkersParrot::GetFriendlinessModifierIfGetsClue(int otherActorId, int clueId) {
+ return 0;
+}
+
+bool AIScriptHawkersParrot::GoalChanged(int currentGoalNumber, int newGoalNumber) {
+ return false;
+}
+
+bool AIScriptHawkersParrot::UpdateAnimation(int *animation, int *frame) {
+ return true;
+}
+
+bool AIScriptHawkersParrot::ChangeAnimationMode(int mode) {
+ return true;
+}
+
+void AIScriptHawkersParrot::QueryAnimationState(int *animationState, int *animationFrame, int *animationStateNext, int *animationNext) {
+ *animationState = _animationState;
+ *animationFrame = _animationFrame;
+ *animationStateNext = _animationStateNext;
+ *animationNext = _animationNext;
+}
+
+void AIScriptHawkersParrot::SetAnimationState(int animationState, int animationFrame, int animationStateNext, int animationNext) {
+ _animationState = animationState;
+ _animationFrame = animationFrame;
+ _animationStateNext = animationStateNext;
+ _animationNext = animationNext;
+}
+
+bool AIScriptHawkersParrot::ReachedMovementTrackWaypoint(int waypointId) {
+ return true;
+}
+
+void AIScriptHawkersParrot::FledCombat() {
+ // return false;
+}
+
+} // End of namespace BladeRunner
diff --git a/engines/bladerunner/script/ai_script.cpp b/engines/bladerunner/script/ai_script.cpp
index f5a0eb6aca..3aa3d88b8a 100644
--- a/engines/bladerunner/script/ai_script.cpp
+++ b/engines/bladerunner/script/ai_script.cpp
@@ -69,6 +69,7 @@ AIScripts::AIScripts(BladeRunnerEngine *vm, int actorCount) {
_AIScripts[kActorRajif] = new AIScriptRajif(_vm); // 40
_AIScripts[kActorGovernorKolvig] = new AIScriptGovernorKolvig(_vm); // 41
_AIScripts[kActorEarlyQBartender] = new AIScriptEarlyQBartender(_vm); // 42
+ _AIScripts[kActorHawkersParrot] = new AIScriptHawkersParrot(_vm); // 43
_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 00aad72702..29ebaab43e 100644
--- a/engines/bladerunner/script/ai_script.h
+++ b/engines/bladerunner/script/ai_script.h
@@ -272,6 +272,9 @@ DECLARE_SCRIPT(EarlyQBartender)
bool _flag;
END_SCRIPT
+DECLARE_SCRIPT(HawkersParrot)
+END_SCRIPT
+
DECLARE_SCRIPT(HysteriaPatron1)
END_SCRIPT