diff options
Diffstat (limited to 'engines/bladerunner/settings.cpp')
-rw-r--r-- | engines/bladerunner/settings.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/engines/bladerunner/settings.cpp b/engines/bladerunner/settings.cpp index 7db1192c89..d0ba84321c 100644 --- a/engines/bladerunner/settings.cpp +++ b/engines/bladerunner/settings.cpp @@ -32,7 +32,12 @@ namespace BladeRunner { -Settings::Settings(BladeRunnerEngine *vm) : _vm(vm) { +Settings::Settings(BladeRunnerEngine *vm) { + _vm = vm; + + _difficulty = 1; + _playerAgenda = 1; + _chapter = 1; _gamma = 1.0f; @@ -46,6 +51,13 @@ Settings::Settings(BladeRunnerEngine *vm) : _vm(vm) { _fullHDFrames = true; _mst3k = false; + + _ammoType = 0; + _ammoAmounts[0] = 0; + _ammoAmounts[1] = 0; + _ammoAmounts[2] = 0; + + _learyMode = false; } bool Settings::openNewScene() { @@ -107,6 +119,12 @@ int Settings::getAmmoAmount(int ammoType) { return _ammoAmounts[ammoType]; } +void Settings::setAmmoType(int ammoType) { + if (_ammoAmounts[ammoType] > 0) { + _ammoType = ammoType; + } +} + void Settings::addAmmo(int ammoType, int ammo) { if (ammoType > _ammoType || _ammoAmounts[_ammoType] == 0) _ammoType = ammoType; |