1035
|
1 #include <assert.h>
|
|
2
|
1016
|
3 #include "CShow.h"
|
|
4
|
|
5 #include "VideoPlayer.h"
|
|
6 #include "Mouse.h"
|
|
7
|
1035
|
8 void CShow::PlayMovie(MovieType eVideo, bool bShowMouseAfterPlayback)
|
1016
|
9 {
|
1035
|
10 if (bNoVideo) return;
|
|
11
|
|
12 if (pAsyncMouse)
|
|
13 pAsyncMouse->Suspend();
|
1016
|
14
|
1035
|
15 switch (eVideo)
|
|
16 {
|
|
17 case MOVIE_3DOLogo: VideoPlayer::MovieLoop("3dologo", 0, 0, 1); break;
|
|
18 case MOVIE_NWCLogo: VideoPlayer::MovieLoop("new world logo", 0, 1, 1); break;
|
|
19 case MOVIE_JVC: VideoPlayer::MovieLoop("jvc", 0, 1, 1); break;
|
|
20 case MOVIE_Intro: VideoPlayer::MovieLoop("Intro", 0, 1, 1); break;
|
|
21 case MOVIE_Emerald: VideoPlayer::MovieLoop("Intro Post", 0, 1, 1); break;
|
|
22 case MOVIE_Death: VideoPlayer::MovieLoop("losegame", 2, 1, 1); break;
|
|
23 case MOVIE_Outro: VideoPlayer::MovieLoop("end_seq1", 20, 1, 1); break;
|
1016
|
24
|
1035
|
25 default:
|
|
26 assert(false && "Invalid movie requested in " __FUNCTION__);
|
|
27 break;
|
|
28 }
|
|
29
|
|
30 if (bShowMouseAfterPlayback)
|
1016
|
31 if (pAsyncMouse)
|
1035
|
32 pAsyncMouse->Resume();
|
1016
|
33 }
|
|
34
|