2012-04-19 16:48:48 +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.
|
2012-05-11 14:03:59 +00:00
|
|
|
|
2012-04-19 16:48:48 +00:00
|
|
|
* 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.
|
2012-05-11 14:03:59 +00:00
|
|
|
|
2012-04-19 16:48:48 +00:00
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WINTERMUTE_H
|
|
|
|
#define WINTERMUTE_H
|
|
|
|
|
|
|
|
#include "common/random.h"
|
|
|
|
#include "engines/engine.h"
|
|
|
|
#include "gui/debugger.h"
|
|
|
|
|
|
|
|
namespace WinterMute {
|
2012-05-11 14:03:59 +00:00
|
|
|
|
|
|
|
class Console;
|
2012-06-15 16:45:28 +00:00
|
|
|
class CBGame;
|
2012-05-11 14:03:59 +00:00
|
|
|
// our engine debug channels
|
|
|
|
enum {
|
|
|
|
kWinterMuteDebugExample = 1 << 0,
|
|
|
|
kWinterMuteDebugExample2 = 1 << 1
|
|
|
|
// next new channel must be 1 << 2 (4)
|
|
|
|
// the current limitation is 32 debug channels (1 << 31 is the last one)
|
|
|
|
};
|
|
|
|
|
|
|
|
class WinterMuteEngine : public Engine {
|
|
|
|
public:
|
|
|
|
WinterMuteEngine(OSystem *syst);
|
|
|
|
~WinterMuteEngine();
|
|
|
|
|
|
|
|
virtual Common::Error run();
|
|
|
|
|
2012-06-15 17:19:09 +00:00
|
|
|
uint32 randInt(int from, int to);
|
2012-05-11 14:03:59 +00:00
|
|
|
private:
|
2012-06-15 16:45:28 +00:00
|
|
|
int init();
|
|
|
|
int messageLoop();
|
2012-05-11 14:03:59 +00:00
|
|
|
Console *_console;
|
2012-06-15 16:45:28 +00:00
|
|
|
CBGame *_game;
|
2012-05-11 14:03:59 +00:00
|
|
|
// We need random numbers
|
|
|
|
Common::RandomSource *_rnd;
|
|
|
|
};
|
|
|
|
|
|
|
|
// Example console class
|
|
|
|
class Console : public GUI::Debugger {
|
|
|
|
public:
|
|
|
|
Console(WinterMuteEngine *vm) {}
|
|
|
|
virtual ~Console(void) {}
|
|
|
|
};
|
|
|
|
|
2012-06-15 16:56:16 +00:00
|
|
|
extern WinterMuteEngine *g_wintermute;
|
|
|
|
|
2012-04-19 16:48:48 +00:00
|
|
|
} // End of namespace Wintermute
|
|
|
|
|
2012-06-01 11:51:06 +00:00
|
|
|
#endif
|