|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jtge.engine.handler.AbstractProducer jtge.sample.toss.Controller
This class deals with the player input.
The controller receives raw input and transforms it into commands to be sent to a given consumer.
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 |
public Controller(jtge.engine.handler.IConsumer consumer)
consumer
- the command consumerMethod Detail |
public final boolean handleChoice(java.lang.String line)
line
- the string command
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |