From a02461fcb15da3b2e7e91d9cfb1bca559a1d277b Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 19 Mar 2015 19:49:42 -0400 Subject: SHERLOCK: Refactorings, new Sprite and People classes --- engines/sherlock/scene.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'engines/sherlock/scene.cpp') diff --git a/engines/sherlock/scene.cpp b/engines/sherlock/scene.cpp index de351a5561..84ef44d7e1 100644 --- a/engines/sherlock/scene.cpp +++ b/engines/sherlock/scene.cpp @@ -30,12 +30,27 @@ Scene::Scene(SherlockEngine *vm): _vm(vm) { _goToRoom = -1; _oldCharPoint = 0; _numExits = 0; + _windowOpen = _infoFlag = false; + _menuMode = _keyboardInput = 0; - _controlSprites = new Sprite("menu.all"); + _controls = nullptr; // new ImageFile("menu.all"); } Scene::~Scene() { - delete _controlSprites; + delete _controls; +} + +void Scene::selectScene() { + // Reset fields + _numExits = 0; + _windowOpen = _infoFlag = false; + _menuMode = _keyboardInput = 0; + _oldKey = _help = _oldHelp = 0; + _oldTemp = _temp = 0; + + // Set up player + + } } // End of namespace Sherlock -- cgit v1.2.3