sdr 0.7

net.cscott.sdr
Class Settings

java.lang.Object
  extended by net.cscott.sdr.Settings
Direct Known Subclasses:
GameSettings

public abstract class Settings
extends Object

The Settings class manages the menu system for adjusting the various game settings, and tracks the current mode of play.


Nested Class Summary
static class Settings.DanceLevelSetting
          What calls should be accepted for the dancers, and what their starting formation should be.
static class Settings.DancerStyleSetting
          Style with which to draw dancers.
static class Settings.DifficultySetting
          How stringent should scoring be?
static class Settings.MusicSetting
          What type of music (if any) to play.
static class Settings.VenueSetting
          Background environment for dancers.
 
Constructor Summary
protected Settings(String prefName)
          Create a new Settings, with default values taken from the user preferences.
 
Method Summary
 Settings.DanceLevelSetting getDanceLevel()
           
 Settings.DancerStyleSetting getDancerStyle()
           
 Settings.DifficultySetting getDifficulty()
           
 int getMicrophone()
           
 Settings.MusicSetting getMusic()
           
 Settings.VenueSetting getVenue()
           
protected  Object lock()
           
 void setDanceLevel(Settings.DanceLevelSetting dl)
           
 void setDancerStyle(Settings.DancerStyleSetting d)
           
 void setDifficulty(Settings.DifficultySetting d)
           
 void setMicrophone(int which)
          Which microphone to use.
 void setMusic(Settings.MusicSetting m)
           
 void setVenue(Settings.VenueSetting v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Settings

protected Settings(String prefName)
Create a new Settings, with default values taken from the user preferences.

Method Detail

lock

protected Object lock()

setMicrophone

public void setMicrophone(int which)
Which microphone to use.


getMicrophone

public int getMicrophone()

setMusic

public void setMusic(Settings.MusicSetting m)

getMusic

public Settings.MusicSetting getMusic()

setDifficulty

public void setDifficulty(Settings.DifficultySetting d)

getDifficulty

public Settings.DifficultySetting getDifficulty()

setVenue

public void setVenue(Settings.VenueSetting v)

getVenue

public Settings.VenueSetting getVenue()

setDancerStyle

public void setDancerStyle(Settings.DancerStyleSetting d)

getDancerStyle

public Settings.DancerStyleSetting getDancerStyle()

setDanceLevel

public void setDanceLevel(Settings.DanceLevelSetting dl)

getDanceLevel

public Settings.DanceLevelSetting getDanceLevel()

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian