2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
2006-02-22 22:40:53 +00:00
|
|
|
*
|
2007-05-30 21:56:52 +00:00
|
|
|
* 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.
|
2006-02-22 22:40:53 +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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* $URL$
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CINE_H
|
|
|
|
#define CINE_H
|
|
|
|
|
2007-09-19 08:40:12 +00:00
|
|
|
|
2006-02-22 22:40:53 +00:00
|
|
|
#include "common/scummsys.h"
|
2007-05-30 18:43:28 +00:00
|
|
|
#include "common/file.h"
|
2006-03-16 20:29:07 +00:00
|
|
|
#include "common/util.h"
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-09-23 00:42:35 +00:00
|
|
|
#include "engines/engine.h"
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-25 00:26:14 +00:00
|
|
|
#include "cine/texte.h"
|
|
|
|
#include "cine/rel.h"
|
|
|
|
#include "cine/script.h"
|
|
|
|
#include "cine/part.h"
|
|
|
|
#include "cine/prc.h"
|
|
|
|
#include "cine/msg.h"
|
|
|
|
#include "cine/bg.h"
|
|
|
|
#include "cine/pal.h"
|
|
|
|
#include "cine/gfx.h"
|
|
|
|
#include "cine/anim.h"
|
|
|
|
|
2006-04-12 03:45:54 +00:00
|
|
|
//#define DUMP_SCRIPTS
|
|
|
|
|
2006-02-22 22:40:53 +00:00
|
|
|
namespace Cine {
|
|
|
|
|
2006-10-15 01:06:44 +00:00
|
|
|
enum CineGameType {
|
|
|
|
GType_FW = 1,
|
|
|
|
GType_OS
|
|
|
|
};
|
|
|
|
|
|
|
|
enum CineGameFeatures {
|
|
|
|
GF_CD = 1 << 0,
|
2006-11-11 15:37:03 +00:00
|
|
|
GF_DEMO = 1 << 1,
|
|
|
|
GF_ALT_FONT = 1 << 2
|
2006-10-15 01:06:44 +00:00
|
|
|
};
|
|
|
|
|
2007-01-21 20:24:38 +00:00
|
|
|
struct CINEGameDescription;
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-02-25 00:26:14 +00:00
|
|
|
class CineEngine : public Engine {
|
2006-02-22 22:40:53 +00:00
|
|
|
|
|
|
|
protected:
|
2006-04-15 20:36:41 +00:00
|
|
|
int init();
|
2006-02-22 22:40:53 +00:00
|
|
|
int go();
|
|
|
|
void shutdown();
|
2007-09-19 08:40:12 +00:00
|
|
|
|
2006-10-15 01:06:44 +00:00
|
|
|
bool initGame();
|
2006-02-22 22:40:53 +00:00
|
|
|
|
|
|
|
public:
|
2006-04-15 20:36:41 +00:00
|
|
|
CineEngine(OSystem *syst);
|
2006-02-22 22:40:53 +00:00
|
|
|
virtual ~CineEngine();
|
2006-10-15 01:06:44 +00:00
|
|
|
|
2007-01-21 20:24:38 +00:00
|
|
|
int getGameType() const;
|
|
|
|
uint32 getFeatures() const;
|
|
|
|
Common::Language getLanguage() const;
|
|
|
|
Common::Platform getPlatform() const;
|
2006-10-15 01:06:44 +00:00
|
|
|
|
2006-11-14 09:29:41 +00:00
|
|
|
bool loadSaveDirectory(void);
|
|
|
|
void makeSystemMenu(void);
|
|
|
|
|
2006-10-15 01:06:44 +00:00
|
|
|
const CINEGameDescription *_gameDescription;
|
2007-05-30 18:43:28 +00:00
|
|
|
Common::File _partFileHandle;
|
2006-11-25 09:28:00 +00:00
|
|
|
|
2007-09-19 13:55:05 +00:00
|
|
|
Common::RandomSource _rnd;
|
|
|
|
|
2006-11-25 09:28:00 +00:00
|
|
|
private:
|
|
|
|
void initialize(void);
|
|
|
|
bool makeLoad(char *saveName);
|
|
|
|
void mainLoop(int bootScriptIdx);
|
|
|
|
|
|
|
|
bool _preLoad;
|
2006-02-22 22:40:53 +00:00
|
|
|
};
|
|
|
|
|
2006-10-15 01:06:44 +00:00
|
|
|
extern CineEngine *g_cine;
|
|
|
|
|
2006-02-22 22:40:53 +00:00
|
|
|
#define BOOT_PRC_NAME "AUTO00.PRC"
|
|
|
|
|
2006-02-24 22:34:22 +00:00
|
|
|
enum {
|
|
|
|
VAR_MOUSE_X_MODE = 253,
|
|
|
|
VAR_MOUSE_X_POS = 249,
|
|
|
|
VAR_MOUSE_Y_MODE = 251,
|
|
|
|
VAR_MOUSE_Y_POS = 250
|
|
|
|
};
|
|
|
|
|
2006-03-16 20:29:07 +00:00
|
|
|
enum {
|
|
|
|
MOUSE_CURSOR_NORMAL = 0,
|
|
|
|
MOUSE_CURSOR_DISK,
|
|
|
|
MOUSE_CURSOR_CROSS
|
|
|
|
};
|
2006-02-22 22:40:53 +00:00
|
|
|
|
2006-04-12 01:48:15 +00:00
|
|
|
enum {
|
|
|
|
kCineDebugScript = 1 << 0
|
|
|
|
};
|
|
|
|
|
2006-04-12 03:12:56 +00:00
|
|
|
enum {
|
|
|
|
kCmpEQ = (1 << 0),
|
|
|
|
kCmpGT = (1 << 1),
|
|
|
|
kCmpLT = (1 << 2)
|
|
|
|
};
|
2006-04-12 01:48:15 +00:00
|
|
|
|
|
|
|
|
2006-04-10 05:37:31 +00:00
|
|
|
extern Common::SaveFileManager *g_saveFileMan; // TEMP
|
|
|
|
|
2006-02-25 00:26:14 +00:00
|
|
|
} // End of namespace Cine
|
|
|
|
|
2006-02-22 22:40:53 +00:00
|
|
|
#endif
|