The SuperTux library features a SuperTux namespace now.
[supertux.git] / src / resources.h
1 //  $Id$
2 //
3 //  SuperTux -  A Jump'n Run
4 //  Copyright (C) 2003 Tobias Glaesser <tobi.web@gmx.de>
5 //
6 //  This program is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU General Public License
8 //  as published by the Free Software Foundation; either version 2
9 //  of the License, or (at your option) any later version.
10 //
11 //  This program is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 //  GNU General Public License for more details.
15 //
16 //  You should have received a copy of the GNU General Public License
17 //  along with this program; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
20 #ifndef SUPERTUX_RESOURCES_H
21 #define SUPERTUX_RESOURCES_H
22
23 #include "audio/musicref.h"
24 #include "gui/menu.h"
25
26 using namespace SuperTux;
27
28 namespace SuperTux {
29 class SpriteManager;
30 class SoundManager;
31 }
32
33 /* Sound files: */
34 enum {
35   SND_JUMP,
36   SND_BIGJUMP,
37   SND_SKID,
38   SND_DISTRO,
39   SND_HERRING,
40   SND_BRICK,
41   SND_HURT,
42   SND_SQUISH,
43   SND_FALL,
44   SND_RICOCHET,
45   SND_BUMP_UPGRADE,
46   SND_UPGRADE,
47   SND_EXCELLENT,
48   SND_COFFEE,
49   SND_SHOOT,
50   SND_LIFEUP,
51   SND_STOMP,
52   SND_KICK,
53   SND_EXPLODE,
54   NUM_SOUNDS
55 };
56
57 extern char* soundfilenames[NUM_SOUNDS];
58
59 extern Surface* img_waves[3]; 
60 extern Surface* img_water;
61 extern Surface* img_pole;
62 extern Surface* img_poletop;
63 extern Surface* img_flag[2];
64 extern Surface* img_cloud[2][4];
65
66 extern Surface* img_super_bkgd;
67
68 extern MusicRef herring_song;
69 extern MusicRef level_end_song;
70
71 extern SpriteManager* sprite_manager;
72 extern SoundManager* sound_manager;
73
74 extern Menu* contrib_menu;
75 extern Menu* contrib_subset_menu;
76 extern Menu* main_menu;
77 extern Menu* game_menu;
78 extern Menu* options_menu;
79 extern Menu* options_keys_menu;
80 extern Menu* options_joystick_menu;
81 extern Menu* highscore_menu;
82 extern Menu* load_game_menu;
83 extern Menu* save_game_menu;
84
85 void loadshared();
86 void unloadshared();
87
88 #endif
89
90 /* EOF */
91