edu.uiuc.cs397rhc.game
Class MusicManager

java.lang.Object
  extended by edu.uiuc.cs397rhc.game.MusicManager
All Implemented Interfaces:
java.util.EventListener, GameListener

public class MusicManager
extends java.lang.Object
implements GameListener

Manages bits of music for the game.

Author:
Pedro DeRose

Constructor Summary
MusicManager()
          Constructs a music manager to handle music for the game.
 
Method Summary
 void gameUpdate(GameEvent ge)
          Causes the music to respond to various events in the game.
 void setAllVolumes(double percent)
          Sets all volumes to a given volume percentage.
 void setClarionVolumes(double percent)
          Sets the volumes of all clarions to a given percentage.
 void setGrooveVolumes(double percent)
          Sets the volumes of all grooves to a given percentage.
 void setMoodVolumes(double percent)
          Sets the volumes of all moods to a given percentage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MusicManager

public MusicManager()
Constructs a music manager to handle music for the game.

Method Detail

gameUpdate

public void gameUpdate(GameEvent ge)
Causes the music to respond to various events in the game. Specifically, this will look for MoodEvents, AbilityEvents, and ScoreEvents.

Specified by:
gameUpdate in interface GameListener
Parameters:
ge - the game event to react to

setAllVolumes

public void setAllVolumes(double percent)
Sets all volumes to a given volume percentage.

Parameters:
percent - the volume to set for all Equalizables

setMoodVolumes

public void setMoodVolumes(double percent)
Sets the volumes of all moods to a given percentage.

Parameters:
percent - the volume to set for all moods

setGrooveVolumes

public void setGrooveVolumes(double percent)
Sets the volumes of all grooves to a given percentage.

Parameters:
percent - the volume to set for all grooves

setClarionVolumes

public void setClarionVolumes(double percent)
Sets the volumes of all clarions to a given percentage.

Parameters:
percent - the volume to set for all clarions