1 /*
2 * IceBreaker
3 * Copyright (c) 2000-2002 Matthew Miller <mattdm@mattdm.org>
4 *
5 * <http://www.mattdm.org/icebreaker/>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the Free
9 * Software Foundation; either version 2 of the License, or (at your option)
10 * any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 * for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc., 59
19 * Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 *
21 */
22 
23 #ifndef LEVEL_H
24 #define LEVEL_H
25 
26 #include "line.h"
27 #include "penguin.h"
28 
29 typedef enum { ERROR, PASS, DEAD, ZERO, QUIT } LevelExitType;
30 
31 typedef struct
32 {
33 	int basescore;
34 	int clearbonus;
35 	int lifebonus;
36 } ScoreSheet;
37 
38 
39 extern LevelExitType playlevel(int level, long oldscore, ScoreSheet * score);
40 
41 extern void redrawwholelevel(void);
42 extern int checkiflevelatstart(void);
43 
44 // FIX -- these shouldn't need to be globals
45 extern Line line1;
46 extern Line line2;
47 extern Penguin flock[MAXPENGUINS];
48 extern int penguincount;
49 
50 
51 #endif /* LEVEL_H */
52