|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeud.testgame.gui.ServerSelection
Sets up and manages the server selection window which is displayed after startup and when pressing ESC while playing.
Constructor Summary | |
ServerSelection(ServerBrowser sb,
GameClient client)
Creates a new instance using a given server browser and client instance. |
Method Summary | |
void |
dataChanged(java.lang.Object data)
Data has been changed... |
void |
draw(com.threed.jpct.FrameBuffer buffer)
Draws the ServerSelection. |
void |
elementChanged(java.lang.String label,
java.lang.String data)
Notify the implemention about a change in the GUI. |
void |
evaluateInput(MouseMapper mouse,
com.threed.jpct.util.KeyMapper keyMapper)
Processes key and mouse events. |
boolean |
isVisible()
Is the ServerSelection visible? |
void |
setVisible(boolean visible)
Enables/Disables the whole ServerSelection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServerSelection(ServerBrowser sb, GameClient client) throws java.lang.Exception
sb
- the server browser as an instance of ServerBrowserclient
- the client as an instance of GameClient
java.lang.Exception
Method Detail |
public void dataChanged(java.lang.Object data)
DataChangeListener
dataChanged
in interface DataChangeListener
data
- the new datapublic void setVisible(boolean visible)
visible
- visible...or not...public boolean isVisible()
public void evaluateInput(MouseMapper mouse, com.threed.jpct.util.KeyMapper keyMapper)
mouse
- the MouseMapperkeyMapper
- the KeyMapperpublic void draw(com.threed.jpct.FrameBuffer buffer)
buffer
- the FrameBuffer to draw to.public void elementChanged(java.lang.String label, java.lang.String data)
GUIListener
elementChanged
in interface GUIListener
label
- the label of the element in questiondata
- the data that this element holds (if any, null otherwise)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |