22
|
1 /*
|
|
2 * Ristipolku Game Engine
|
|
3 * (C) Copyright 2011 Matti 'ccr' Hämäläinen <ccr@tnsp.org>
|
|
4 */
|
|
5 package game;
|
|
6
|
|
7
|
38
|
8 public enum SoundElement
|
|
9 {
|
|
10 // Music loops
|
|
11 MUSIC_GAME1 ("gamemusic.wav", true),
|
22
|
12
|
38
|
13 // SoundElement effects
|
|
14 PIECE_PLACED ("placed.wav", false);
|
22
|
15
|
|
16
|
|
17
|
38
|
18 private final String name;
|
|
19 private final boolean streaming;
|
|
20
|
|
21 SoundElement(String name, boolean streaming)
|
|
22 {
|
|
23 this.name = name;
|
|
24 this.streaming = streaming;
|
22
|
25 }
|
|
26
|
38
|
27 public String getName()
|
22
|
28 {
|
38
|
29 return this.name;
|
22
|
30 }
|
|
31
|
38
|
32 public boolean isStreaming()
|
22
|
33 {
|
38
|
34 return streaming;
|
22
|
35 }
|
|
36 }
|