diff options
author | Paul Gilbert | 2011-09-04 19:11:59 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-09-04 19:11:59 +1000 |
commit | b893f9f93f58413bd45daec5d4b88a0ca4bb5db1 (patch) | |
tree | 4260042a43c56bdcf2d851b639bc0c9ab449c46b /engines/tsage/globals.cpp | |
parent | 7f5f9c9f91eb8cd52ebcffe208d0e778f8ff6448 (diff) | |
download | scummvm-rg350-b893f9f93f58413bd45daec5d4b88a0ca4bb5db1.tar.gz scummvm-rg350-b893f9f93f58413bd45daec5d4b88a0ca4bb5db1.tar.bz2 scummvm-rg350-b893f9f93f58413bd45daec5d4b88a0ca4bb5db1.zip |
TSAGE: Implemented missing interface functionality, including gun loading dialog
Diffstat (limited to 'engines/tsage/globals.cpp')
-rw-r--r-- | engines/tsage/globals.cpp | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/engines/tsage/globals.cpp b/engines/tsage/globals.cpp index ebad77abc4..9d48fa508d 100644 --- a/engines/tsage/globals.cpp +++ b/engines/tsage/globals.cpp @@ -184,26 +184,42 @@ void Globals::dispatchSounds() { namespace BlueForce { BlueForceGlobals::BlueForceGlobals(): Globals() { +} + +void BlueForceGlobals::synchronize(Serializer &s) { + Globals::synchronize(s); + error("Sync variables"); +} + +void BlueForceGlobals::reset() { + Globals::reset(); + _scenePalette.clearListeners(); + + _scrollFollower = &_player; + _bookmark = bNone; + + // Reset the inventory + ((BlueForceInvObjectList *)_inventory)->reset(); + BF_GLOBALS._uiElements.updateInventory(); + BF_GLOBALS._uiElements._scoreValue = 0; + + _mapLocationId = 1; + _driveFromScene = 300; + _driveToScene = 0; + _interfaceY = 0; _v51C44 = 1; - _dayNumber = 1; + _dayNumber = 0; _v4CEA4 = 0; _v4CEA8 = 0; _v4CEB8 = 0; _v4CEBA = 0; - _driveFromScene = 0; - _driveToScene = 0; _v4CF9E = 0; _v4E238 = 0; _v501FC = 0; _v51C42 = 0; - _bookmark = bNone; - _mapLocationId = 1; -} - -void BlueForceGlobals::synchronize(Serializer &s) { - Globals::synchronize(s); - error("Sync variables"); + _clip1Frame = 8; + _clip2Frame = 8; } } // end of namespace BlueForce |