|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.adom.jade.ui.UserInterface
de.adom.jade.ui.DefaultUserInterface
Implements some of the basic functions required by user interfaces to reduce the burden of implementation somewhat.
| Constructor Summary | |
|---|---|
DefaultUserInterface()
|
|
| Method Summary | |
|---|---|
void |
addCommand(Command command)
Adds a command to the command queue. |
Command |
getCommand()
Returns a command from the user interface. |
protected void |
requestCommand()
Is called when a command is requested and the command queue is empty. |
| Methods inherited from class de.adom.jade.ui.UserInterface |
|---|
centerMap, clearMessages, displayErrorDialog, getDescription, getName, getProgressAddition, getTileRepresentation, hideGameWindow, initialize, message, observe, observe, setMap, setNonKeyCommandInput, setPointOfView, showGameWindow, update, updateStatistics |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultUserInterface()
| Method Detail |
|---|
public Command getCommand()
addCommand which wakes up a sleeping game thread (if
it was weaiting for a command) and initiates the retrieval of the command.
If the command queue is empty, the method requestCommand
will be called, which allows the UI implementation to tell the user
that he now should enter some kind of command.
getCommand in class UserInterfacepublic void addCommand(Command command)
command - the command to be added to the command queueprotected void requestCommand()
addCommand.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||