2007-05-30 21:56:52 +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.
|
2005-04-05 18:08:02 +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.
|
2014-02-18 01:34:20 +00:00
|
|
|
*
|
2005-04-05 18:08:02 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2008-01-05 12:45:14 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2005-04-05 18:08:02 +00:00
|
|
|
* GNU General Public License for more details.
|
2014-02-18 01:34:20 +00:00
|
|
|
*
|
2005-04-05 18:08:02 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2005-04-09 19:19:54 +00:00
|
|
|
* along with this program; if not, write to the Free Software
|
2005-10-18 01:30:26 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2005-04-05 18:08:02 +00:00
|
|
|
*
|
|
|
|
*/
|
2007-03-20 14:51:57 +00:00
|
|
|
|
2005-04-05 18:08:02 +00:00
|
|
|
#ifndef GOB_INIT_H
|
|
|
|
#define GOB_INIT_H
|
2005-04-05 15:07:40 +00:00
|
|
|
|
2011-02-04 15:55:54 +00:00
|
|
|
#include "gob/gob.h"
|
2006-05-01 12:43:50 +00:00
|
|
|
#include "gob/video.h"
|
|
|
|
|
2005-04-05 15:07:40 +00:00
|
|
|
namespace Gob {
|
|
|
|
|
2006-01-03 23:14:39 +00:00
|
|
|
class Init {
|
|
|
|
public:
|
2009-07-25 16:08:31 +00:00
|
|
|
Init(GobEngine *vm);
|
|
|
|
virtual ~Init();
|
|
|
|
|
2009-07-05 11:29:54 +00:00
|
|
|
virtual void initGame();
|
2006-01-03 23:14:39 +00:00
|
|
|
|
2007-03-20 14:51:57 +00:00
|
|
|
virtual void initVideo() = 0;
|
2006-05-01 12:43:50 +00:00
|
|
|
|
2009-07-25 16:08:31 +00:00
|
|
|
virtual void updateConfig();
|
2006-01-03 23:14:39 +00:00
|
|
|
|
|
|
|
protected:
|
2006-01-04 01:48:15 +00:00
|
|
|
Video::PalDesc *_palDesc;
|
2011-09-08 18:03:30 +00:00
|
|
|
static const char *const _fontNames[4];
|
2006-01-03 23:14:39 +00:00
|
|
|
GobEngine *_vm;
|
|
|
|
|
2009-05-20 23:13:44 +00:00
|
|
|
void cleanup();
|
|
|
|
void doDemo();
|
2006-01-03 23:14:39 +00:00
|
|
|
};
|
2005-04-05 15:07:40 +00:00
|
|
|
|
2006-05-01 12:43:50 +00:00
|
|
|
class Init_v1 : public Init {
|
|
|
|
public:
|
|
|
|
Init_v1(GobEngine *vm);
|
2009-07-25 16:08:31 +00:00
|
|
|
~Init_v1();
|
|
|
|
|
|
|
|
void initVideo();
|
2006-05-01 12:43:50 +00:00
|
|
|
};
|
|
|
|
|
2011-08-26 04:09:56 +00:00
|
|
|
class Init_Geisha : public Init_v1 {
|
|
|
|
public:
|
|
|
|
Init_Geisha(GobEngine *vm);
|
|
|
|
~Init_Geisha();
|
|
|
|
|
|
|
|
void initVideo();
|
|
|
|
};
|
|
|
|
|
2006-05-01 12:43:50 +00:00
|
|
|
class Init_v2 : public Init_v1 {
|
|
|
|
public:
|
|
|
|
Init_v2(GobEngine *vm);
|
2009-07-25 16:08:31 +00:00
|
|
|
~Init_v2();
|
|
|
|
|
|
|
|
void initVideo();
|
2006-05-01 12:43:50 +00:00
|
|
|
};
|
|
|
|
|
2007-04-16 05:04:41 +00:00
|
|
|
class Init_v3 : public Init_v2 {
|
|
|
|
public:
|
|
|
|
Init_v3(GobEngine *vm);
|
2009-07-25 16:08:31 +00:00
|
|
|
~Init_v3();
|
|
|
|
|
|
|
|
void initVideo();
|
2010-03-06 22:40:55 +00:00
|
|
|
void updateConfig();
|
2007-04-16 05:04:41 +00:00
|
|
|
};
|
|
|
|
|
2009-07-25 16:08:31 +00:00
|
|
|
class Init_v4 : public Init_v3 {
|
2009-07-05 11:29:54 +00:00
|
|
|
public:
|
2009-07-25 16:08:31 +00:00
|
|
|
Init_v4(GobEngine *vm);
|
|
|
|
~Init_v4();
|
|
|
|
|
|
|
|
void updateConfig();
|
|
|
|
};
|
2009-07-05 11:29:54 +00:00
|
|
|
|
2009-07-25 16:08:31 +00:00
|
|
|
class Init_v6 : public Init_v3 {
|
|
|
|
public:
|
2009-07-05 11:29:54 +00:00
|
|
|
Init_v6(GobEngine *vm);
|
2009-07-25 16:08:31 +00:00
|
|
|
~Init_v6();
|
|
|
|
|
|
|
|
void initGame();
|
2009-07-05 11:29:54 +00:00
|
|
|
};
|
|
|
|
|
2009-09-29 22:43:30 +00:00
|
|
|
class Init_Fascination : public Init_v2 {
|
|
|
|
public:
|
|
|
|
Init_Fascination(GobEngine *vm);
|
|
|
|
~Init_Fascination();
|
|
|
|
|
2010-08-17 07:41:15 +00:00
|
|
|
void updateConfig();
|
2010-08-20 22:23:12 +00:00
|
|
|
void initGame();
|
2009-09-29 22:43:30 +00:00
|
|
|
};
|
2011-02-04 15:55:54 +00:00
|
|
|
|
|
|
|
class Init_v7 : public Init_v2 {
|
|
|
|
public:
|
|
|
|
Init_v7(GobEngine *vm);
|
|
|
|
~Init_v7();
|
|
|
|
|
|
|
|
void initGame();
|
|
|
|
};
|
|
|
|
|
2007-03-20 14:51:57 +00:00
|
|
|
} // End of namespace Gob
|
2005-04-05 15:07:40 +00:00
|
|
|
|
2007-03-20 14:51:57 +00:00
|
|
|
#endif // GOB_INIT_H
|