2003-09-28 15:50:47 +00:00
|
|
|
/* ScummVM - Scumm Interpreter
|
2004-01-06 12:45:34 +00:00
|
|
|
* Copyright (C) 2003-2004 The ScummVM project
|
2003-09-28 15:50:47 +00:00
|
|
|
*
|
|
|
|
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* $Header$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QUEEN_H
|
|
|
|
#define QUEEN_H
|
|
|
|
|
|
|
|
#include "base/engine.h"
|
|
|
|
|
2003-11-10 01:04:12 +00:00
|
|
|
class GameDetector;
|
|
|
|
|
2003-10-03 19:47:41 +00:00
|
|
|
namespace Queen {
|
|
|
|
|
2003-12-19 09:22:20 +00:00
|
|
|
class BamScene;
|
2004-01-05 13:40:28 +00:00
|
|
|
class BankManager;
|
2003-12-11 22:16:35 +00:00
|
|
|
class Command;
|
2003-12-26 12:58:27 +00:00
|
|
|
class Debugger;
|
2003-12-11 22:16:35 +00:00
|
|
|
class Display;
|
2003-10-11 10:24:12 +00:00
|
|
|
class Graphics;
|
2003-10-23 06:44:35 +00:00
|
|
|
class Input;
|
2003-10-05 16:07:07 +00:00
|
|
|
class Logic;
|
2003-12-14 00:33:21 +00:00
|
|
|
class Music;
|
2003-12-11 22:16:35 +00:00
|
|
|
class Resource;
|
2003-10-21 12:29:37 +00:00
|
|
|
class Sound;
|
2003-12-11 22:16:35 +00:00
|
|
|
class Walk;
|
2003-09-28 15:50:47 +00:00
|
|
|
|
|
|
|
class QueenEngine : public Engine {
|
|
|
|
public:
|
2003-12-03 10:33:01 +00:00
|
|
|
|
2003-09-28 15:50:47 +00:00
|
|
|
QueenEngine(GameDetector *detector, OSystem *syst);
|
|
|
|
virtual ~QueenEngine();
|
|
|
|
|
2003-12-19 09:22:20 +00:00
|
|
|
BamScene *bam() const { return _bam; }
|
2004-01-05 13:40:28 +00:00
|
|
|
BankManager *bankMan() const { return _bankMan; }
|
2003-12-11 22:16:35 +00:00
|
|
|
Command *command() const { return _command; }
|
2003-12-26 12:58:27 +00:00
|
|
|
Debugger *debugger() const { return _debugger; }
|
2003-12-11 22:16:35 +00:00
|
|
|
Display *display() const { return _display; }
|
|
|
|
Graphics *graphics() const { return _graphics; }
|
|
|
|
Input *input() const { return _input; }
|
|
|
|
Logic *logic() const { return _logic; }
|
2003-12-14 00:33:21 +00:00
|
|
|
Music *music() const { return _music; }
|
2003-12-11 22:16:35 +00:00
|
|
|
Resource *resource() const { return _resource; }
|
|
|
|
Sound *sound() const { return _sound; }
|
|
|
|
Walk *walk() const { return _walk; }
|
|
|
|
|
|
|
|
Common::RandomSource randomizer;
|
|
|
|
|
2004-01-06 16:53:35 +00:00
|
|
|
void registerDefaultSettings();
|
|
|
|
void checkOptionSettings();
|
|
|
|
void readOptionSettings();
|
|
|
|
void writeOptionSettings();
|
|
|
|
|
2003-09-28 15:50:47 +00:00
|
|
|
protected:
|
|
|
|
|
2003-12-03 10:33:01 +00:00
|
|
|
void errorString(const char *buf_input, char *buf_output);
|
2003-09-28 15:50:47 +00:00
|
|
|
|
2003-12-03 10:33:01 +00:00
|
|
|
void go();
|
|
|
|
|
2003-09-28 15:50:47 +00:00
|
|
|
void initialise();
|
|
|
|
|
2004-01-06 16:53:35 +00:00
|
|
|
|
2003-10-20 20:12:59 +00:00
|
|
|
static void timerHandler(void *ptr);
|
|
|
|
void gotTimerTick();
|
2003-12-03 10:33:01 +00:00
|
|
|
|
2003-12-19 09:22:20 +00:00
|
|
|
BamScene *_bam;
|
2004-01-05 13:40:28 +00:00
|
|
|
BankManager *_bankMan;
|
2003-12-11 22:16:35 +00:00
|
|
|
Command *_command;
|
2003-12-26 12:58:27 +00:00
|
|
|
Debugger *_debugger;
|
2003-12-11 22:16:35 +00:00
|
|
|
Display *_display;
|
2003-12-03 10:33:01 +00:00
|
|
|
Graphics *_graphics;
|
|
|
|
Input *_input;
|
|
|
|
Logic *_logic;
|
2003-12-14 00:33:21 +00:00
|
|
|
Music *_music;
|
2003-12-11 22:16:35 +00:00
|
|
|
Resource *_resource;
|
2003-12-03 10:33:01 +00:00
|
|
|
Sound *_sound;
|
2003-12-11 22:16:35 +00:00
|
|
|
Walk *_walk;
|
2003-09-28 15:50:47 +00:00
|
|
|
};
|
|
|
|
|
2003-10-03 19:47:41 +00:00
|
|
|
} // End of namespace Queen
|
|
|
|
|
2003-09-28 15:50:47 +00:00
|
|
|
#endif
|