Mercurial > hg > ristipolku
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/game/Sound.java Mon Jan 31 21:28:59 2011 +0200 @@ -0,0 +1,36 @@ +/* + * Ristipolku Game Engine + * (C) Copyright 2011 Matti 'ccr' Hämäläinen <ccr@tnsp.org> + */ +package game; + + +public enum Sound +{ + // Music loops + MUSIC_GAME1 ("gamemusic.wav", true), + + // Sound effects + PIECE_PLACED ("placed.wav", false); + + + + private final String name; + private final boolean effect; + + Sound(String name, boolean streaming) + { + this.name = name; + this.streaming = streaming; + } + + public String getName() + { + return this.name; + } + + public boolean isStreaming() + { + return streaming; + } +}