projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed Yeti behaviour. You must stun him (jump on him) when is under a falling stala...
[supertux.git]
/
src
/
resources.h
diff --git
a/src/resources.h
b/src/resources.h
index
306e2df
..
dee4ee0
100644
(file)
--- a/
src/resources.h
+++ b/
src/resources.h
@@
-21,15
+21,19
@@
#define SUPERTUX_RESOURCES_H
#include "audio/musicref.h"
#define SUPERTUX_RESOURCES_H
#include "audio/musicref.h"
-#include "gui/menu.h"
using namespace SuperTux;
namespace SuperTux {
class SpriteManager;
class SoundManager;
using namespace SuperTux;
namespace SuperTux {
class SpriteManager;
class SoundManager;
+class Menu;
+class Font;
+class Surface;
}
}
+class TileManager;
+
/* Sound files: */
enum {
SND_JUMP,
/* Sound files: */
enum {
SND_JUMP,
@@
-51,25
+55,20
@@
enum {
SND_STOMP,
SND_KICK,
SND_EXPLODE,
SND_STOMP,
SND_KICK,
SND_EXPLODE,
+ SND_WARP,
+ SND_FIREWORKS,
NUM_SOUNDS
};
extern char* soundfilenames[NUM_SOUNDS];
NUM_SOUNDS
};
extern char* soundfilenames[NUM_SOUNDS];
-extern Surface* img_waves[3];
-extern Surface* img_water;
-extern Surface* img_pole;
-extern Surface* img_poletop;
-extern Surface* img_flag[2];
-extern Surface* img_cloud[2][4];
-
extern Surface* img_super_bkgd;
extern MusicRef herring_song;
extern MusicRef level_end_song;
extern SpriteManager* sprite_manager;
extern Surface* img_super_bkgd;
extern MusicRef herring_song;
extern MusicRef level_end_song;
extern SpriteManager* sprite_manager;
-extern
SoundManager* sound
_manager;
+extern
TileManager* tile
_manager;
extern Menu* contrib_menu;
extern Menu* contrib_subset_menu;
extern Menu* contrib_menu;
extern Menu* contrib_subset_menu;
@@
-90,10
+89,14
@@
extern Font* white_small_text;
extern Font* white_big_text;
extern Font* yellow_nums;
extern Font* white_big_text;
extern Font* yellow_nums;
+/** 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
+ * expanded with this function just before the call to fopen or std::ifstream.
+ */
+std::string get_resource_filename(const std::string& resource);
+
void loadshared();
void unloadshared();
#endif
void loadshared();
void unloadshared();
#endif
-
-/* EOF */
-