mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
HYPNO: refactoring clearing of arcade data structures
This commit is contained in:
parent
0133c1f508
commit
d2a9429464
@ -57,23 +57,7 @@ void HypnoEngine::parseArcadeShooting(const Common::String &prefix, const Common
|
||||
ArcadeShooting *arcade = new ArcadeShooting();
|
||||
*arcade = *g_parsedArc;
|
||||
_levels[filename] = (Level*) arcade;
|
||||
g_parsedArc->backgroundVideo.clear();
|
||||
g_parsedArc->transitionVideos.clear();
|
||||
g_parsedArc->transitionTimes.clear();
|
||||
g_parsedArc->transitionPalettes.clear();
|
||||
g_parsedArc->player.clear();
|
||||
g_parsedArc->shoots.clear();
|
||||
g_parsedArc->intros.clear();
|
||||
g_parsedArc->defeatNoEnergyFirstVideo.clear();
|
||||
g_parsedArc->defeatMissBossVideo.clear();
|
||||
g_parsedArc->defeatNoEnergySecondVideo.clear();
|
||||
g_parsedArc->missBoss1Video.clear();
|
||||
g_parsedArc->missBoss2Video.clear();
|
||||
g_parsedArc->hitBoss1Video.clear();
|
||||
g_parsedArc->hitBoss2Video.clear();
|
||||
g_parsedArc->beforeVideo.clear();
|
||||
g_parsedArc->briefingVideo.clear();
|
||||
g_parsedArc->segments.clear();
|
||||
g_parsedArc->clear();
|
||||
}
|
||||
|
||||
SegmentShootsSequence HypnoEngine::parseShootList(const Common::String &filename, const Common::String &data) {
|
||||
|
@ -481,6 +481,28 @@ public:
|
||||
objMissesAllowed[1] = 0;
|
||||
frameDelay = 0;
|
||||
}
|
||||
void clear() {
|
||||
nextLevelVideo.clear();
|
||||
backgroundVideo.clear();
|
||||
transitionVideos.clear();
|
||||
transitionTimes.clear();
|
||||
transitionPalettes.clear();
|
||||
player.clear();
|
||||
shoots.clear();
|
||||
intros.clear();
|
||||
defeatNoEnergyFirstVideo.clear();
|
||||
defeatMissBossVideo.clear();
|
||||
defeatNoEnergySecondVideo.clear();
|
||||
missBoss1Video.clear();
|
||||
missBoss2Video.clear();
|
||||
hitBoss1Video.clear();
|
||||
hitBoss2Video.clear();
|
||||
beforeVideo.clear();
|
||||
briefingVideo.clear();
|
||||
additionalVideo.clear();
|
||||
segments.clear();
|
||||
}
|
||||
|
||||
uint32 id;
|
||||
uint32 frameDelay;
|
||||
Common::String mode;
|
||||
|
Loading…
Reference in New Issue
Block a user