[Scummvm-git-logs] scummvm master -> 31bf086186e3bd1747f9cff1e974a22513cadbab

sev- sev at scummvm.org
Sun Mar 11 22:26:50 CET 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
31bf086186 BLADERUNNER: Added GovernorKolvig actor


Commit: 31bf086186e3bd1747f9cff1e974a22513cadbab
    https://github.com/scummvm/scummvm/commit/31bf086186e3bd1747f9cff1e974a22513cadbab
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2018-03-11T22:26:33+01:00

Commit Message:
BLADERUNNER: Added GovernorKolvig actor

Changed paths:
  A engines/bladerunner/script/ai/governor_kolvig.cpp
    engines/bladerunner/module.mk
    engines/bladerunner/script/ai_script.cpp
    engines/bladerunner/script/ai_script.h


diff --git a/engines/bladerunner/module.mk b/engines/bladerunner/module.mk
index cba0edf..43519ab 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 0000000..f0d05ee
--- /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 b987236..caf9d8b 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 d2ce59f..5d679c2 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
 





More information about the Scummvm-git-logs mailing list