File: fictionviewer.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 (48 lines) | stat: -rw-r--r-- 1,247 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
/*
 * Created by Ian "Goober5000" Warfield for the FreeSpace2 Source Code Project.
 * You may not sell or otherwise commercially exploit the source or things you
 * create based on the source.
 */



#ifndef __FICTION_VIEWER_H__
#define __FICTION_VIEWER_H__

#include "globalincs/globals.h"
#include "globalincs/pstypes.h"
#include "graphics/2d.h"


// since we may now have multiple possible fiction stages, activated by a formula
typedef struct fiction_viewer_stage {
	char story_filename[MAX_FILENAME_LEN];
	char font_filename[MAX_FILENAME_LEN];
	char voice_filename[MAX_FILENAME_LEN];

	char ui_name[NAME_LENGTH];
	char background[GR_NUM_RESOLUTIONS][MAX_FILENAME_LEN];

	int formula;
} fiction_viewer_stage;

extern SCP_vector<fiction_viewer_stage> Fiction_viewer_stages;
extern int Fiction_viewer_active_stage;


// management stuff
void fiction_viewer_init();
void fiction_viewer_close();
void fiction_viewer_do_frame(float frametime);

// fiction stuff
bool mission_has_fiction();
int fiction_viewer_ui_name_to_index(const char *ui_name);
void fiction_viewer_reset();
SCP_string get_localized_fiction_filename(const char* filename);
void fiction_viewer_load(int stage);

void fiction_viewer_pause();
void fiction_viewer_unpause();

#endif