]> icculus.org git repositories - taylor/freespace2.git/blob - include/cutscenes.h
added copyright header
[taylor/freespace2.git] / include / cutscenes.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/Cutscene/Cutscenes.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Code for the cutscenes viewer screen
16  *
17  * $Log$
18  * Revision 1.2  2002/06/09 04:41:12  relnev
19  * added copyright header
20  *
21  * Revision 1.1.1.1  2002/05/03 03:28:11  root
22  * Initial import.
23  *
24  * 
25  * 2     10/07/98 10:52a Dave
26  * Initial checkin.
27  * 
28  * 1     10/07/98 10:48a Dave
29  * 
30  * 6     5/21/98 12:35a Lawrance
31  * Tweak how CD is checked for
32  * 
33  * 5     5/10/98 10:05p Allender
34  * only show cutscenes which have been seen before.  Made Fred able to
35  * write missions anywhere, defaulting to player misison folder, not data
36  * mission folder.  Fix FreeSpace code to properly read missions from
37  * correct locations
38  * 
39  * 4     5/08/98 5:30p Lawrance
40  * add cutscenes_validate_cd()
41  * 
42  * 3     5/08/98 4:07p Allender
43  * more cutscene stuff
44  * 
45  * 2     4/17/98 6:33p Hoffoss
46  * Made changes to the tech room group of screens.  Cutscenes screen is
47  * now in a new file.
48  *
49  * $NoKeywords: $
50  */
51
52 #ifndef _FREESPACE_CUTSCENES_SCREEN_HEADER_FILE
53 #define _FREESPACE_CUTSCENES_SCREEN_HEADER_FILE
54
55 #include "parselo.h"
56
57 #define MAX_CUTSCENES   10
58
59 // this cutscene is always available.
60 #define INTRO_CUTSCENE_FLAG             (1<<0)
61
62 typedef struct cutscene_info
63 {
64         char            filename[MAX_FILENAME_LEN];
65         char            name[NAME_LENGTH];
66         char            *description;
67         int             cd;
68 } cutscene_info;
69
70 extern cutscene_info Cutscenes[MAX_CUTSCENES];
71 extern int Num_cutscenes;
72 extern int Cutscenes_viewable;
73
74 // initializa table data
75 void cutscene_init();
76 int cutscene_get_cd_num(char *filename);
77
78
79 void cutscenes_screen_init();
80 void cutscenes_screen_close();
81 void cutscenes_screen_do_frame();
82
83 int cutscenes_validate_cd(char *mve_name, int prompt_for_cd = 1);
84 void cutscene_mark_viewable(char *filename);
85
86 #endif
87