edu.rice.comp440.driver
Class TextDriver

java.lang.Object
  |
  +--edu.rice.comp440.driver.TextDriver

public class TextDriver
extends java.lang.Object


Inner Class Summary
protected  class TextDriver.TextHumanPlayer
           
 
Field Summary
protected  Backgammon backgammon
           
protected  java.lang.Thread game
           
protected  Move move
           
protected  TextDriver.TextHumanPlayer player
           
protected  java.io.StreamTokenizer tokenizer
           
 
Constructor Summary
TextDriver()
           
 
Method Summary
protected  void gameOver()
           
protected  void go()
           
protected  void handleCommand(java.lang.String command)
           
protected  void handleHelpCommand()
           
protected  void handleListCommand()
           
protected  void handleMoveCommand()
           
protected  Movement handleMoveCommandHelper()
           
protected  void handlePrintCommand()
           
protected  void handleResetCommand()
           
protected  void handleUndoCommand()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

backgammon

protected Backgammon backgammon

tokenizer

protected java.io.StreamTokenizer tokenizer

player

protected TextDriver.TextHumanPlayer player

move

protected Move move

game

protected java.lang.Thread game
Constructor Detail

TextDriver

public TextDriver()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException

go

protected void go()
           throws java.io.IOException

handleCommand

protected void handleCommand(java.lang.String command)
                      throws UnrecognizedCommandException,
                             java.io.IOException

handleHelpCommand

protected void handleHelpCommand()

handleResetCommand

protected void handleResetCommand()

handleListCommand

protected void handleListCommand()

handlePrintCommand

protected void handlePrintCommand()

handleUndoCommand

protected void handleUndoCommand()

handleMoveCommand

protected void handleMoveCommand()
                          throws java.io.IOException

gameOver

protected void gameOver()

handleMoveCommandHelper

protected Movement handleMoveCommandHelper()
                                    throws java.io.IOException