From d0590a09eac68d5cde64d37fb2e5bbd1471a676a Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 20 Apr 2008 14:43:56 +0000 Subject: Initial import of the work in progress MADE engine svn-id: r31599 --- engines/made/made.h | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 engines/made/made.h (limited to 'engines/made/made.h') diff --git a/engines/made/made.h b/engines/made/made.h new file mode 100644 index 0000000000..6753b391cd --- /dev/null +++ b/engines/made/made.h @@ -0,0 +1,106 @@ +/* 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 MADE_H +#define MADE_H + +#include "common/scummsys.h" +#include "common/endian.h" +#include "common/util.h" +#include "common/file.h" +#include "common/savefile.h" +#include "common/system.h" +#include "common/hash-str.h" +#include "common/events.h" +#include "common/keyboard.h" + +#include "graphics/surface.h" + +#include "sound/audiostream.h" +#include "sound/mixer.h" +#include "sound/voc.h" +#include "sound/audiocd.h" + +#include "engines/engine.h" + +namespace Made { + +enum MadeGameFeatures { +}; + +struct MadeGameDescription; + +class ProjectReader; +class PmvPlayer; +class Screen; +class ScriptInterpreter; +class GameDatabase; + +class MadeEngine : public ::Engine { + int _gameId; + Common::KeyState _keyPressed; + +protected: + + int init(); + int go(); + +public: + MadeEngine(OSystem *syst, const MadeGameDescription *gameDesc); + virtual ~MadeEngine(); + int getGameId() { + return _gameId; + } + + Common::RandomSource *_rnd; + const MadeGameDescription *_gameDescription; + uint32 getGameID() const; + uint32 getFeatures() const; + uint16 getVersion() const; + Common::Platform getPlatform() const; + void update_events(); + +private: +public: + PmvPlayer *_pmvPlayer; + ProjectReader *_res; + Screen *_screen; + GameDatabase *_dat; + ScriptInterpreter *_script; + + int _eventMouseX, _eventMouseY; + + int32 _timers[50]; + int16 getTimer(int16 timerNum); + void setTimer(int16 timerNum, int16 value); + void resetTimer(int16 timerNum); + int16 allocTimer(); + void freeTimer(int16 timerNum); + +}; + +} // End of namespace Made + +#endif /* MADE_H */ -- cgit v1.2.3