aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2012-11-11 15:50:22 +0100
committerStrangerke2012-11-11 15:50:22 +0100
commit3e4c99fce71a6e92a848351427d1926ba5f2285e (patch)
tree7ffb5ebf55a0df4a079c1f0b7afae81d5b1a6fad
parent9b9b761e710e9000e75b7565344b1bef86cd2a15 (diff)
downloadscummvm-rg350-3e4c99fce71a6e92a848351427d1926ba5f2285e.tar.gz
scummvm-rg350-3e4c99fce71a6e92a848351427d1926ba5f2285e.tar.bz2
scummvm-rg350-3e4c99fce71a6e92a848351427d1926ba5f2285e.zip
HOPKINS: Implement AVION()
-rw-r--r--engines/hopkins/hopkins.cpp81
1 files changed, 80 insertions, 1 deletions
diff --git a/engines/hopkins/hopkins.cpp b/engines/hopkins/hopkins.cpp
index ec9f872755..795226bd3a 100644
--- a/engines/hopkins/hopkins.cpp
+++ b/engines/hopkins/hopkins.cpp
@@ -1897,7 +1897,85 @@ void HopkinsEngine::JOUE_FIN() {
}
void HopkinsEngine::AVION() {
- warning("STUB - AVION()");
+ warning("AVION()");
+
+ _soundManager.WSOUND(28);
+ _globals.iRegul = 1;
+ _globals.nbrligne = 640;
+ _graphicsManager.DD_Lock();
+ _graphicsManager.Cls_Video();
+ _graphicsManager.DD_Unlock();
+ _graphicsManager.Cls_Pal();
+
+ _animationManager.CLS_ANM = false;
+ if (_globals.SVGA == 1) {
+ _animationManager.PLAY_ANM("aerop00.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("aerop10.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("aerop20.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("aerop30.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("aerop40.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("aerop50.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("aerop60.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("aerop70.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("trans00.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("trans10.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("trans15.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("trans20.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("trans30.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("trans40.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY) {
+ _graphicsManager.FADE_LINUX = 2;
+ _animationManager.PLAY_ANM("PARA00.anm", 9, 9, 9);
+ }
+ } else if (_globals.SVGA == 2) {
+ _animationManager.PLAY_ANM("aerop00a.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("serop10a.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("aerop20a.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("aerop30a.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("aerop40a.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("aerop50a.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("aerop60a.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("aerop70a.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("trans00a.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("trans10a.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("trans15a.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("trans20a.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("trans30a.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY)
+ _animationManager.PLAY_ANM("trans40a.anm", 10, 18, 18);
+ if (!_eventsManager.ESC_KEY) {
+ _graphicsManager.FADE_LINUX = 2;
+ _animationManager.PLAY_ANM("PARA00a.anm", 9, 9, 9);
+ }
+ }
+
+ _eventsManager.ESC_KEY = 0;
+ _animationManager.CLS_ANM = 0;
}
int HopkinsEngine::PWBASE() {
@@ -1950,6 +2028,7 @@ int HopkinsEngine::PWBASE() {
if ((mouseButton == 1) && zone)
loopCond = true;
} while (!loopCond);
+
_globals.DESACTIVE_INVENT = false;
_graphicsManager.FADE_OUTW();