Debian Codegraph @

prboom2/src/heretic/d_main.c

raw
1 //
2 // Copyright(C) 1993-1996 Id Software, Inc.
3 // Copyright(C) 1993-2008 Raven Software
4 // Copyright(C) 2005-2014 Simon Howard
5 //
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16
17 // D_main.c
18
19 #include "sounds.h"
20 #include "g_game.h"
21 #include "d_main.h"
22
23 #include "heretic/dstrings.h"
24
25 static void Heretic_D_DrawTitle(const char *_x)
26 {
27 D_SetPage("TITLE", 210, heretic_mus_titl);
28 }
29
30 static void Heretic_D_DrawTitle2(const char *_x)
31 {
32 D_SetPage("TITLE", 140, 0);
33 }
34
35 static void Heretic_D_DrawCredits(const char *_x)
36 {
37 D_SetPage("CREDIT", 200, 0);
38 }
39
40 static void Heretic_D_DrawOrder(const char *_x)
41 {
42 D_SetPage("ORDER", 200, 0);
43 }
44
45 const demostate_t heretic_demostates[][4] =
46 {
47 {
48 { Heretic_D_DrawTitle, NULL },
49 { Heretic_D_DrawTitle, NULL },
50 { Heretic_D_DrawTitle, NULL },
51 { Heretic_D_DrawTitle, NULL },
52 },
53
54 {
55 { Heretic_D_DrawTitle2, NULL },
56 { Heretic_D_DrawTitle2, NULL },
57 { Heretic_D_DrawTitle2, NULL },
58 { Heretic_D_DrawTitle2, NULL },
59 },
60
61 {
62 { G_DeferedPlayDemo, "demo1" },
63 { G_DeferedPlayDemo, "demo1" },
64 { G_DeferedPlayDemo, "demo1" },
65 { G_DeferedPlayDemo, "demo1" },
66 },
67
68 {
69 { Heretic_D_DrawCredits, NULL },
70 { Heretic_D_DrawCredits, NULL },
71 { Heretic_D_DrawCredits, NULL },
72 { Heretic_D_DrawCredits, NULL },
73 },
74
75 {
76 { G_DeferedPlayDemo, "demo2" },
77 { G_DeferedPlayDemo, "demo2" },
78 { G_DeferedPlayDemo, "demo2" },
79 { G_DeferedPlayDemo, "demo2" },
80 },
81
82 {
83 { Heretic_D_DrawOrder, NULL },
84 { Heretic_D_DrawCredits, NULL },
85 { Heretic_D_DrawCredits, NULL },
86 { Heretic_D_DrawCredits, NULL },
87 },
88
89 {
90 { G_DeferedPlayDemo, "demo3" },
91 { G_DeferedPlayDemo, "demo3" },
92 { G_DeferedPlayDemo, "demo3" },
93 { G_DeferedPlayDemo, "demo3" },
94 },
95
96 {
97 {NULL},
98 {NULL},
99 {NULL},
100 {NULL},
101 }
102 };