FS2_Open
Open source remastering of the Freespace 2 engine
missionbrief.h
Go to the documentation of this file.
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 the
6  * source.
7  *
8 */
9 
10 
11 
12 #ifndef _MISSIONBRIEF_H
13 #define _MISSIONBRIEF_H
14 
15 #include "ui/ui.h"
16 
17 // #defines to identify which screen we are on
18 #define ON_BRIEFING_SELECT 1
19 #define ON_SHIP_SELECT 2
20 #define ON_WEAPON_SELECT 3
21 
22 // briefing buttons
23 #define BRIEF_BUTTON_LAST_STAGE 0
24 #define BRIEF_BUTTON_NEXT_STAGE 1
25 #define BRIEF_BUTTON_PREV_STAGE 2
26 #define BRIEF_BUTTON_FIRST_STAGE 3
27 #define BRIEF_BUTTON_SCROLL_UP 4
28 #define BRIEF_BUTTON_SCROLL_DOWN 5
29 #define BRIEF_BUTTON_SKIP_TRAINING 6
30 #define BRIEF_BUTTON_PAUSE 7
31 #define BRIEF_BUTTON_MULTI_LOCK 8
32 #define BRIEF_BUTTON_EXIT_LOOP 9
33 
34 
35 #define NUM_BRIEFING_REGIONS (NUM_COMMON_REGIONS + 8)
36 
37 extern int Brief_multitext_bitmap; // bitmap for multiplayer chat window
38 extern int Brief_background_bitmap;
40 
41 // Sounds
42 #define BRIEFING_MUSIC_DELAY 2500 // 650 ms delay before briefing music starts
43 extern int Briefing_music_handle;
45 
46 extern int Briefing_overlay_id;
47 
48 extern int Briefing_paused; // for stopping audio and stage progression
49 
50 struct brief_icon;
51 
52 void brief_init();
53 void brief_close();
54 void brief_do_frame(float frametime);
58 
59 void briefing_stop_music(bool fade);
61 void briefing_load_music(char* fname);
62 void brief_stop_voices();
63 
64 void brief_pause();
65 void brief_unpause();
66 
68 
69 #endif // don't add anything past this line
int Brief_multitext_bitmap
void brief_unpause()
void brief_stop_voices()
int Briefing_music_handle
int Briefing_overlay_id
UI_INPUTBOX Common_multi_text_inputbox[3]
void briefing_start_music()
void brief_close()
int Briefing_music_begin_timestamp
int Brief_background_bitmap
brief_icon * brief_get_closeup_icon()
void brief_pause()
void brief_init()
void briefing_load_music(char *fname)
int Briefing_paused
void brief_unhide_buttons()
void brief_do_frame(float frametime)
void briefing_stop_music(bool fade)
int brief_only_allow_briefing()
void brief_turn_off_closeup_icon()