2009-06-01 18:05:46 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2009-07-08 19:17:47 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2009-06-01 18:05:46 +00:00
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2009-06-12 14:19:33 +00:00
|
|
|
*
|
|
|
|
* $URL$
|
|
|
|
* $Id$
|
|
|
|
*
|
2009-06-01 18:05:46 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ASYLUM_ENGINE_H
|
|
|
|
#define ASYLUM_ENGINE_H
|
|
|
|
|
|
|
|
#include "engines/engine.h"
|
2009-06-13 14:44:43 +00:00
|
|
|
|
2009-06-21 12:09:44 +00:00
|
|
|
#include "asylum/console.h"
|
2009-06-15 14:10:14 +00:00
|
|
|
#include "asylum/scene.h"
|
2009-06-14 14:23:53 +00:00
|
|
|
#include "asylum/menu.h"
|
2009-06-13 23:03:37 +00:00
|
|
|
#include "asylum/screen.h"
|
|
|
|
#include "asylum/sound.h"
|
2009-06-13 23:16:07 +00:00
|
|
|
#include "asylum/video.h"
|
2009-07-09 02:14:07 +00:00
|
|
|
#include "asylum/scriptman.h"
|
2009-06-05 02:51:23 +00:00
|
|
|
|
2009-06-01 18:05:46 +00:00
|
|
|
namespace Asylum {
|
|
|
|
|
2009-06-21 12:09:44 +00:00
|
|
|
class Console;
|
2009-06-15 14:10:14 +00:00
|
|
|
class Scene;
|
2009-06-14 14:23:53 +00:00
|
|
|
class MainMenu;
|
2009-06-12 22:42:45 +00:00
|
|
|
class Scene;
|
2009-06-05 02:51:23 +00:00
|
|
|
class Screen;
|
2009-06-13 23:03:37 +00:00
|
|
|
class Sound;
|
2009-06-13 23:16:07 +00:00
|
|
|
class Video;
|
2009-07-06 23:35:54 +00:00
|
|
|
|
|
|
|
enum kDebugLevels {
|
2009-07-08 19:17:47 +00:00
|
|
|
kDebugLevelMain = 1 << 0,
|
2009-07-06 23:35:54 +00:00
|
|
|
kDebugLevelResources = 1 << 1,
|
|
|
|
kDebugLevelSprites = 1 << 2,
|
2009-07-08 19:17:47 +00:00
|
|
|
kDebugLevelInput = 1 << 3,
|
|
|
|
kDebugLevelMenu = 1 << 4,
|
2009-07-06 23:35:54 +00:00
|
|
|
kDebugLevelScripts = 1 << 5,
|
2009-07-08 19:17:47 +00:00
|
|
|
kDebugLevelSound = 1 << 6,
|
2009-07-06 23:35:54 +00:00
|
|
|
kDebugLevelSavegame = 1 << 7
|
|
|
|
};
|
2009-06-05 02:51:23 +00:00
|
|
|
|
2009-06-01 18:05:46 +00:00
|
|
|
class AsylumEngine: public Engine {
|
|
|
|
public:
|
|
|
|
|
2009-07-08 19:17:47 +00:00
|
|
|
AsylumEngine(OSystem *system, Common::Language language);
|
|
|
|
virtual ~AsylumEngine();
|
2009-06-05 02:51:23 +00:00
|
|
|
|
2009-07-08 19:17:47 +00:00
|
|
|
// Engine APIs
|
|
|
|
Common::Error init();
|
|
|
|
Common::Error go();
|
|
|
|
virtual Common::Error run();
|
|
|
|
virtual bool hasFeature(EngineFeature f) const;
|
2009-06-08 14:05:49 +00:00
|
|
|
|
2009-06-21 12:09:44 +00:00
|
|
|
private:
|
2009-06-13 19:38:25 +00:00
|
|
|
void checkForEvent(bool doUpdate);
|
2009-06-13 13:40:48 +00:00
|
|
|
void waitForTimer(int msec_delay);
|
2009-06-13 13:56:13 +00:00
|
|
|
void updateMouseCursor();
|
2009-07-09 11:23:42 +00:00
|
|
|
void processDelayedEvents();
|
2009-06-12 20:38:38 +00:00
|
|
|
|
2009-07-08 19:17:47 +00:00
|
|
|
Common::Language _language;
|
|
|
|
Common::RandomSource _rnd;
|
2009-06-05 02:51:23 +00:00
|
|
|
|
2009-07-08 19:17:47 +00:00
|
|
|
Console *_console;
|
|
|
|
Scene *_scene;
|
|
|
|
MainMenu *_mainMenu;
|
|
|
|
Screen *_screen;
|
|
|
|
Sound *_sound;
|
|
|
|
Video *_video;
|
2009-06-21 12:09:44 +00:00
|
|
|
|
|
|
|
friend class Console;
|
2009-06-01 18:05:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Asylum
|
|
|
|
|
|
|
|
#endif
|