Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BLADERUNNER: Init globals, game flags, and actor clues
- Loading branch information
Showing
13 changed files
with
1,543 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* 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/clues.h" | ||
|
||
#include "bladerunner/bladerunner.h" | ||
#include "bladerunner/text_resource.h" | ||
|
||
namespace BladeRunner { | ||
|
||
Clues::Clues(BladeRunnerEngine *vm, const char *cluesResource, uint32 clueCount) | ||
: _clueCount(clueCount) | ||
{ | ||
// reset(); | ||
|
||
_crimes = new int[_clueCount]; | ||
_assetTypes = new int[_clueCount]; | ||
|
||
_cluesText = new TextResource(vm); | ||
_cluesText->open(cluesResource); | ||
|
||
for (uint32 i = 0; i != _clueCount; ++i) { | ||
_crimes[i] = -1; | ||
_assetTypes[i] = -1; | ||
} | ||
} | ||
|
||
Clues::~Clues() { | ||
delete[] _assetTypes; | ||
delete[] _crimes; | ||
} | ||
|
||
const char *Clues::getClueText(int id) { | ||
return _cluesText->getText(id); | ||
} | ||
|
||
} // End of namespace BladeRunner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* 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_CLUES_H | ||
#define BLADERUNNER_CLUES_H | ||
|
||
#include "common/scummsys.h" | ||
|
||
namespace BladeRunner { | ||
|
||
class BladeRunnerEngine; | ||
class TextResource; | ||
|
||
class Clues { | ||
uint32 _clueCount; | ||
int *_crimes; | ||
int *_assetTypes; | ||
TextResource *_cluesText; | ||
|
||
public: | ||
Clues(BladeRunnerEngine *vm, const char *cluesResource, uint32 clueCount); | ||
~Clues(); | ||
|
||
const char *getClueText(int id); | ||
}; | ||
|
||
} // End of namespace BladeRunner | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.