ScummVM API documentation
releases.h
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 modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (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, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef SCUMM_INSANE_REBEL2_RELEASES_H
23 #define SCUMM_INSANE_REBEL2_RELEASES_H
24 
25 #include "common/scummsys.h"
26 
27 namespace Scumm {
28 
30  int16 laserDelay;
31  int16 snapDistance;
32  int16 missDamage;
33  int16 dodgeDamage;
34  int16 shotDamage;
35  int16 specialDamage;
36  int16 shotAccuracy;
37  int16 hitPoints;
38  int16 dodgePoints;
39  int16 timePoints;
40  int16 levelPoints;
41  int16 specialPoints;
42  int16 flags;
43  int16 rollRate;
44  int16 liftRate;
45  int16 slideRate;
46  int16 driftRate;
47 };
48 
50  byte levelType;
51  Rebel2DifficultyParams difficulty[6];
52 };
53 
55  byte chapter;
56  int16 low;
57  int16 high;
58 };
59 
61  const char *filename;
62  int16 flags;
63 };
64 
65 struct Rebel2Release {
66  enum { kNumLevels = 15, kFinale = 16 };
67 
68  const char *variant;
69  const char *container;
70  const char *strings;
71  // Null-terminated playlist for non-interactive demos.
72  const Rebel2DemoVideo *nonInteractiveVideos;
73  const char *completionVideo;
74  // Chapter numbers in playback order; unused entries are zero.
75  byte levels[kNumLevels];
76  bool ending;
77  bool unlockAvailableLevels;
78  // The chapter-6 demos start at the attack on the reactor.
79  bool skipMiningFacilityAttack;
80  // Some demos omit the shield-attack resources entirely.
81  bool canRestoreMiningFacilityAttack;
82  bool advanceCompletionPasswords;
83  const Rebel2DifficultyOverride *difficultyOverrides;
84  uint difficultyOverrideCount;
85  // Optional chapter-completion thresholds, terminated by chapter zero.
86  const Rebel2AccuracyOverride *accuracyOverrides;
87  // Optional null-terminated list replacing the retail movie fonts.
88  const char *const *fontFiles;
89 
90  bool isChapterAvailable(int chapter) const;
91  int getNextChapter(int chapter) const;
92  int getCompletionPasswordChapter(int chapter) const;
93  const Rebel2DifficultyParams *getDifficultyOverride(int difficulty, int levelType) const;
94  const Rebel2AccuracyOverride *getAccuracyOverride(int chapter) const;
95  int getFontCount() const;
96  const char *getFontFile(int font, bool highRes) const;
97 };
98 
99 Rebel2Release getRebel2Release(const char *variant, bool restoredContent = false);
100 
101 } // End of namespace Scumm
102 
103 #endif
Definition: releases.h:54
Definition: releases.h:65
Definition: releases.h:60
Definition: releases.h:29
Definition: actor.h:30
Definition: releases.h:49