/
wi_stuff.h
89 lines (75 loc) · 2.59 KB
/
wi_stuff.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/**\file
*\section License
* License: GPL
* Online License Link: http://www.gnu.org/licenses/gpl.html
*
*\author Copyright © 2003-2011 Jaakko Keränen <jaakko.keranen@iki.fi>
*\author Copyright © 2005-2009 Daniel Swanson <danij@dengine.net>
*\author Copyright © 1993-1996 by id Software, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
/**
* wi_stuff.h: Intermission screens
*/
#ifndef __WI_STUFF_H__
#define __WI_STUFF_H__
#ifndef __JDOOM64__
# error "Using jDoom64 headers without __JDOOM64__"
#endif
// Structure passed e.g. to WI_Init(wb)
typedef struct {
boolean inGame; // Whether the player is in game.
// Player stats, kills, collected items etc.
int kills;
int items;
int secret;
int time;
int frags[MAXPLAYERS];
int score; // Current score on entry, modified on return.
} wbplayerstruct_t;
typedef struct {
uint episode;
boolean didSecret; // If true, splash the secret level.
uint currentMap, nextMap; // This and next maps.
int maxKills;
int maxItems;
int maxSecret;
int maxFrags;
int parTime;
int pNum; // Index of this player in game.
wbplayerstruct_t plyr[MAXPLAYERS];
} wbstartstruct_t;
// States for the intermission
typedef enum {
ILS_NONE = -1,
ILS_SHOW_STATS,
ILS_SHOW_NEXTMAP
} interludestate_t;
// Called by main loop, animate the intermission.
void WI_Ticker(void);
// Called by main loop,
// draws the intermission directly into the screen buffer.
void WI_Drawer(void);
// Setup for an intermission screen.
void WI_Init(wbstartstruct_t *wbstartstruct);
void WI_SetState(interludestate_t st);
void WI_End(void);
/**
* Skip to the next state in the intermission.
*/
void IN_SkipToNext(void);
#endif