view game/SoundElement.java @ 49:e6da5c71be28

Add more code to IDM widgets, do preliminary work for integrating them.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 22 Feb 2011 10:52:08 +0200
parents 736de7b28701
children
line wrap: on
line source

/*
 * Ristipolku Game Engine
 * (C) Copyright 2011 Matti 'ccr' Hämäläinen <ccr@tnsp.org>
 */
package game;


public enum SoundElement
{
    // Music loops
    MUSIC_GAME1	   ("gamemusic.wav",  true),

    // SoundElement effects
    PIECE_PLACED   ("placed.wav",     false);



    private final String name;
    private final boolean streaming;

    SoundElement(String name, boolean streaming)
    {
        this.name = name;
        this.streaming = streaming;
    }

    public String getName()
    {
        return this.name;
    }
    
    public boolean isStreaming()
    {
        return streaming;
    }
}