]> icculus.org git repositories - taylor/freespace2.git/blob - include/missioncmdbrief.h
added copyright header
[taylor/freespace2.git] / include / missioncmdbrief.h
1 /*
2  * Copyright (C) Volition, Inc. 1999.  All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell 
5  * or otherwise commercially exploit the source or things you created based on
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/MissionUI/MissionCmdBrief.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Mission Command Briefing Screen
16  *
17  * $Log$
18  * Revision 1.2  2002/06/09 04:41:13  relnev
19  * added copyright header
20  *
21  * Revision 1.1.1.1  2002/05/03 03:28:12  root
22  * Initial import.
23  *
24  * 
25  * 2     10/07/98 10:53a Dave
26  * Initial checkin.
27  * 
28  * 1     10/07/98 10:49a Dave
29  * 
30  * 7     4/06/98 8:37p Hoffoss
31  * Fixed a few bugs with command brief screen.  Now the voice starts after
32  * the text has printed, and options screen doesn't reset cmd brief.
33  * 
34  * 6     3/26/98 5:24p Hoffoss
35  * Changed Command Brief to use memory mapped ani files instead, so we
36  * avoid the huge pauses for huge anis that play!
37  * 
38  * 5     3/19/98 4:25p Hoffoss
39  * Added remaining support for command brief screen (ANI and WAVE file
40  * playing).
41  * 
42  * 4     3/17/98 6:26p Hoffoss
43  * Added wave filename to command brief structure.
44  * 
45  * 3     3/05/98 9:38p Hoffoss
46  * Finished up command brief screen.
47  * 
48  * 2     3/05/98 3:59p Hoffoss
49  * Added a bunch of new command brief stuff, and asteroid initialization
50  * to Fred.
51  * 
52  * 1     3/02/98 6:14p Hoffoss
53  *
54  * $NoKeywords: $
55  */
56
57 #define CMD_BRIEF_TEXT_MAX              16384
58 #define CMD_BRIEF_STAGES_MAX    10
59
60 typedef struct {
61         char *text;  // text to display
62         char ani_filename[MAX_FILENAME_LEN];  // associated ani file to play
63         anim_t *anim;
64         anim_instance_t *anim_instance;
65         int anim_ref;  // potential reference to another index (use it's anim instead of this's)
66         char wave_filename[MAX_FILENAME_LEN];
67         int wave;  // instance number of above
68 } cmd_brief_stage;
69
70 typedef struct {
71         int num_stages;
72         cmd_brief_stage stage[CMD_BRIEF_STAGES_MAX];
73 } cmd_brief;
74
75 extern cmd_brief Cmd_briefs[MAX_TEAMS];
76 extern cmd_brief *Cur_cmd_brief;  // pointer to one of the Cmd_briefs elements (the active one)
77
78 void cmd_brief_init(int stages);
79 void cmd_brief_close();
80 void cmd_brief_do_frame(float frametime);
81 void cmd_brief_hold();
82 void cmd_brief_unhold();
83