Skip to content

Commit

Permalink
BLADERUNNER: Stub out init script
Browse files Browse the repository at this point in the history
  • Loading branch information
madmoose authored and sev- committed Sep 29, 2016
1 parent abf98fc commit b83daef
Show file tree
Hide file tree
Showing 6 changed files with 631 additions and 36 deletions.
4 changes: 4 additions & 0 deletions engines/bladerunner/bladerunner.cpp
Expand Up @@ -31,6 +31,7 @@
#include "bladerunner/image.h"
#include "bladerunner/outtake.h"
#include "bladerunner/scene.h"
#include "bladerunner/script/init.h"
#include "bladerunner/script/script.h"
#include "bladerunner/settings.h"
#include "bladerunner/slice_animations.h"
Expand Down Expand Up @@ -163,6 +164,9 @@ bool BladeRunnerEngine::startup() {
_zBuffer1 = new uint16[640 * 480];
_zBuffer2 = new uint16[640 * 480];

ScriptInit initScript(this);
initScript.SCRIPT_Initialize_Game();

initChapterAndScene();

return true;
Expand Down
1 change: 1 addition & 0 deletions engines/bladerunner/module.mk
Expand Up @@ -17,6 +17,7 @@ MODULE_OBJS = \
matrix.o \
outtake.o \
scene.o \
script/init.o \
script/rc01.o \
script/script.o \
set.o \
Expand Down
127 changes: 127 additions & 0 deletions engines/bladerunner/script/init.cpp
@@ -0,0 +1,127 @@
/* 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/init.h"

#include "bladerunner/bladerunner.h"

namespace BladeRunner {

void ScriptInit::SCRIPT_Initialize_Game() {
Assign_Player_Gun_Hit_Sounds(0, 517, 518, 519);
Assign_Player_Gun_Hit_Sounds(1, 520, 521, 522);
Assign_Player_Gun_Hit_Sounds(2, 523, 524, 525);

Assign_Player_Gun_Miss_Sounds(0, 526, 527, 528);
Assign_Player_Gun_Miss_Sounds(1, 529, 530, 531);
Assign_Player_Gun_Miss_Sounds(2, 532, 533, 534);

Init_Globals();
Init_Game_Flags();
Init_Clues();
Init_Clues2();
Init_World_Waypoints();
Init_SDB();
Init_CDB();
Init_Spinner();
Init_Actor_Friendliness();
Init_Combat_Aggressiveness();
Init_Actor_Honesty();
Init_Actor_Intelligence();
Init_Actor_Stability();
Init_Actor_Health();
Init_Combat_Cover_Waypoints();
Init_Combat_Flee_Waypoints();
Init_Shadows();
}

void ScriptInit::Init_Globals() {

}

void ScriptInit::Init_Game_Flags() {

}

void ScriptInit::Init_Clues() {

}

void ScriptInit::Init_Clues2() {

}

void ScriptInit::Init_World_Waypoints() {

}

void ScriptInit::Init_SDB() {

}

void ScriptInit::Init_CDB() {

}

void ScriptInit::Init_Spinner() {

}

void ScriptInit::Init_Actor_Friendliness() {

}

void ScriptInit::Init_Combat_Aggressiveness() {

}

void ScriptInit::Init_Actor_Honesty() {

}

void ScriptInit::Init_Actor_Intelligence() {

}

void ScriptInit::Init_Actor_Stability() {

}

void ScriptInit::Init_Actor_Health() {

}

void ScriptInit::Init_Combat_Cover_Waypoints() {

}

void ScriptInit::Init_Combat_Flee_Waypoints() {

}

void ScriptInit::Init_Shadows() {

}



} // End of namespace BladeRunner
62 changes: 62 additions & 0 deletions engines/bladerunner/script/init.h
@@ -0,0 +1,62 @@
/* 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.
*
*/

#ifndef BLADERUNNER_SCRIPT_INIT_H
#define BLADERUNNER_SCRIPT_INIT_H

#include "bladerunner/script/script.h"

namespace BladeRunner {

class BladeRunnerEngine;

class ScriptInit : ScriptBase {
public:
ScriptInit(BladeRunnerEngine *vm)
: ScriptBase(vm)
{}

void SCRIPT_Initialize_Game();

private:
void Init_Globals();
void Init_Game_Flags();
void Init_Clues();
void Init_Clues2();
void Init_World_Waypoints();
void Init_SDB();
void Init_CDB();
void Init_Spinner();
void Init_Actor_Friendliness();
void Init_Combat_Aggressiveness();
void Init_Actor_Honesty();
void Init_Actor_Intelligence();
void Init_Actor_Stability();
void Init_Actor_Health();
void Init_Combat_Cover_Waypoints();
void Init_Combat_Flee_Waypoints();
void Init_Shadows();
};

} // End of namespace BladeRunner

#endif

0 comments on commit b83daef

Please sign in to comment.