jtge.sample.toss
Class Controller

java.lang.Object
  extended byjtge.engine.handler.AbstractProducer
      extended byjtge.sample.toss.Controller

public class Controller
extends jtge.engine.handler.AbstractProducer

This class deals with the player input.

The controller receives raw input and transforms it into commands to be sent to a given consumer.

Version:
$Revision: 1.3 $ $Date: 2005/08/26 18:10:59 $
Author:
Mathieu Champlon

Constructor Summary
Controller(jtge.engine.handler.IConsumer consumer)
          Create a new controller.
 
Method Summary
 boolean handleChoice(java.lang.String line)
          Interprets the string command.
 
Methods inherited from class jtge.engine.handler.AbstractProducer
forward
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Controller

public Controller(jtge.engine.handler.IConsumer consumer)
Create a new controller.

Parameters:
consumer - the command consumer
Method Detail

handleChoice

public final boolean handleChoice(java.lang.String line)
Interprets the string command.

Parameters:
line - the string command
Returns:
whether to continue the game or not


Copyright © 2003-2005 . All Rights Reserved.