|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserInterface
Interface describing abstract user interaction operations. This interface is implemented by the graphical and text UIs for the game. Your QuestionTree interacts with the UI through this interface.
Method Summary | |
---|---|
java.lang.String |
ask(java.lang.String question)
Prompts the user the given question, waits for the user to input an answer, and returns that answer as a String. |
void |
println(java.lang.String message)
|
boolean |
yesNo(java.lang.String question)
Prompts the user the given question, waits for the user to input a yes/no answer, and returns that answer as a boolean value. |
Method Detail |
---|
java.lang.String ask(java.lang.String question)
question
- The question to ask. Assumes not null.
void println(java.lang.String message)
boolean yesNo(java.lang.String question)
question
- The question to ask. Assumes not null.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |