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
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* 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-11 00:19:06 +00:00
|
|
|
#include "asylum/resman.h"
|
2009-06-12 20:38:38 +00:00
|
|
|
#include "graphics/surface.h"
|
2009-06-05 02:51:23 +00:00
|
|
|
|
2009-06-01 18:05:46 +00:00
|
|
|
namespace Asylum {
|
|
|
|
|
2009-06-12 17:34:06 +00:00
|
|
|
class ResourceManager;
|
2009-06-05 02:51:23 +00:00
|
|
|
class Screen;
|
2009-06-06 20:31:13 +00:00
|
|
|
class Menu;
|
2009-06-05 02:51:23 +00:00
|
|
|
|
2009-06-01 18:05:46 +00:00
|
|
|
class AsylumEngine: public Engine {
|
|
|
|
public:
|
|
|
|
|
2009-06-06 20:31:13 +00:00
|
|
|
AsylumEngine(OSystem *system, Common::Language language);
|
|
|
|
virtual ~AsylumEngine();
|
2009-06-05 02:51:23 +00:00
|
|
|
|
2009-06-06 20:31:13 +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-12 20:38:38 +00:00
|
|
|
void copyToBackBuffer(int x, int y, int width, int height, byte *buffer);
|
|
|
|
|
2009-06-01 18:05:46 +00:00
|
|
|
private:
|
2009-06-08 14:05:49 +00:00
|
|
|
Common::Language _language;
|
2009-06-06 20:31:13 +00:00
|
|
|
Common::RandomSource _rnd;
|
2009-06-05 02:51:23 +00:00
|
|
|
|
2009-06-08 14:05:49 +00:00
|
|
|
ResourceManager *_resMgr;
|
2009-06-12 20:38:38 +00:00
|
|
|
Graphics::Surface _backBuffer;
|
2009-06-08 14:05:49 +00:00
|
|
|
|
|
|
|
void showMainMenu();
|
|
|
|
|
2009-06-01 18:05:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Asylum
|
|
|
|
|
|
|
|
#endif
|