Mercurial > mm7
annotate CShow.h @ 2157:c6d8253d4cbc
Слияние
author | Ritor1 |
---|---|
date | Fri, 10 Jan 2014 17:42:57 +0600 |
parents | ca548138d6aa |
children | cb66a1082fcf |
rev | line source |
---|---|
0 | 1 #pragma once |
1397 | 2 #include "VideoPlayer.h" |
1545 | 3 #include "ErrorHandling.h" |
0 | 4 |
5 | |
6 /* 302 */ | |
7 enum MovieType | |
8 { | |
9 MOVIE_Invalid = 0x0, | |
10 MOVIE_3DOLogo = 0x1, | |
11 MOVIE_NWCLogo = 0x2, | |
12 MOVIE_JVC = 0x3, | |
13 MOVIE_Emerald = 0x4, | |
14 MOVIE_Intro = 0x5, | |
15 MOVIE_Death = 0x6, | |
16 MOVIE_Outro = 0x7, | |
17 }; | |
18 | |
1397 | 19 inline void PlayFullscreenMovie(MovieType movie, bool bShowMouseAfterPlayback = false) |
20 { | |
21 extern unsigned int bNoVideo; | |
22 if (bNoVideo) return; | |
0 | 23 |
1397 | 24 switch (movie) |
25 { | |
2142
ca548138d6aa
some code cleaning in video playing, loops play but there is a memory leak
zipi
parents:
1545
diff
changeset
|
26 case MOVIE_3DOLogo: pVideoPlayer->MovieLoop("3dologo", 0, 0, 1); break; |
ca548138d6aa
some code cleaning in video playing, loops play but there is a memory leak
zipi
parents:
1545
diff
changeset
|
27 case MOVIE_NWCLogo: pVideoPlayer->MovieLoop("new world logo", 0, 1, 1); break; |
ca548138d6aa
some code cleaning in video playing, loops play but there is a memory leak
zipi
parents:
1545
diff
changeset
|
28 case MOVIE_JVC: pVideoPlayer->MovieLoop("jvc", 0, 1, 1); break; |
ca548138d6aa
some code cleaning in video playing, loops play but there is a memory leak
zipi
parents:
1545
diff
changeset
|
29 case MOVIE_Intro: pVideoPlayer->MovieLoop("Intro", 0, 1, 1); break; |
ca548138d6aa
some code cleaning in video playing, loops play but there is a memory leak
zipi
parents:
1545
diff
changeset
|
30 case MOVIE_Emerald: pVideoPlayer->MovieLoop("Intro Post", 0, 1, 1); break; |
ca548138d6aa
some code cleaning in video playing, loops play but there is a memory leak
zipi
parents:
1545
diff
changeset
|
31 case MOVIE_Death: pVideoPlayer->MovieLoop("losegame", 2, 1, 1); break; |
ca548138d6aa
some code cleaning in video playing, loops play but there is a memory leak
zipi
parents:
1545
diff
changeset
|
32 case MOVIE_Outro: pVideoPlayer->MovieLoop("end_seq1", 20, 1, 1); break; |
1397 | 33 |
34 default: | |
1545 | 35 Error("Invalid movie requested: %u", movie); |
1397 | 36 break; |
37 } | |
38 } | |
39 | |
40 /* | |
0 | 41 #pragma pack(push, 1) |
1103 | 42 class CShow |
0 | 43 { |
1103 | 44 public: |
0 | 45 //----- (004A9507) -------------------------------------------------------- |
46 CShow() {} | |
47 | |
48 //----- (004A9510) -------------------------------------------------------- | |
49 virtual ~CShow() {} | |
50 | |
51 | |
52 //----- (004A952D) -------------------------------------------------------- | |
1029 | 53 void PlayMovie(MovieType eVideo, bool bShowMouseAfterPlayback); |
0 | 54 |
55 | |
1458 | 56 void ( ***vdestructor_ptr)(CShow *, bool); |
0 | 57 }; |
1397 | 58 #pragma pack(pop)*/ |