3 // SuperTux - A Jump'n Run
4 // Copyright (C) 2003 Tobias Glaesser <tobi.web@gmx.de>
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.
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.
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.
20 #ifndef SUPERTUX_RESOURCES_H
21 #define SUPERTUX_RESOURCES_H
23 #include "audio/musicref.h"
25 using namespace SuperTux;
63 extern char* soundfilenames[NUM_SOUNDS];
65 extern Surface* img_waves[3];
66 extern Surface* img_water;
67 extern Surface* img_pole;
68 extern Surface* img_poletop;
69 extern Surface* img_flag[2];
70 extern Surface* img_cloud[2][4];
72 extern Surface* img_super_bkgd;
74 extern MusicRef herring_song;
75 extern MusicRef level_end_song;
77 extern SpriteManager* sprite_manager;
78 extern TileManager* tile_manager;
80 extern Menu* contrib_menu;
81 extern Menu* contrib_subset_menu;
82 extern Menu* main_menu;
83 extern Menu* game_menu;
84 extern Menu* options_menu;
85 extern Menu* options_keys_menu;
86 extern Menu* options_joystick_menu;
87 extern Menu* highscore_menu;
88 extern Menu* load_game_menu;
89 extern Menu* save_game_menu;
91 extern Font* gold_text;
92 extern Font* white_text;
93 extern Font* blue_text;
94 extern Font* gray_text;
95 extern Font* white_small_text;
96 extern Font* white_big_text;
97 extern Font* yellow_nums;
99 // maps a virtual resource path to a real path (ie. levels/bla is mapped to
100 // $DATADIR/levels/bla or $HOME/.supertux/levels/bla)
101 std::string get_resource_filename(const std::string& resource);