|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.freecol.client.control.InputHandler
net.sf.freecol.client.control.InGameInputHandler
public final class InGameInputHandler
Handles the network messages that arrives while in the getGame().
Constructor Summary | |
---|---|
InGameInputHandler(FreeColClient freeColClient)
The constructor to use. |
Method Summary | |
---|---|
org.w3c.dom.Element |
addHistory(org.w3c.dom.Element element)
Add the HistoryEvents which are the children of this Element. |
org.w3c.dom.Element |
addMessages(org.w3c.dom.Element element)
Add the ModelMessages which are the children of this Element. |
org.w3c.dom.Element |
disposeUnits(org.w3c.dom.Element element)
Disposes of the Unit s which are the children of this
Element. |
org.w3c.dom.Element |
handle(Connection connection,
org.w3c.dom.Element element)
Deals with incoming messages that have just been received. |
org.w3c.dom.Element |
multiple(Connection connection,
org.w3c.dom.Element element)
Handle all the children of this element. |
org.w3c.dom.Element |
update(org.w3c.dom.Element updateElement)
Handles an "update"-message. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InGameInputHandler(FreeColClient freeColClient)
freeColClient
- The main controller.Method Detail |
---|
public org.w3c.dom.Element handle(Connection connection, org.w3c.dom.Element element)
handle
in interface MessageHandler
handle
in class InputHandler
connection
- The Connection
the message was received
on.element
- The root element of the message.
public org.w3c.dom.Element update(org.w3c.dom.Element updateElement)
updateElement
- The element (root element in a DOM-parsed XML tree)
that holds all the information.
public org.w3c.dom.Element disposeUnits(org.w3c.dom.Element element)
Unit
s which are the children of this
Element.
element
- The element (root element in a DOM-parsed XML tree) that
holds all the information.public org.w3c.dom.Element addMessages(org.w3c.dom.Element element)
element
- The element (root element in a DOM-parsed XML tree) that
holds all the information.public org.w3c.dom.Element addHistory(org.w3c.dom.Element element)
element
- The element (root element in a DOM-parsed XML tree) that
holds all the information.public org.w3c.dom.Element multiple(Connection connection, org.w3c.dom.Element element)
element
- The element (root element in a DOM-parsed XML tree) that
holds all the information.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |