annotate CShow.h @ 2331:9551756f46c4

Moving functions out of mm7_6.cpp into appropriate classes as static methods or free functions
author Grumpy7
date Wed, 02 Apr 2014 01:21:05 +0200
parents ca548138d6aa
children cb66a1082fcf
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
1397
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
2 #include "VideoPlayer.h"
1545
c4ab816fcc5e assert, Abortf, AbortWithError -> Assert, Error
Nomad
parents: 1458
diff changeset
3 #include "ErrorHandling.h"
0
Ritor1
parents:
diff changeset
4
Ritor1
parents:
diff changeset
5
Ritor1
parents:
diff changeset
6 /* 302 */
Ritor1
parents:
diff changeset
7 enum MovieType
Ritor1
parents:
diff changeset
8 {
Ritor1
parents:
diff changeset
9 MOVIE_Invalid = 0x0,
Ritor1
parents:
diff changeset
10 MOVIE_3DOLogo = 0x1,
Ritor1
parents:
diff changeset
11 MOVIE_NWCLogo = 0x2,
Ritor1
parents:
diff changeset
12 MOVIE_JVC = 0x3,
Ritor1
parents:
diff changeset
13 MOVIE_Emerald = 0x4,
Ritor1
parents:
diff changeset
14 MOVIE_Intro = 0x5,
Ritor1
parents:
diff changeset
15 MOVIE_Death = 0x6,
Ritor1
parents:
diff changeset
16 MOVIE_Outro = 0x7,
Ritor1
parents:
diff changeset
17 };
Ritor1
parents:
diff changeset
18
1397
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
19 inline void PlayFullscreenMovie(MovieType movie, bool bShowMouseAfterPlayback = false)
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
20 {
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
21 extern unsigned int bNoVideo;
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
22 if (bNoVideo) return;
0
Ritor1
parents:
diff changeset
23
1397
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
24 switch (movie)
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
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
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
33
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
34 default:
1545
c4ab816fcc5e assert, Abortf, AbortWithError -> Assert, Error
Nomad
parents: 1458
diff changeset
35 Error("Invalid movie requested: %u", movie);
1397
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
36 break;
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
37 }
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
38 }
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
39
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
40 /*
0
Ritor1
parents:
diff changeset
41 #pragma pack(push, 1)
1103
db395ce89ede struct/class incostintency
Grumpy7
parents: 1029
diff changeset
42 class CShow
0
Ritor1
parents:
diff changeset
43 {
1103
db395ce89ede struct/class incostintency
Grumpy7
parents: 1029
diff changeset
44 public:
0
Ritor1
parents:
diff changeset
45 //----- (004A9507) --------------------------------------------------------
Ritor1
parents:
diff changeset
46 CShow() {}
Ritor1
parents:
diff changeset
47
Ritor1
parents:
diff changeset
48 //----- (004A9510) --------------------------------------------------------
Ritor1
parents:
diff changeset
49 virtual ~CShow() {}
Ritor1
parents:
diff changeset
50
Ritor1
parents:
diff changeset
51
Ritor1
parents:
diff changeset
52 //----- (004A952D) --------------------------------------------------------
1029
c94d6a37d298 Pointing a face with mouse fixed.
Nomad
parents: 1016
diff changeset
53 void PlayMovie(MovieType eVideo, bool bShowMouseAfterPlayback);
0
Ritor1
parents:
diff changeset
54
Ritor1
parents:
diff changeset
55
1458
934074e7fcc1 ModalWindow
Nomad
parents: 1397
diff changeset
56 void ( ***vdestructor_ptr)(CShow *, bool);
0
Ritor1
parents:
diff changeset
57 };
1397
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
58 #pragma pack(pop)*/