~ubuntu-branches/ubuntu/raring/scummvm/raring

« back to all changes in this revision

Viewing changes to devtools/create_kyradat/create_kyradat.h

  • Committer: Bazaar Package Importer
  • Author(s): Moritz Muehlenhoff
  • Date: 2011-05-25 19:02:23 UTC
  • mto: (21.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: james.westby@ubuntu.com-20110525190223-fiqm0oaec714xk31
Tags: upstream-1.3.0
ImportĀ upstreamĀ versionĀ 1.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ScummVM - Graphic Adventure Engine
 
2
 *
 
3
 * ScummVM is the legal property of its developers, whose names
 
4
 * are too numerous to list here. Please refer to the COPYRIGHT
 
5
 * file distributed with this source distribution.
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU General Public License
 
9
 * as published by the Free Software Foundation; either version 2
 
10
 * of the License, or (at your option) any later version.
 
11
 
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program; if not, write to the Free Software
 
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
20
 *
 
21
 * $URL$
 
22
 * $Id$
 
23
 *
 
24
 */
 
25
 
 
26
#ifndef CREATE_KYRADAT_CREATE_KYRADAT_H
 
27
#define CREATE_KYRADAT_CREATE_KYRADAT_H
 
28
 
 
29
#include "util.h"
 
30
 
 
31
// This list has to match orderwise (and thus value wise) the static data list of "engines/kyra/resource.h"!
 
32
enum kExtractID {
 
33
        kIdMap = 0,
 
34
 
 
35
        k1ForestSeq = 1,
 
36
        k1KallakWritingSeq,
 
37
        k1KyrandiaLogoSeq,
 
38
        k1KallakMalcolmSeq,
 
39
        k1MalcolmTreeSeq,
 
40
        k1WestwoodLogoSeq,
 
41
 
 
42
        k1Demo1Seq,
 
43
        k1Demo2Seq,
 
44
        k1Demo3Seq,
 
45
        k1Demo4Seq,
 
46
 
 
47
        k1AmuleteAnimSeq,
 
48
 
 
49
        k1OutroReunionSeq,
 
50
 
 
51
        k1IntroCPSStrings,
 
52
        k1IntroCOLStrings,
 
53
        k1IntroWSAStrings,
 
54
        k1IntroStrings,
 
55
 
 
56
        k1OutroHomeString,
 
57
 
 
58
        k1RoomFilenames,
 
59
        k1RoomList,
 
60
 
 
61
        k1CharacterImageFilenames,
 
62
 
 
63
        k1ItemNames,
 
64
        k1TakenStrings,
 
65
        k1PlacedStrings,
 
66
        k1DroppedStrings,
 
67
        k1NoDropStrings,
 
68
 
 
69
        k1PutDownString,
 
70
        k1WaitAmuletString,
 
71
        k1BlackJewelString,
 
72
        k1PoisonGoneString,
 
73
        k1HealingTipString,
 
74
        k1WispJewelStrings,
 
75
        k1MagicJewelStrings,
 
76
 
 
77
        k1ThePoisonStrings,
 
78
        k1FluteStrings,
 
79
 
 
80
        k1FlaskFullString,
 
81
        k1FullFlaskString,
 
82
 
 
83
        k1VeryCleverString,
 
84
        k1NewGameString,
 
85
 
 
86
        k1DefaultShapes,
 
87
        k1Healing1Shapes,
 
88
        k1Healing2Shapes,
 
89
        k1PoisonDeathShapes,
 
90
        k1FluteShapes,
 
91
        k1Winter1Shapes,
 
92
        k1Winter2Shapes,
 
93
        k1Winter3Shapes,
 
94
        k1DrinkShapes,
 
95
        k1WispShapes,
 
96
        k1MagicAnimShapes,
 
97
        k1BranStoneShapes,
 
98
 
 
99
        k1SpecialPalette1,
 
100
        k1SpecialPalette2,
 
101
        k1SpecialPalette3,
 
102
        k1SpecialPalette4,
 
103
        k1SpecialPalette5,
 
104
        k1SpecialPalette6,
 
105
        k1SpecialPalette7,
 
106
        k1SpecialPalette8,
 
107
        k1SpecialPalette9,
 
108
        k1SpecialPalette10,
 
109
        k1SpecialPalette11,
 
110
        k1SpecialPalette12,
 
111
        k1SpecialPalette13,
 
112
        k1SpecialPalette14,
 
113
        k1SpecialPalette15,
 
114
        k1SpecialPalette16,
 
115
        k1SpecialPalette17,
 
116
        k1SpecialPalette18,
 
117
        k1SpecialPalette19,
 
118
        k1SpecialPalette20,
 
119
        k1SpecialPalette21,
 
120
        k1SpecialPalette22,
 
121
        k1SpecialPalette23,
 
122
        k1SpecialPalette24,
 
123
        k1SpecialPalette25,
 
124
        k1SpecialPalette26,
 
125
        k1SpecialPalette27,
 
126
        k1SpecialPalette28,
 
127
        k1SpecialPalette29,
 
128
        k1SpecialPalette30,
 
129
        k1SpecialPalette31,
 
130
        k1SpecialPalette32,
 
131
        k1SpecialPalette33,
 
132
 
 
133
        k1GUIStrings,
 
134
        k1ConfigStrings,
 
135
 
 
136
        k1AudioTracks,
 
137
        k1AudioTracksIntro,
 
138
 
 
139
        k1CreditsStrings,
 
140
 
 
141
        k1TownsMusicFadeTable,
 
142
        k1TownsSFXwdTable,
 
143
        k1TownsSFXbtTable,
 
144
        k1TownsCDATable,
 
145
 
 
146
        k1PC98StoryStrings,
 
147
        k1PC98IntroSfx,
 
148
 
 
149
        k1AmigaIntroSFXTable,
 
150
        k1AmigaGameSFXTable,
 
151
 
 
152
        k2SeqplayPakFiles,
 
153
        k2SeqplayCredits,
 
154
        k2SeqplayCreditsSpecial,
 
155
        k2SeqplayStrings,
 
156
        k2SeqplaySfxFiles,
 
157
        k2SeqplayTlkFiles,
 
158
        k2SeqplaySeqData,
 
159
        k2SeqplayIntroTracks,
 
160
        k2SeqplayFinaleTracks,
 
161
        k2SeqplayIntroCDA,
 
162
        k2SeqplayFinaleCDA,
 
163
        k2SeqplayShapeAnimData,
 
164
 
 
165
        k2IngamePakFiles,
 
166
        k2IngameSfxFiles,
 
167
        k2IngameSfxIndex,
 
168
        k2IngameTracks,
 
169
        k2IngameCDA,
 
170
        k2IngameTalkObjIndex,
 
171
        k2IngameTimJpStrings,
 
172
        k2IngameShapeAnimData,
 
173
        k2IngameTlkDemoStrings,
 
174
 
 
175
        k3MainMenuStrings,
 
176
        k3MusicFiles,
 
177
        k3ScoreTable,
 
178
        k3SfxFiles,
 
179
        k3SfxMap,
 
180
        k3ItemAnimData,
 
181
        k3ItemMagicTable,
 
182
        k3ItemStringMap,
 
183
 
 
184
        kLolIngamePakFiles,
 
185
        kLolCharacterDefs,
 
186
        kLolIngameSfxFiles,
 
187
        kLolIngameSfxIndex,
 
188
        kLolMusicTrackMap,
 
189
        kLolIngameGMSfxIndex,
 
190
        kLolIngameMT32SfxIndex,
 
191
        kLolIngamePcSpkSfxIndex,
 
192
        kLolSpellProperties,
 
193
        kLolGameShapeMap,
 
194
        kLolSceneItemOffs,
 
195
        kLolCharInvIndex,
 
196
        kLolCharInvDefs,
 
197
        kLolCharDefsMan,
 
198
        kLolCharDefsWoman,
 
199
        kLolCharDefsKieran,
 
200
        kLolCharDefsAkshel,
 
201
        kLolExpRequirements,
 
202
        kLolMonsterModifiers,
 
203
        kLolMonsterShiftOffsets,
 
204
        kLolMonsterDirFlags,
 
205
        kLolMonsterScaleY,
 
206
        kLolMonsterScaleX,
 
207
        kLolMonsterScaleWH,
 
208
        kLolFlyingObjectShp,
 
209
        kLolInventoryDesc,
 
210
 
 
211
        kLolLevelShpList,
 
212
        kLolLevelDatList,
 
213
        kLolCompassDefs,
 
214
        kLolItemPrices,
 
215
        kLolStashSetup,
 
216
 
 
217
        kLolDscUnk1,
 
218
        kLolDscShapeIndex,
 
219
        kLolDscOvlMap,
 
220
        kLolDscScaleWidthData,
 
221
        kLolDscScaleHeightData,
 
222
        kLolDscX,
 
223
        kLolDscY,
 
224
        kLolDscTileIndex,
 
225
        kLolDscUnk2,
 
226
        kLolDscDoorShapeIndex,
 
227
        kLolDscDimData1,
 
228
        kLolDscDimData2,
 
229
        kLolDscBlockMap,
 
230
        kLolDscDimMap,
 
231
        kLolDscDoor1,
 
232
        kLolDscDoorScale,
 
233
        kLolDscDoor4,
 
234
        kLolDscDoorX,
 
235
        kLolDscDoorY,
 
236
        kLolDscOvlIndex,
 
237
        kLolDscBlockIndex,
 
238
 
 
239
        kLolScrollXTop,
 
240
        kLolScrollYTop,
 
241
        kLolScrollXBottom,
 
242
        kLolScrollYBottom,
 
243
 
 
244
        kLolButtonDefs,
 
245
        kLolButtonList1,
 
246
        kLolButtonList2,
 
247
        kLolButtonList3,
 
248
        kLolButtonList4,
 
249
        kLolButtonList5,
 
250
        kLolButtonList6,
 
251
        kLolButtonList7,
 
252
        kLolButtonList8,
 
253
 
 
254
        kLolLegendData,
 
255
        kLolMapCursorOvl,
 
256
        kLolMapStringId,
 
257
 
 
258
        kLolSpellbookAnim,
 
259
        kLolSpellbookCoords,
 
260
        kLolHealShapeFrames,
 
261
        kLolLightningDefs,
 
262
        kLolFireballCoords,
 
263
 
 
264
        kLolCredits,
 
265
 
 
266
        kLolHistory,
 
267
 
 
268
        kMaxResIDs
 
269
};
 
270
 
 
271
struct ExtractFilename {
 
272
        int id;
 
273
        int type;
 
274
        bool langSpecific;
 
275
};
 
276
 
 
277
enum kSpecial {
 
278
        kNoSpecial = 0,
 
279
        kTalkieVersion,
 
280
        kDemoVersion,
 
281
        kTalkieDemoVersion
 
282
};
 
283
 
 
284
enum kGame {
 
285
        kKyra1 = 0,
 
286
        kKyra2,
 
287
        kKyra3,
 
288
        kLol
 
289
};
 
290
 
 
291
struct Game {
 
292
        int game;
 
293
        int lang[3];
 
294
        int platform;
 
295
        int special;
 
296
 
 
297
        const char *md5[2];
 
298
};
 
299
 
 
300
#define GAME_DUMMY_ENTRY { -1, { -1, -1, -1 }, -1, -1, { 0, 0 } }
 
301
 
 
302
extern const Game * const gameDescs[];
 
303
 
 
304
const int *getNeedList(const Game *g);
 
305
 
 
306
struct TypeTable {
 
307
        int type;
 
308
        int value;
 
309
 
 
310
        bool operator==(int t) const {
 
311
                return (type == t);
 
312
        }
 
313
};
 
314
 
 
315
#endif