X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fresources.h;h=c3bcbaaa528f2959b7400da1d028d0bb101f0d64;hb=06d8c72d9ebafa93f8d3bb63b00a2d0bdba61b82;hp=dee4ee003905e43572012dd062ba06d9b16ae354;hpb=7a87271678d68514ae2158c0c7adb383d6002872;p=supertux.git diff --git a/src/resources.h b/src/resources.h index dee4ee003..c3bcbaaa5 100644 --- a/src/resources.h +++ b/src/resources.h @@ -16,70 +16,38 @@ // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - #ifndef SUPERTUX_RESOURCES_H #define SUPERTUX_RESOURCES_H +#include #include "audio/musicref.h" -using namespace SuperTux; - -namespace SuperTux { class SpriteManager; -class SoundManager; class Menu; class Font; class Surface; -} - +class SoundManager; class TileManager; - -/* Sound files: */ -enum { - SND_JUMP, - SND_BIGJUMP, - SND_SKID, - SND_DISTRO, - SND_HERRING, - SND_BRICK, - SND_HURT, - SND_SQUISH, - SND_FALL, - SND_RICOCHET, - SND_BUMP_UPGRADE, - SND_UPGRADE, - SND_EXCELLENT, - SND_COFFEE, - SND_SHOOT, - SND_LIFEUP, - SND_STOMP, - SND_KICK, - SND_EXPLODE, - SND_WARP, - SND_FIREWORKS, - NUM_SOUNDS -}; - -extern char* soundfilenames[NUM_SOUNDS]; +class MouseCursor; extern Surface* img_super_bkgd; +extern Surface* tux_life; extern MusicRef herring_song; extern MusicRef level_end_song; extern SpriteManager* sprite_manager; extern TileManager* tile_manager; +extern SoundManager* sound_manager; extern Menu* contrib_menu; extern Menu* contrib_subset_menu; extern Menu* main_menu; extern Menu* game_menu; extern Menu* options_menu; -extern Menu* options_keys_menu; -extern Menu* options_joystick_menu; -extern Menu* highscore_menu; extern Menu* load_game_menu; -extern Menu* save_game_menu; + +extern MouseCursor* mouse_cursor; extern Font* gold_text; extern Font* white_text; @@ -89,6 +57,9 @@ extern Font* white_small_text; extern Font* white_big_text; extern Font* yellow_nums; +extern std::string datadir; +extern std::string user_dir; + /** maps a virtual resource path to a real path (ie. levels/bla is mapped to * $DATADIR/levels/bla or $HOME/.supertux/levels/bla) * All paths inside the game should be handled in as virtual paths and then @@ -96,7 +67,7 @@ extern Font* yellow_nums; */ std::string get_resource_filename(const std::string& resource); -void loadshared(); -void unloadshared(); +void load_shared(); +void unload_shared(); #endif