many code-cleanups. merged leveleditor patch from Ricardo Cruz. Fixed bugs. many...
[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  by Ricardo Cruz <rick2@aeiou.pt>                      */
14
15 #ifndef SUPERTUX_LEVELEDITOR_H
16 #define SUPERTUX_LEVELEDITOR_H
17
18 typedef struct square
19   {
20     int x1, y1, x2, y2;
21   }
22 square;
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*/