com.webkitchen.brainathlon.gameControl
Class SustainedIncreaseCourse

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

public class SustainedIncreaseCourse
extends AbstractBandCourse

Mini-game that encourages sustained brainwave activity in a specific frequency band, as specified in our SustainedIncreaseConfiguration.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.AbstractBandCourse
AbstractBandCourse.AbstractBandPlayerMonitor
 
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
SustainedIncreaseCourse(java.util.List<Player> players)
          Creates a new course
 
Method Summary
protected  void attachMonitors()
           
protected  void createCoefficients(FilterDesigner designer)
           
protected  AbstractCourseUI getCourseUI()
           
 PlayerMonitorList<ISustainedBandPlayerMonitor> getPlayerMonitorList()
           
protected  boolean needCoeffients()
           
protected  void tick()
          Called after timeInCourse is updated, subclasses should override to add timing-based game functionality
 
Methods inherited from class com.webkitchen.brainathlon.gameControl.AbstractCourse
attachAsListener, designFilters, dumpCoefficients, getFinalScore, getFinishTime, getScoreRange, getTitle, getWinner, playerWon, start, stop, 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

SustainedIncreaseCourse

public SustainedIncreaseCourse(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<ISustainedBandPlayerMonitor> getPlayerMonitorList()
Specified by:
getPlayerMonitorList in class AbstractCourse

getCourseUI

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

tick

protected void tick()
Description copied from class: AbstractCourse
Called after timeInCourse is updated, subclasses should override to add timing-based game functionality

Overrides:
tick in class AbstractCourse

needCoeffients

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

createCoefficients

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