2010-07-31 06:23:38 +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.
|
|
|
|
*
|
|
|
|
* $URL$
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SWORD25_H
|
|
|
|
#define SWORD25_H
|
|
|
|
|
|
|
|
#include "common/scummsys.h"
|
|
|
|
#include "common/str-array.h"
|
|
|
|
#include "common/util.h"
|
|
|
|
#include "engines/engine.h"
|
|
|
|
|
2010-11-10 04:30:24 +00:00
|
|
|
#include "sword25/console.h"
|
2010-07-31 06:23:38 +00:00
|
|
|
|
2010-08-16 15:16:36 +00:00
|
|
|
struct ADGameDescription;
|
|
|
|
|
2010-10-15 12:28:56 +00:00
|
|
|
/**
|
|
|
|
* This is the namespace of the Sword25 engine.
|
|
|
|
*
|
|
|
|
* Status of this engine: ???
|
|
|
|
*
|
2010-10-15 12:48:19 +00:00
|
|
|
* Games using this engine:
|
|
|
|
* - Broken Sword 2.5
|
2010-10-15 12:28:56 +00:00
|
|
|
*/
|
2010-07-31 06:23:38 +00:00
|
|
|
namespace Sword25 {
|
|
|
|
|
|
|
|
enum {
|
|
|
|
kFileTypeHash = 0
|
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
2010-09-18 09:43:20 +00:00
|
|
|
kDebugScript = 1 << 0,
|
2011-01-23 14:49:50 +00:00
|
|
|
kDebugSound = 1 << 1,
|
|
|
|
kDebugResource = 1 << 2
|
2010-07-31 06:23:38 +00:00
|
|
|
};
|
|
|
|
|
2010-08-16 15:16:36 +00:00
|
|
|
enum GameFlags {
|
|
|
|
GF_EXTRACTED = 1 << 0
|
|
|
|
};
|
|
|
|
|
2010-07-31 06:23:38 +00:00
|
|
|
#define MESSAGE_BASIC 1
|
|
|
|
#define MESSAGE_INTERMEDIATE 2
|
|
|
|
#define MESSAGE_DETAILED 3
|
|
|
|
|
|
|
|
class Sword25Engine : public Engine {
|
|
|
|
private:
|
2010-09-25 19:48:26 +00:00
|
|
|
Common::Error appStart();
|
|
|
|
bool appMain();
|
|
|
|
bool appEnd();
|
|
|
|
|
|
|
|
bool loadPackages();
|
2010-07-31 06:23:38 +00:00
|
|
|
|
2010-11-10 04:30:24 +00:00
|
|
|
Sword25Console *_console;
|
|
|
|
|
2010-07-31 06:23:38 +00:00
|
|
|
protected:
|
|
|
|
virtual Common::Error run();
|
2010-10-25 22:41:48 +00:00
|
|
|
bool hasFeature(EngineFeature f) const;
|
|
|
|
// void pauseEngineIntern(bool pause); // TODO: Implement this!!!
|
|
|
|
// void syncSoundSettings(); // TODO: Implement this!!!
|
|
|
|
// Common::Error loadGameState(int slot); // TODO: Implement this?
|
|
|
|
// Common::Error saveGameState(int slot, const char *desc); // TODO: Implement this?
|
|
|
|
// bool canLoadGameStateCurrently(); // TODO: Implement this?
|
|
|
|
// bool canSaveGameStateCurrently(); // TODO: Implement this?
|
|
|
|
|
2010-11-10 04:30:24 +00:00
|
|
|
GUI::Debugger *getDebugger() { return _console; }
|
|
|
|
|
2010-07-31 06:23:38 +00:00
|
|
|
void shutdown();
|
2010-08-06 13:13:25 +00:00
|
|
|
|
2010-07-31 06:23:38 +00:00
|
|
|
public:
|
2010-08-16 15:16:36 +00:00
|
|
|
Sword25Engine(OSystem *syst, const ADGameDescription *gameDesc);
|
2010-07-31 06:23:38 +00:00
|
|
|
virtual ~Sword25Engine();
|
|
|
|
|
2010-08-16 15:16:36 +00:00
|
|
|
uint32 getGameFlags() const;
|
2010-07-31 06:23:38 +00:00
|
|
|
|
2010-08-16 15:16:36 +00:00
|
|
|
const ADGameDescription *_gameDescription;
|
2010-07-31 06:23:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // End of namespace Sword25
|
|
|
|
|
|
|
|
#endif
|