summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.h
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-10 14:16:58 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-10 14:16:58 +0000
commit26d50af0fb1b07e662978f7c341a3c2548074840 (patch)
tree548619f2a360bcef9227bbde4aa1592128a48e53 /src/resources/resourcemanager.h
parentb42e9e23fd6fe4819d34f04124ba66eca6a6c020 (diff)
downloadmana-26d50af0fb1b07e662978f7c341a3c2548074840.tar.gz
mana-26d50af0fb1b07e662978f7c341a3c2548074840.tar.bz2
mana-26d50af0fb1b07e662978f7c341a3c2548074840.tar.xz
mana-26d50af0fb1b07e662978f7c341a3c2548074840.zip
Resource manager can now load sfx and music as samples.
(added a new sfx to test the sound engine)
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r--src/resources/resourcemanager.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h
index 1933cc76..d8f4cb90 100644
--- a/src/resources/resourcemanager.h
+++ b/src/resources/resourcemanager.h
@@ -28,6 +28,8 @@
#include <string>
#include "resource.h"
#include "image.h"
+#include "music.h"
+#include "soundeffect.h"
/**
* A resource entry descriptor.
@@ -86,9 +88,11 @@ class ResourceManager
int flags = 0);
/**
- * Convenience wrapper around ResourceManager::create.
+ * Convenience wrappers around ResourceManager::create.
*/
Image *getImage(const std::string &idPath, int flags = 0);
+ Music *getMusic(const std::string &idPath);
+ SoundEffect *getSoundEffect(const std::string &idPath);
/**
* Returns an instance of the class, creating one if it does not