Mercurial > hg > ristipolku
annotate game/Sound.java @ 23:0741dc117808
Remove sound code for later refactoring.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 01 Feb 2011 09:55:09 +0200 |
parents | afde253ec705 |
children | 736de7b28701 |
rev | line source |
---|---|
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 | |
8 public enum Sound | |
9 { | |
10 // Music loops | |
11 MUSIC_GAME1 ("gamemusic.wav", true), | |
12 | |
13 // Sound effects | |
14 PIECE_PLACED ("placed.wav", false); | |
15 | |
16 | |
17 | |
18 private final String name; | |
23
0741dc117808
Remove sound code for later refactoring.
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
19 private final boolean streaming; |
22 | 20 |
21 Sound(String name, boolean streaming) | |
22 { | |
23 this.name = name; | |
24 this.streaming = streaming; | |
25 } | |
26 | |
27 public String getName() | |
28 { | |
29 return this.name; | |
30 } | |
31 | |
32 public boolean isStreaming() | |
33 { | |
34 return streaming; | |
35 } | |
36 } |