|
||||||||
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 | |
---|---|
boolean |
nextBoolean()
Waits for the user to input a yes/no answer (by typing, clicking, etc.), and returns that answer as a boolean value. |
java.lang.String |
nextLine()
Waits for the user to input a text value, and returns that answer as a String. |
void |
print(java.lang.String message)
Displays the given output message to the user. |
void |
println(java.lang.String message)
Displays the given output message to the user. |
Method Detail |
---|
boolean nextBoolean()
java.lang.String nextLine()
void print(java.lang.String message)
message
- The message to display. Assumes not null.void println(java.lang.String message)
message
- The message to display. Assumes not null.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |