X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fresources.h;h=1287060a9c362c8cf3af286b2e45792dd84bf553;hb=b524515944583916655a9f2cf1a667e55e7ed4ce;hp=8f41c1c01b3ee2e82203038701694a3d131c19a4;hpb=5af08553c4cfa80081b85909b4a9cdc3b01f9cb9;p=supertux.git diff --git a/src/resources.h b/src/resources.h index 8f41c1c01..1287060a9 100644 --- a/src/resources.h +++ b/src/resources.h @@ -1,7 +1,62 @@ +// $Id$ +// +// SuperTux - A Jump'n Run +// Copyright (C) 2003 Tobias Glaesser +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// 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 "audio/musicref.h" +#include "gui/menu.h" + +using namespace SuperTux; + +namespace SuperTux { class SpriteManager; +class SoundManager; +} + +/* 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]; extern Surface* img_waves[3]; extern Surface* img_water; @@ -10,12 +65,32 @@ extern Surface* img_poletop; extern Surface* img_flag[2]; extern Surface* img_cloud[2][4]; -extern Surface* img_box_full; -extern Surface* img_box_empty; extern Surface* img_super_bkgd; -extern Surface* img_red_glow; + +extern MusicRef herring_song; +extern MusicRef level_end_song; extern SpriteManager* sprite_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 Font* gold_text; +extern Font* white_text; +extern Font* blue_text; +extern Font* gray_text; +extern Font* white_small_text; +extern Font* white_big_text; +extern Font* yellow_nums; void loadshared(); void unloadshared();