diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-11 20:54:12 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-11 20:54:12 +0100 |
commit | 94692dd2abd30d36175fb3cb5225e03787713820 (patch) | |
tree | 8c03227da5f1facc95bc15c5f895978f9b1f66f9 /src/sound.h | |
parent | e0f98a1650a844a5941b5cb0c11a8097f86903cc (diff) | |
download | mana-client-94692dd2abd30d36175fb3cb5225e03787713820.tar.gz mana-client-94692dd2abd30d36175fb3cb5225e03787713820.tar.bz2 mana-client-94692dd2abd30d36175fb3cb5225e03787713820.tar.xz mana-client-94692dd2abd30d36175fb3cb5225e03787713820.zip |
Added a distance based positional sfx sound system. Thanks to 4144.
Based on:
http://gitorious.org/manaplus/manaplus/commit/ef7f53e43ce4306080efae3b86443a6016a3e66a
Resolves: TMW-Mantis #536
Reviewed-by: 4144.
Diffstat (limited to 'src/sound.h')
-rw-r--r-- | src/sound.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sound.h b/src/sound.h index bf5dc3f6..bfb3837b 100644 --- a/src/sound.h +++ b/src/sound.h @@ -86,8 +86,10 @@ class Sound * Plays an item. * * @param path The resource path to the sound file. + * @param x The vertical distance of the sound in tiles. + * @param y The horizontal distance of the sound in tiles. */ - void playSfx(const std::string &path); + void playSfx(const std::string &path, int x = 0, int y = 0); private: /** Logs various info about sound device. */ |