annotate CShow.h @ 1756:dc5d8edf629a

Merge
author Ritor1
date Mon, 30 Sep 2013 18:06:01 +0600
parents c4ab816fcc5e
children ca548138d6aa
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 {
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
26 case MOVIE_3DOLogo: VideoPlayer::MovieLoop("3dologo", 0, 0, 1); break;
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
27 case MOVIE_NWCLogo: VideoPlayer::MovieLoop("new world logo", 0, 1, 1); break;
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
28 case MOVIE_JVC: VideoPlayer::MovieLoop("jvc", 0, 1, 1); break;
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
29 case MOVIE_Intro: VideoPlayer::MovieLoop("Intro", 0, 1, 1); break;
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
30 case MOVIE_Emerald: VideoPlayer::MovieLoop("Intro Post", 0, 1, 1); break;
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
31 case MOVIE_Death: VideoPlayer::MovieLoop("losegame", 2, 1, 1); break;
eb02a65e5c82 Quick Spell fixed.
Nomad
parents: 1103
diff changeset
32 case MOVIE_Outro: VideoPlayer::MovieLoop("end_seq1", 20, 1, 1); break;
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)*/