diff options
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/event')
-rwxr-xr-x | src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java index 22e464d..7ca08ff 100755 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java | |||
@@ -298,4 +298,26 @@ public class SpecialEvent { | |||
298 | })); | 298 | })); |
299 | } | 299 | } |
300 | 300 | ||
301 | /** | ||
302 | * Starts playing a Music file | ||
303 | * | ||
304 | * @param filename The name of the Music file to play | ||
305 | * @param loop Whether or not you want this Music to loop | ||
306 | * @param speed The Tempo Factor. If this is 1, the Music will play at | ||
307 | * normal speed. If this is 2, the Music will play at twice the normal | ||
308 | * speed, and so on. | ||
309 | */ | ||
310 | public void PlayMusic(String filename, boolean loop, float speed) | ||
311 | { | ||
312 | Audio.playMusic(filename, loop, speed); | ||
313 | } | ||
314 | |||
315 | /** | ||
316 | * Stops playing the currently playing Music file | ||
317 | */ | ||
318 | public void StopMusic() | ||
319 | { | ||
320 | Audio.stopMusic(); | ||
321 | } | ||
322 | |||
301 | } | 323 | } |