File: options.h

package info (click to toggle)
alex4 1.1-8
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,112 kB
  • sloc: ansic: 6,312; makefile: 27
file content (46 lines) | stat: -rw-r--r-- 1,640 bytes parent folder | download | duplicates (6)
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
/**************************************************************
 *         _____    __                       _____            *
 *        /  _  \  |  |    ____  ___  ___   /  |  |           *
 *       /  /_\  \ |  |  _/ __ \ \  \/  /  /   |  |_          *
 *      /    |    \|  |__\  ___/  >    <  /    ^   /          *
 *      \____|__  /|____/ \___  >/__/\_ \ \____   |           *
 *              \/            \/       \/      |__|           *
 *                                                            *
 **************************************************************
 *    (c) Free Lunch Design 2003                              *
 *    Written by Johan Peitz                                  *
 *    http://www.freelunchdesign.com                          *
 **************************************************************
 *    This source code is released under the The GNU          *
 *    General Public License (GPL). Please refer to the       *
 *    document license.txt in the source directory or         *
 *    http://www.gnu.org for license information.             *
 **************************************************************/
 
 
 

#ifndef _OPTIONS_H_
#define _OPTIONS_H_

#include "allegro.h"

// number of levels to count cherries/stars on
#define MAX_LEVELS		64

// the options struct
typedef struct {
	int max_levels;
	int cherries[MAX_LEVELS];
	int stars[MAX_LEVELS];
	int use_vsync;
	int one_hundred;
} Toptions;


// functions
void save_options(Toptions *o, PACKFILE *fp);
void load_options(Toptions *o, PACKFILE *fp);
void reset_options(Toptions *o);

#endif