2009-02-16 01:58:30 +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-02-17 15:20:21 +00:00
|
|
|
* $URL$
|
|
|
|
* $Id$
|
2009-02-16 01:58:30 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2009-02-15 06:10:59 +00:00
|
|
|
#ifndef SCI_H
|
|
|
|
#define SCI_H
|
|
|
|
|
|
|
|
#include "engines/engine.h"
|
|
|
|
|
2009-02-20 14:45:28 +00:00
|
|
|
namespace Sci {
|
2009-02-15 06:10:59 +00:00
|
|
|
|
|
|
|
// our engine debug levels
|
2009-02-20 20:11:12 +00:00
|
|
|
enum kDebugLevels {
|
|
|
|
kDebugLevelError = 1 << 0,
|
|
|
|
kDebugLevelNodes = 1 << 1,
|
|
|
|
kDebugLevelGraphics = 1 << 2,
|
|
|
|
kDebugLevelStrings = 1 << 3,
|
|
|
|
kDebugLevelMem = 1 << 4,
|
|
|
|
kDebugLevelFuncCheck = 1 << 5,
|
|
|
|
kDebugLevelBresen = 1 << 6,
|
|
|
|
kDebugLevelSound = 1 << 7,
|
|
|
|
kDebugLevelGfxDriver = 1 << 8,
|
|
|
|
kDebugLevelBaseSetter = 1 << 9,
|
|
|
|
kDebugLevelParser = 1 << 10,
|
|
|
|
kDebugLevelMenu = 1 << 11,
|
|
|
|
kDebugLevelSaid = 1 << 12,
|
|
|
|
kDebugLevelFile = 1 << 13,
|
|
|
|
kDebugLevelTime = 1 << 14,
|
|
|
|
kDebugLevelRoom = 1 << 15,
|
|
|
|
kDebugLevelEmu = 1 << 16,
|
|
|
|
kDebugLevelAvoidPath = 1 << 17
|
2009-02-15 06:10:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct GameFlags {
|
|
|
|
//int gameType;
|
|
|
|
//int gameId;
|
|
|
|
//uint32 features;
|
|
|
|
// SCI Version
|
|
|
|
// Resource Map Version
|
|
|
|
// etc...
|
|
|
|
};
|
|
|
|
|
|
|
|
struct SciGameDescription {
|
2009-02-15 08:20:53 +00:00
|
|
|
ADGameDescription desc;
|
2009-02-15 06:10:59 +00:00
|
|
|
GameFlags flags;
|
2009-02-18 09:09:37 +00:00
|
|
|
int version;
|
2009-02-15 06:10:59 +00:00
|
|
|
};
|
|
|
|
|
2009-02-20 21:26:31 +00:00
|
|
|
class Console;
|
2009-02-15 06:10:59 +00:00
|
|
|
|
|
|
|
class SciEngine : public Engine {
|
2009-02-15 22:43:13 +00:00
|
|
|
public:
|
|
|
|
SciEngine(OSystem *syst, const SciGameDescription *desc);
|
|
|
|
~SciEngine();
|
2009-02-15 06:10:59 +00:00
|
|
|
|
2009-02-15 22:43:13 +00:00
|
|
|
virtual Common::Error init(void);
|
|
|
|
virtual Common::Error go(void);
|
2009-02-18 20:08:49 +00:00
|
|
|
|
|
|
|
const char* getGameID() const;
|
2009-02-19 02:04:31 +00:00
|
|
|
int getVersion() const;
|
2009-02-18 20:08:49 +00:00
|
|
|
Common::Language getLanguage() const;
|
|
|
|
Common::Platform getPlatform() const;
|
|
|
|
uint32 getFlags() const;
|
|
|
|
|
2009-02-15 22:43:13 +00:00
|
|
|
private:
|
2009-02-20 14:45:28 +00:00
|
|
|
const SciGameDescription *_gameDescription;
|
2009-02-20 21:26:31 +00:00
|
|
|
Console *_console;
|
2009-02-15 06:10:59 +00:00
|
|
|
};
|
|
|
|
|
2009-02-20 14:45:28 +00:00
|
|
|
} // End of namespace Sci
|
2009-02-15 06:10:59 +00:00
|
|
|
|
|
|
|
#endif // SCI_H
|