comparison game/Sound.java @ 22:afde253ec705

More work.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 31 Jan 2011 21:28:59 +0200
parents
children 0741dc117808
comparison
equal deleted inserted replaced
21:df494a65bf8c 22:afde253ec705
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;
19 private final boolean effect;
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 }