diff options
Diffstat (limited to 'engines/sherlock/map.cpp')
-rw-r--r-- | engines/sherlock/map.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/sherlock/map.cpp b/engines/sherlock/map.cpp index 028b387c2f..3f9c9f5e75 100644 --- a/engines/sherlock/map.cpp +++ b/engines/sherlock/map.cpp @@ -20,9 +20,11 @@ * */ +#include "common/system.h" #include "sherlock/map.h" #include "sherlock/sherlock.h" -#include "common/system.h" +#include "sherlock/scalpel/scalpel_map.h" +#include "sherlock/tattoo/tattoo_map.h" namespace Sherlock { @@ -51,6 +53,13 @@ const byte *MapPaths::getPath(int srcLocation, int destLocation) { /*----------------------------------------------------------------*/ +Map *Map::init(SherlockEngine *vm) { + if (vm->getGameID() == GType_SerratedScalpel) + return new Scalpel::ScalpelMap(vm); + else + return new Tattoo::TattooMap(vm); +} + Map::Map(SherlockEngine *vm): _vm(vm), _topLine(g_system->getWidth(), 12, vm->getPlatform()) { _active = false; _mapCursors = nullptr; |