aboutsummaryrefslogtreecommitdiff
path: root/saga/game_mod.h
blob: 1292688b91184a69b5cb733bea0bb2fcfe903727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/* ScummVM - Scumm Interpreter
 * Copyright (C) 2004 The ScummVM project
 *
 * The ReInherit Engine is (C)2000-2003 by Daniel Balsom.
 *
 * 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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * $Header$
 *
 */
/*
 Description:   
 
    Game detection, general game parameters - module header

 Notes: 
*/

#ifndef SAGA_GAME_MOD_H__
#define SAGA_GAME_MOD_H__

namespace Saga {

enum R_GAME_BASETYPES {

	R_GAMETYPE_ITE,
	R_GAMETYPE_IHNM
};

enum R_GAME_IDS {

	R_GAME_ITE_DEMO = 0,
	R_GAME_ITE_DISK = 1,
	R_GAME_ITE_CD = 2,
	R_GAME_IHNM_DEMO = 3,
	R_GAME_IHNM_CD = 4
};

enum R_GAME_FILETYPES {

	R_GAME_RESOURCEFILE = 0x01,
	R_GAME_SCRIPTFILE = 0x02,
	R_GAME_SOUNDFILE = 0x04,
	R_GAME_VOICEFILE = 0x08,
	R_GAME_DEMOFILE = 0x10,
	R_GAME_MUSICFILE = 0x20
};

enum R_GAME_SOUNDINFO_TYPES {

	R_GAME_SOUND_PCM = 0,
	R_GAME_SOUND_VOC,
	R_GAME_SOUND_WAV
};

enum R_GAME_FONT_IDS {

	R_GAME_FONT_SMALL = 0,
	R_GAME_FONT_MEDIUM,
	R_GAME_FONT_LARGE,
	R_GAME_FONT_SMALL2,
	R_GAME_FONT_MEDIUM2,
	R_GAME_FONT_LARGE2,
	R_GAME_FONT_LARGE3
};

typedef struct R_GAME_DISPLAYINFO_tag {

	int logical_w;
	int logical_h;
	int scene_h;

} R_GAME_DISPLAYINFO;

typedef struct R_GAMESOUND_INFO_tag {

	int res_type;
	long freq;
	int sample_size;
	int stereo;

} R_GAME_SOUNDINFO;

typedef struct R_GAMEFONT_DESC_tag {

	uint font_id;
	ulong font_rn;

} R_GAME_FONTDESC;

typedef struct R_GAMESCENE_DESC_tag {

	ulong scene_lut_rn;
	ulong first_scene;

} R_GAME_SCENEDESC;

typedef struct R_GAMERESOURCE_DESC_tag {

	ulong scene_lut_rn;
	ulong script_lut_rn;
	ulong command_panel_rn;
	ulong dialogue_panel_rn;

} R_GAME_RESOURCEDESC;

int GAME_Register(void);

int GAME_Init(void);

int GAME_GetFileContext(R_RSCFILE_CONTEXT ** ctxt_p, uint r_type, int param);

int GAME_GetFontInfo(R_GAME_FONTDESC **, int *);

int GAME_GetResourceInfo(R_GAME_RESOURCEDESC *);

int GAME_GetSoundInfo(R_GAME_SOUNDINFO *);

int GAME_GetDisplayInfo(R_GAME_DISPLAYINFO *);

int GAME_GetSceneInfo(R_GAME_SCENEDESC *);

int GAME_GetGame(void);

int GAME_GetGameType(void);

int GAME_GetErrN(void);

void GAME_setGameDirectory(const char *gamedir);

const char *GAME_GetErrS(void);

} // End of namespace Saga

#endif				/* R_GAME_MOD_H__ */
/* end "r_game_mod.h" */