move over rewritten lispreader from tuxkart (with additional fixes), generalized...
[supertux.git] / src / misc.h
1 //  SuperTux
2 //  Copyright (C) 2004 Tobas Glaesser <tobi.web@gmx.de>
3 //
4 //  This program is free software; you can redistribute it and/or
5 //  modify it under the terms of the GNU General Public License
6 //  as published by the Free Software Foundation; either version 2
7 //  of the License, or (at your option) any later version.
8 //
9 //  This program is distributed in the hope that it will be useful,
10 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 //  GNU General Public License for more details.
13 // 
14 //  You should have received a copy of the GNU General Public License
15 //  along with this program; if not, write to the Free Software
16 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17
18 #ifndef SUPERTUX_MISC_H
19 #define SUPERTUX_MISC_H
20
21 #include "app/setup.h"
22 #include "app/gettext.h"
23 #include "gui/menu.h"
24 #include "utils/configfile.h"
25 #include "title.h"
26 #include "resources.h"
27 #include "worldmap.h"
28 #include "gameloop.h"
29 #include "object/player.h"
30
31 class MyConfig : public Config
32 {
33   public:
34     void customload(const lisp::Lisp& reader);
35     void customsave(FILE * config);
36 };
37
38 enum OptionsMenuIDs {
39   MNID_OPENGL,
40   MNID_FULLSCREEN,
41   MNID_SOUND,
42   MNID_MUSIC,
43   MNID_SHOWFPS
44   };
45
46 /* Handle changes made to global settings in the options menu. */
47 void process_options_menu();
48
49 /* Create and setup menus. */
50 void st_menu();
51 void st_menu_free();
52
53 #endif //SUPERTUX_MISC_H
54