ch.aplu.jgamegrid
Enum GGSound

java.lang.Object
  extended by java.lang.Enum<GGSound>
      extended by ch.aplu.jgamegrid.GGSound
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GGSound>

public enum GGSound
extends java.lang.Enum<GGSound>

Enumeration of all system sounds.


Enum Constant Summary
BIRD
          The whistling of a bird.
BOING
          The sound of boing.
CLICK
          The sound of a click.
DUMMY
          An empty sound clip that may be used to initialize the sound system.
EXPLODE
          The sound of an explosion.
FADE
          A fading out sound.
FROG
          The quack of a frog.
MMM
          The enjoying sound of an eating person.
NOTIFY
          A notification sound.
PING
          The sound of ping.
 
Method Summary
 java.lang.String getPath()
          Returns the path to the sound file.
static GGSound valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GGSound[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DUMMY

public static final GGSound DUMMY
An empty sound clip that may be used to initialize the sound system. When playing a sound the first time, there is some delay caused by the time the sound system needs to initialize.


FROG

public static final GGSound FROG
The quack of a frog.


CLICK

public static final GGSound CLICK
The sound of a click.


FADE

public static final GGSound FADE
A fading out sound.


NOTIFY

public static final GGSound NOTIFY
A notification sound.


EXPLODE

public static final GGSound EXPLODE
The sound of an explosion.


MMM

public static final GGSound MMM
The enjoying sound of an eating person.


PING

public static final GGSound PING
The sound of ping.


BIRD

public static final GGSound BIRD
The whistling of a bird.


BOING

public static final GGSound BOING
The sound of boing.

Method Detail

values

public static GGSound[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (GGSound c : GGSound.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GGSound valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getPath

public java.lang.String getPath()
Returns the path to the sound file.

Returns:
the path to the sound file