2002-08-18 16:21:34 +00:00
|
|
|
/* ScummVM - Scumm Interpreter
|
2005-01-01 16:09:25 +00:00
|
|
|
* Copyright (C) 2001-2005 The ScummVM project
|
2002-08-18 16:21:34 +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
|
2005-10-18 01:30:26 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2002-08-18 16:21:34 +00:00
|
|
|
*
|
|
|
|
* $Header$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SIMON_INTERN_H
|
|
|
|
#define SIMON_INTERN_H
|
|
|
|
|
2003-10-03 19:42:27 +00:00
|
|
|
namespace Simon {
|
|
|
|
|
2002-08-18 16:21:34 +00:00
|
|
|
struct Child {
|
|
|
|
Child *next;
|
|
|
|
uint16 type;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Child1 : Child {
|
|
|
|
uint16 subroutine_id;
|
|
|
|
uint16 fr2;
|
|
|
|
uint16 array[1];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Child2 : Child {
|
|
|
|
uint16 string_id;
|
|
|
|
uint32 avail_props;
|
|
|
|
int16 array[1];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Child9 : Child {
|
|
|
|
uint16 array[4];
|
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
CHILD1_SIZE = sizeof(Child1) - sizeof(uint16),
|
|
|
|
CHILD2_SIZE = sizeof(Child2) - sizeof(int16)
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Item {
|
|
|
|
uint16 parent;
|
|
|
|
uint16 child;
|
|
|
|
uint16 sibling;
|
2005-10-03 14:08:07 +00:00
|
|
|
int16 noun;
|
|
|
|
int16 adjective;
|
|
|
|
int16 state; /* signed int */
|
|
|
|
uint16 classFlags;
|
2002-08-18 16:21:34 +00:00
|
|
|
Child *children;
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2003-05-20 14:43:22 +00:00
|
|
|
Item() { memset(this, 0, sizeof(*this)); }
|
2002-08-18 16:21:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Subroutine {
|
2005-10-07 07:36:09 +00:00
|
|
|
uint16 id; /* subroutine ID */
|
|
|
|
uint16 first; /* offset from subroutine start to first subroutine line */
|
2002-08-18 16:21:34 +00:00
|
|
|
Subroutine *next; /* next subroutine in linked list */
|
|
|
|
};
|
|
|
|
|
|
|
|
struct FillOrCopyDataEntry {
|
|
|
|
Item *item;
|
|
|
|
uint16 hit_area;
|
|
|
|
uint16 xxx_1;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct FillOrCopyData {
|
|
|
|
int16 unk1;
|
|
|
|
Item *item_ptr;
|
|
|
|
FillOrCopyDataEntry e[64];
|
2005-10-19 10:54:22 +00:00
|
|
|
int16 upArrow, downArrow;
|
2002-08-18 16:21:34 +00:00
|
|
|
uint16 unk2;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct FillOrCopyStruct {
|
|
|
|
byte mode;
|
|
|
|
byte flags;
|
|
|
|
uint16 x, y;
|
|
|
|
uint16 width, height;
|
|
|
|
uint16 textColumn, textRow;
|
|
|
|
uint8 textColumnOffset, textLength, textMaxLength;
|
2003-12-21 09:01:58 +00:00
|
|
|
uint8 fill_color, text_color, unk5;
|
2002-08-18 16:21:34 +00:00
|
|
|
FillOrCopyData *fcs_data;
|
2003-05-20 14:43:22 +00:00
|
|
|
FillOrCopyStruct() { memset(this, 0, sizeof(*this)); }
|
2002-08-18 16:21:34 +00:00
|
|
|
};
|
2005-07-30 21:11:48 +00:00
|
|
|
// note on text offset:
|
2002-08-18 16:21:34 +00:00
|
|
|
// the actual x-coordinate is: textColumn * 8 + textColumnOffset
|
|
|
|
// the actual y-coordinate is: textRow * 8
|
|
|
|
|
|
|
|
|
|
|
|
enum {
|
|
|
|
SUBROUTINE_LINE_SMALL_SIZE = 2,
|
2002-12-25 00:48:13 +00:00
|
|
|
SUBROUTINE_LINE_BIG_SIZE = 8
|
2002-08-18 16:21:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct SubroutineLine {
|
|
|
|
uint16 next;
|
|
|
|
int16 cond_a;
|
|
|
|
int16 cond_b;
|
|
|
|
int16 cond_c;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct TimeEvent {
|
|
|
|
uint32 time;
|
|
|
|
uint16 subroutine_id;
|
|
|
|
TimeEvent *next;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct GameSpecificSettings {
|
2005-11-05 18:51:12 +00:00
|
|
|
#ifndef PALMOS_68K
|
2003-12-21 09:01:58 +00:00
|
|
|
const char *gme_filename;
|
|
|
|
const char *wav_filename;
|
|
|
|
const char *voc_filename;
|
|
|
|
const char *mp3_filename;
|
2003-12-21 16:01:36 +00:00
|
|
|
const char *vorbis_filename;
|
2004-02-22 14:11:16 +00:00
|
|
|
const char *flac_filename;
|
2003-12-21 09:01:58 +00:00
|
|
|
const char *voc_effects_filename;
|
|
|
|
const char *mp3_effects_filename;
|
2003-12-21 16:01:36 +00:00
|
|
|
const char *vorbis_effects_filename;
|
2004-02-22 14:11:16 +00:00
|
|
|
const char *flac_effects_filename;
|
2003-12-21 09:01:58 +00:00
|
|
|
const char *gamepc_filename;
|
|
|
|
#else
|
2003-11-12 16:00:11 +00:00
|
|
|
const char gme_filename[12];
|
|
|
|
const char wav_filename[12];
|
|
|
|
const char voc_filename[12];
|
|
|
|
const char mp3_filename[12];
|
2004-02-22 14:11:16 +00:00
|
|
|
const char flac_filename[12];
|
2003-12-21 16:01:36 +00:00
|
|
|
const char vorbis_filename[12];
|
2003-11-12 16:00:11 +00:00
|
|
|
const char voc_effects_filename[12];
|
|
|
|
const char mp3_effects_filename[12];
|
2003-12-21 16:01:36 +00:00
|
|
|
const char vorbis_effects_filename[12];
|
2004-02-22 14:11:16 +00:00
|
|
|
const char flac_effects_filename[12];
|
2005-07-30 21:11:48 +00:00
|
|
|
const char gamepc_filename[12];
|
2003-12-21 09:01:58 +00:00
|
|
|
#endif
|
2002-08-18 16:21:34 +00:00
|
|
|
};
|
|
|
|
|
2003-10-03 19:42:27 +00:00
|
|
|
} // End of namespace Simon
|
|
|
|
|
2005-11-12 06:01:24 +00:00
|
|
|
enum GameFeatures {
|
|
|
|
GF_TALKIE = 1 << 0,
|
2005-11-12 06:44:03 +00:00
|
|
|
GF_OLD_BUNDLE = 1 << 1,
|
|
|
|
GF_CRUNCHED = 1 << 2
|
2005-11-12 06:01:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum GameFileTypes {
|
|
|
|
GAME_BASEFILE = 1 << 0,
|
|
|
|
GAME_ICONFILE = 1 << 1,
|
|
|
|
GAME_GMEFILE = 1 << 2,
|
|
|
|
GAME_STRFILE = 1 << 3,
|
|
|
|
GAME_TBLFILE = 1 << 4
|
|
|
|
};
|
|
|
|
|
|
|
|
enum GameIds {
|
|
|
|
GID_SIMON1DOS,
|
2005-11-12 08:04:10 +00:00
|
|
|
GID_SIMON1DOS_RU,
|
2005-11-12 06:01:24 +00:00
|
|
|
GID_SIMON1DEMO,
|
|
|
|
GID_SIMON1AMIGA,
|
|
|
|
GID_SIMON1CD32,
|
|
|
|
GID_SIMON1ACORN,
|
2005-11-12 06:22:18 +00:00
|
|
|
GID_SIMON1ACORNDEMO,
|
2005-11-12 06:01:24 +00:00
|
|
|
GID_SIMON1TALKIE,
|
|
|
|
GID_SIMON1TALKIE_DE,
|
|
|
|
GID_SIMON1TALKIE_FR,
|
|
|
|
GID_SIMON1TALKIE_HB,
|
|
|
|
GID_SIMON1TALKIE_IT,
|
|
|
|
GID_SIMON1TALKIE_ES,
|
|
|
|
GID_SIMON1WIN,
|
|
|
|
GID_SIMON1WIN_DE,
|
|
|
|
|
|
|
|
GID_SIMON2DOS,
|
2005-11-12 08:04:10 +00:00
|
|
|
GID_SIMON2DOS_RU,
|
2005-11-12 06:01:24 +00:00
|
|
|
GID_SIMON2DEMO,
|
|
|
|
GID_SIMON2TALKIE,
|
|
|
|
GID_SIMON2TALKIE_DE,
|
|
|
|
GID_SIMON2TALKIE_FR,
|
|
|
|
GID_SIMON2TALKIE_HB,
|
2005-11-16 12:28:06 +00:00
|
|
|
GID_SIMON2TALKIE_IT,
|
2005-11-12 06:01:24 +00:00
|
|
|
GID_SIMON2TALKIE_ES,
|
|
|
|
GID_SIMON2WIN,
|
|
|
|
GID_SIMON2WIN_DE,
|
|
|
|
|
2005-11-12 08:04:10 +00:00
|
|
|
GID_FEEBLEFILES_2CD,
|
2005-11-12 09:32:54 +00:00
|
|
|
GID_FEEBLEFILES_4CD,
|
|
|
|
GID_FEEBLEFILES_DE
|
2002-11-27 15:08:24 +00:00
|
|
|
};
|
|
|
|
|
2002-08-18 16:21:34 +00:00
|
|
|
#endif
|