edu.uiuc.cs397rhc.game
Class MusicConsole

java.lang.Object
  extended by edu.uiuc.cs397rhc.game.MusicConsole

public class MusicConsole
extends java.lang.Object

Provides a GUI for futzing with the music that a MusicManager is playing. The GUI has a master slider and sliders for moods, grooves, and clarions. The actual volume percentage set for any given type of Equalizable is the master volume times the volume of the type. Mute checkboxes can be used to mute any component. The state is saved in $BFG_SOUND_HOME/console.properties.

Author:
Steven N. Severinghaus

Constructor Summary
MusicConsole(MusicManager music)
          Constructs a new game event simulator.
 
Method Summary
 void updateAllVolumes()
          Causes all volumes in the MusicManager to be updated to match what the console indicates.
 void updateClarionVolumes()
          Causes all clarion volumes in the MusicManager to be updated to match what the console indicates.
 void updateGrooveVolumes()
          Causes all groove volumes in the MusicManager to be updated to match what the console indicates.
 void updateMoodVolumes()
          Causes all mood volumes in the MusicManager to be updated to match what the console indicates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MusicConsole

public MusicConsole(MusicManager music)
Constructs a new game event simulator. Causes the GUI to be constructed and displayed and loads the console properties, if possible.

Parameters:
music - the manager that this console controls
Method Detail

updateAllVolumes

public void updateAllVolumes()
Causes all volumes in the MusicManager to be updated to match what the console indicates.


updateMoodVolumes

public void updateMoodVolumes()
Causes all mood volumes in the MusicManager to be updated to match what the console indicates. The actual volume percentage set is the master volume times the mood volume.


updateGrooveVolumes

public void updateGrooveVolumes()
Causes all groove volumes in the MusicManager to be updated to match what the console indicates. The actual volume percentage set is the master volume times the groove volume.


updateClarionVolumes

public void updateClarionVolumes()
Causes all clarion volumes in the MusicManager to be updated to match what the console indicates. The actual volume percentage set is the master volume times the clarion volume.