|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.adom.jade.ui.UserInterfaceFactory
Permits the selection of a specific user interface type. The basic idea behind this mechanism is that JADE supports an arbitrary number of user interfaces for the internal game engine. The default interface is implemented by Thomas Biskup and represents the classical roguelike game interface based on ascii symbols. Other interfaces might replace this way of playing with graphical tiles and other stuff. In theory a user interface even might represent a server that communicates with a kind of remote terminal.
User interfaces must be implemented in the following way:
de.adom.ui must be defined. The
ascii subpackage is reserved by Thomas Biskup for the
standard JADE interface.
AsciiUserInterface
implementing the interface UserInterface.
AsciiUserInterface must contain a constructor
without parameters. This constructor must not execute any complex
CPU intensive operations because this factory will instantiate all
connectors discovered in order to read their descriptions and offer them
to the user. CPU intensive operations should be deferred to the
initialize function which will be executed once a specific
UI has been selected.
UserInterface,
UserInterface.initialize(de.adom.jade.startup.SplashScreen)| Method Summary | |
|---|---|
static UserInterface |
createUserInterface()
Selects a user interface from the available list of user interfaces. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static UserInterface createUserInterface()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||