1 /**************************************************************
2  *         _____    __                       _____            *
3  *        /  _  \  |  |    ____  ___  ___   /  |  |           *
4  *       /  /_\  \ |  |  _/ __ \ \  \/  /  /   |  |_          *
5  *      /    |    \|  |__\  ___/  >    <  /    ^   /          *
6  *      \____|__  /|____/ \___  >/__/\_ \ \____   |           *
7  *              \/            \/       \/      |__|           *
8  *                                                            *
9  **************************************************************
10  *    (c) Free Lunch Design 2003                              *
11  *    Written by Johan Peitz                                  *
12  *    http://www.freelunchdesign.com                          *
13  **************************************************************
14  *    This source code is released under the The GNU          *
15  *    General Public License (GPL). Please refer to the       *
16  *    document license.txt in the source directory or         *
17  *    http://www.gnu.org for license information.             *
18  **************************************************************/
19 
20 
21 
22 
23 #ifndef _OPTIONS_H_
24 #define _OPTIONS_H_
25 
26 #include "allegro.h"
27 
28 // number of levels to count cherries/stars on
29 #define MAX_LEVELS		64
30 
31 // the options struct
32 typedef struct {
33 	int max_levels;
34 	int cherries[MAX_LEVELS];
35 	int stars[MAX_LEVELS];
36 	int use_vsync;
37 	int one_hundred;
38 } Toptions;
39 
40 
41 // functions
42 void save_options(Toptions *o, PACKFILE *fp);
43 void load_options(Toptions *o, PACKFILE *fp);
44 void reset_options(Toptions *o);
45 
46 #endif