com.webkitchen.brainathlon.gameControl
Class DualBandRatioCourse

java.lang.Object
  extended by com.webkitchen.brainathlon.gameControl.AbstractCourse
      extended by com.webkitchen.brainathlon.gameControl.DualBandRatioCourse
All Implemented Interfaces:
java.awt.event.WindowListener, java.util.EventListener

public class DualBandRatioCourse
extends AbstractCourse

Mini-game that encourages brainwave activity in a specific ratio between two frequency bands, as specified in our DualBandRatioConfiguration.xml file. Handles all logic for this course, times and scores the game play, and provides feedback for the players.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.webkitchen.brainathlon.gameControl.AbstractCourse
AbstractCourse.AbstractPlayerMonitor
 
Field Summary
 
Fields inherited from class com.webkitchen.brainathlon.gameControl.AbstractCourse
announceCourse, courseOver, courseOverUI, courseTitle, courseUI, playerMonitorList, players, running, scoreRange, timedCourse, timeInCourse, timeLimit, winner
 
Constructor Summary
DualBandRatioCourse(java.util.List<Player> players)
          Creates a new course
 
Method Summary
protected  void attachMonitors()
           
protected  void createCoefficients(FilterDesigner designer)
           
 java.lang.String getBandOneDescription()
           
 java.lang.String getBandTwoDescription()
           
protected  AbstractCourseUI getCourseUI()
           
 PlayerMonitorList<IRatioPlayerMonitor> getPlayerMonitorList()
           
protected  boolean needCoeffients()
           
 
Methods inherited from class com.webkitchen.brainathlon.gameControl.AbstractCourse
attachAsListener, designFilters, dumpCoefficients, getFinalScore, getFinishTime, getScoreRange, getTitle, getWinner, playerWon, start, stop, tick, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DualBandRatioCourse

public DualBandRatioCourse(java.util.List<Player> players)
Creates a new course

Parameters:
players - the list of players
Method Detail

attachMonitors

protected void attachMonitors()
Specified by:
attachMonitors in class AbstractCourse

getPlayerMonitorList

public PlayerMonitorList<IRatioPlayerMonitor> getPlayerMonitorList()
Specified by:
getPlayerMonitorList in class AbstractCourse

getCourseUI

protected AbstractCourseUI getCourseUI()
Specified by:
getCourseUI in class AbstractCourse

getBandOneDescription

public java.lang.String getBandOneDescription()

getBandTwoDescription

public java.lang.String getBandTwoDescription()

needCoeffients

protected boolean needCoeffients()
Specified by:
needCoeffients in class AbstractCourse

createCoefficients

protected void createCoefficients(FilterDesigner designer)
Specified by:
createCoefficients in class AbstractCourse