FS2_Open
Open source remastering of the Freespace 2 engine
fictionviewer.h
Go to the documentation of this file.
1 /*
2  * Created by Ian "Goober5000" Warfield for the FreeSpace2 Source Code Project.
3  * You may not sell or otherwise commercially exploit the source or things you
4  * create based on the source.
5  */
6 
7 
8 
9 #ifndef __FICTION_VIEWER_H__
10 #define __FICTION_VIEWER_H__
11 
12 #include "globalincs/globals.h"
13 #include "globalincs/pstypes.h"
14 #include "graphics/2d.h"
15 
16 
17 // since we may now have multiple possible fiction stages, activated by a formula
18 typedef struct fiction_viewer_stage {
22 
25 
26  int formula;
28 
30 
31 
32 // management stuff
33 void fiction_viewer_init();
35 void fiction_viewer_do_frame(float frametime);
36 
37 // fiction stuff
38 bool mission_has_fiction();
39 int fiction_viewer_ui_name_to_index(const char *ui_name);
41 void fiction_viewer_load(int stage);
42 
45 
46 #endif
#define MAX_FILENAME_LEN
Definition: pstypes.h:324
char ui_name[NAME_LENGTH]
Definition: fictionviewer.h:23
char background[GR_NUM_RESOLUTIONS][MAX_FILENAME_LEN]
Definition: fictionviewer.h:24
#define GR_NUM_RESOLUTIONS
Definition: 2d.h:651
void fiction_viewer_unpause()
char story_filename[MAX_FILENAME_LEN]
Definition: fictionviewer.h:19
char voice_filename[MAX_FILENAME_LEN]
Definition: fictionviewer.h:21
void fiction_viewer_reset()
void fiction_viewer_init()
void fiction_viewer_close()
char font_filename[MAX_FILENAME_LEN]
Definition: fictionviewer.h:20
int fiction_viewer_ui_name_to_index(const char *ui_name)
void fiction_viewer_load(int stage)
void fiction_viewer_pause()
#define NAME_LENGTH
Definition: globals.h:15
void fiction_viewer_do_frame(float frametime)
SCP_vector< fiction_viewer_stage > Fiction_viewer_stages
struct fiction_viewer_stage fiction_viewer_stage
bool mission_has_fiction()