TODO update
[supertux.git] / src / leveleditor.h
1 //  $Id$
2 // 
3 //  SuperTux
4 //  Copyright (C) 2003 Ricardo Cruz <rick2@aeiou.pt>
5 //  Copyright (C) 2003 Tobias Glaesser <tobi.web@gmx.de>
6 //
7 //  This program is free software; you can redistribute it and/or
8 //  modify it under the terms of the GNU General Public License
9 //  as published by the Free Software Foundation; either version 2
10 //  of the License, or (at your option) any later version.
11 //
12 //  This program is distributed in the hope that it will be useful,
13 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 //  GNU General Public License for more details.
16 // 
17 //  You should have received a copy of the GNU General Public License
18 //  along with this program; if not, write to the Free Software
19 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20
21 /* leveleditor.h - A built-in level editor for SuperTux */
22
23 #ifndef SUPERTUX_LEVELEDITOR_H
24 #define SUPERTUX_LEVELEDITOR_H
25
26 struct square
27 {
28   int x1, y1, x2, y2;
29 };
30
31 /* selection modes */
32 enum {
33   CURSOR,
34   SQUARE
35 };
36
37 int leveleditor(int levelnb);
38 void newlevel(void);
39 void selectlevel(void);
40 void le_savelevel();
41 void editlevel(void);
42 void testlevel(void);
43 int le_init(void);
44 void le_checkevents(void);
45
46 #endif /*SUPERTUX_LEVELEDITOR_H*/