File: missionbrief.h

package info (click to toggle)
freespace2 24.2.0%2Brepack-1
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 43,716 kB
  • sloc: cpp: 595,001; ansic: 21,741; python: 1,174; sh: 457; makefile: 248; xml: 181
file content (83 lines) | stat: -rw-r--r-- 2,296 bytes parent folder | download | duplicates (2)
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
/*
 * Copyright (C) Volition, Inc. 1999.  All rights reserved.
 *
 * All source code herein is the property of Volition, Inc. You may not sell 
 * or otherwise commercially exploit the source or things you created based on the 
 * source.
 *
*/ 



#ifndef _MISSIONBRIEF_H
#define _MISSIONBRIEF_H

#include "ui/ui.h"

// #defines to identify which screen we are on
#define ON_BRIEFING_SELECT			1
#define ON_SHIP_SELECT				2
#define ON_WEAPON_SELECT			3

// briefing buttons
#define BRIEF_BUTTON_LAST_STAGE		0
#define BRIEF_BUTTON_NEXT_STAGE		1
#define BRIEF_BUTTON_PREV_STAGE		2
#define BRIEF_BUTTON_FIRST_STAGE		3
#define BRIEF_BUTTON_SCROLL_UP		4
#define BRIEF_BUTTON_SCROLL_DOWN		5
#define BRIEF_BUTTON_SKIP_TRAINING	6
#define BRIEF_BUTTON_PAUSE				7
#define BRIEF_BUTTON_MULTI_LOCK		8
#define BRIEF_BUTTON_EXIT_LOOP		9


#define NUM_BRIEFING_REGIONS	(NUM_COMMON_REGIONS + 8)

extern int	Brief_multitext_bitmap;	// bitmap for multiplayer chat window
extern int	Brief_background_bitmap;
extern UI_INPUTBOX	Common_multi_text_inputbox[3];

// Sounds
#define		BRIEFING_MUSIC_DELAY	2500		// 650 ms delay before briefing music starts
extern int	Briefing_music_handle;
extern UI_TIMESTAMP	Briefing_music_begin_timestamp;

extern int Briefing_overlay_id;

extern int Briefing_paused;	// for stopping audio and stage progression

struct brief_icon;

extern brief_icon* Closeup_icon;
extern char Closeup_type_name[NAME_LENGTH];
extern float Closeup_zoom;
extern vec3d Closeup_cam_pos;

void brief_api_init();
void brief_api_do_frame(float frametime);
void brief_do_next_pressed(int play_sound);
void brief_do_prev_pressed();
void brief_do_start_pressed();
void brief_do_end_pressed();
void brief_api_close();
void brief_check_for_anim(bool api_access = false, int api_x = -1, int api_y = -1);

void brief_init();
void brief_close();
void brief_do_frame(float frametime);
//void brief_unhide_buttons(); This doesn't seem to exist in the code -Mjn
brief_icon *brief_get_closeup_icon();
void brief_turn_off_closeup_icon(bool api_access = false);

void briefing_stop_music(bool fade);
void briefing_start_music();
void briefing_load_music(const char* fname);
void brief_stop_voices();

void brief_pause();
void brief_unpause();

int brief_only_allow_briefing();

#endif // don't add anything past this line