- moved lots of code around, made gameloop even more into a class
[supertux.git] / src / leveleditor.h
1 /***************************************************************************
2  *                                                                         *
3  *   This program is free software; you can redistribute it and/or modify  *
4  *   it under the terms of the GNU General Public License as published by  *
5  *   the Free Software Foundation; either version 2 of the License, or     *
6  *   (at your option) any later version.                                   *
7  *                                                                         *
8  ***************************************************************************/
9
10 /*  December 28, 2003 - February 1st, 2004 */
11
12 /* leveleditor.h - A built-in level editor for SuperTux
13    Ricardo Cruz <rick2@aeiou.pt>                      
14    Tobias Glaesser <tobi.web@gmx.de> */
15
16 #ifndef SUPERTUX_LEVELEDITOR_H
17 #define SUPERTUX_LEVELEDITOR_H
18
19 struct square
20 {
21   int x1, y1, x2, y2;
22 };
23
24 /* selection modes */
25 enum {
26   CURSOR,
27   SQUARE
28 };
29
30 int leveleditor(int levelnb);
31 void newlevel(void);
32 void selectlevel(void);
33 void le_savelevel();
34 void editlevel(void);
35 void testlevel(void);
36 int le_init(void);
37 void le_checkevents(void);
38
39 #endif /*SUPERTUX_LEVELEDITOR_H*/