|
||||||||||
| 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
de.adom.jade.ui.ascii.AsciiUserInterface
Implements an ascii based user interface.
| Field Summary |
|---|
| Fields inherited from interface de.adom.jade.startup.StartupConstants |
|---|
PL_BASIC_MAP_FINISHED, PL_DESERTS_FINISHED, PL_DUNGEONS_FINISHED, PL_GENESIS_DATA_CLEANED_UP, PL_GENESIS_DATA_CREATED, PL_MAXIMUM, PL_PRE_UI_INITIALIZATION, PL_RIVERS_FINISHED, PL_SEISMIC_ACTIVITY_FINISHED, PL_SETTLEMENTS_FINISHED, PL_SWAMPS_FINISHED, PL_WORD_FORMS_FINISHED, PL_WORLD_MAP_FINISHED |
| Constructor Summary | |
|---|---|
AsciiUserInterface()
|
|
| Method Summary | |
|---|---|
void |
centerMap()
Centers the map on the centrail being. |
void |
clearMessages()
Clears the message display area provided by the UI implementation. |
void |
commandActivated(Command command)
Is called when a command has been activated. |
boolean |
displayErrorDialog(java.lang.String message,
java.lang.Throwable error)
Displays a runtime error together with a message. |
java.lang.String |
getDescription()
Returns the extended description for this user interface. |
java.lang.String |
getName()
Returns the short name of this specific user interface. |
int |
getProgressAddition()
Returns the numerical amount added to the startup progress maximum by the initialize method of this class. |
TileRepresentation |
getTileRepresentation(int id)
Returns a specific tile representation for a tile ID. |
void |
hideGameWindow()
Hides the game window. |
void |
initialize(SplashScreen splashScreen)
Initializes this particular user interface by executing all CPU intensive initializaton routines. |
void |
message(java.lang.String message)
Displays a message to the user. |
void |
setMap(Map currentMap)
Sets the map to use. |
void |
setNonKeyCommandInput(boolean active)
Enables / disables non-keyboard input methods. |
void |
setPointOfView(Being being)
Sets the point of view for the map. |
void |
showGameWindow()
Displays the game window. |
void |
update()
Requires the UI implementation to update the screen right away. |
void |
updateStatistics()
Updates the statistics. |
| Methods inherited from class de.adom.jade.ui.DefaultUserInterface |
|---|
addCommand, getCommand, requestCommand |
| Methods inherited from class de.adom.jade.ui.UserInterface |
|---|
observe, observe |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsciiUserInterface()
| Method Detail |
|---|
public java.lang.String getName()
getName in class UserInterfacepublic java.lang.String getDescription()
getDescription in class UserInterfacepublic int getProgressAddition()
initialize method of this class.
getProgressAddition in class UserInterfacepublic void initialize(SplashScreen splashScreen)
initialize in class UserInterfacesplashScreen - the splash screen to use during
initializationUserInterface.getProgressAddition(),
SplashScreen,
SplashScreen.setMessage(java.lang.String),
SplashScreen.setProgress(int),
SplashScreen.setStatus(java.lang.String, int),
StartupConstantspublic void update()
update in class UserInterfacepublic void setMap(Map currentMap)
setMap in class UserInterfacecurrentMap - the map to use for nowpublic void setPointOfView(Being being)
setPointOfView in class UserInterfacebeing - the being to use as the reference being for the next
map viewpublic void showGameWindow()
showGameWindow in class UserInterfacepublic void hideGameWindow()
hideGameWindow in class UserInterfacepublic void commandActivated(Command command)
commandActivated in interface KeyboardCommandTargetcommand - the command that has been activatedpublic void message(java.lang.String message)
message in class UserInterfacemessage - the message to displaypublic void clearMessages()
clearMessages in class UserInterfacepublic void updateStatistics()
updateStatistics in class UserInterface
public boolean displayErrorDialog(java.lang.String message,
java.lang.Throwable error)
UserInterface
displayErrorDialog in class UserInterfacemessage - the message to displayerror - the runtime error that occurred
UserInterface.displayErrorDialog(java.lang.String, java.lang.Throwable)public void setNonKeyCommandInput(boolean active)
UserInterface
setNonKeyCommandInput in class UserInterfaceactive - a boolean value indicating whether other command input
methods are enabled or notUserInterface.setNonKeyCommandInput(boolean)public void centerMap()
UserInterface
centerMap in class UserInterfaceUserInterface.centerMap()public TileRepresentation getTileRepresentation(int id)
UserInterface
getTileRepresentation in class UserInterfaceid - the tile ID
UserInterface.getTileRepresentation(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||