diff options
author | Paul Gilbert | 2015-03-20 22:01:52 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-03-20 22:01:52 -0400 |
commit | f0ad2f624bddcc031c99a487bff1d5ec89956477 (patch) | |
tree | f296f220023cb9309102b4468a0b441ddb3751b1 /engines/sherlock/scalpel/scalpel.cpp | |
parent | cf92e540db2d58f243abe595da40a7da4450911f (diff) | |
download | scummvm-rg350-f0ad2f624bddcc031c99a487bff1d5ec89956477.tar.gz scummvm-rg350-f0ad2f624bddcc031c99a487bff1d5ec89956477.tar.bz2 scummvm-rg350-f0ad2f624bddcc031c99a487bff1d5ec89956477.zip |
SHERLOCK: More scene loading, implemented Inventory class
Diffstat (limited to 'engines/sherlock/scalpel/scalpel.cpp')
-rw-r--r-- | engines/sherlock/scalpel/scalpel.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/sherlock/scalpel/scalpel.cpp b/engines/sherlock/scalpel/scalpel.cpp index ca04153594..40ca9736d6 100644 --- a/engines/sherlock/scalpel/scalpel.cpp +++ b/engines/sherlock/scalpel/scalpel.cpp @@ -27,6 +27,18 @@ namespace Sherlock { namespace Scalpel { +#define NUM_PLACES 100 +const int MAP_X[NUM_PLACES] = { + 0, 368, 0, 219, 0, 282, 0, 43, 0, 0, 396, 408, 0, 0, 0, 568, 37, 325, + 28, 0, 263, 36, 148, 469, 342, 143, 443, 229, 298, 0, 157, 260, 432, + 174, 0, 351, 0, 528, 0, 136, 0, 0, 0, 555, 165, 0, 506, 0, 0, 344, 0, 0 +}; +const int MAP_Y[NUM_PLACES] = { + 0, 147, 0, 166, 0, 109, 0, 61, 0, 0, 264, 70, 0, 0, 0, 266, 341, 30, 275, + 0, 294, 146, 311, 230, 184, 268, 133, 94, 207, 0, 142, 142, 330, 255, 0, + 37, 0, 70, 0, 116, 0, 0, 0, 50, 21, 0, 303, 0, 0, 229, 0, 0 +}; + ScalpelEngine::ScalpelEngine(OSystem *syst, const SherlockGameDescription *gameDesc) : SherlockEngine(syst, gameDesc) { _chess = nullptr; @@ -53,6 +65,10 @@ void ScalpelEngine::initialize() { _flags[3] = true; // Turn on Alley _flags[39] = true; // Turn on Baker Street + // Load the map co-ordinates for each scene + for (int idx = 0; idx < NUM_PLACES; ++idx) + _map.push_back(Common::Point(MAP_X[idx], MAP_Y[idx])); + // Starting scene _scene->_goToRoom = 4; } |