public class UnloadCargoMessage extends DOMMessage
| Modifier and Type | Field and Description |
|---|---|
private Goods |
goods
The goods to be unloaded.
|
document, logger| Constructor and Description |
|---|
UnloadCargoMessage(Game game,
org.w3c.dom.Element element)
Create a new
UnloadCargoMessage from a
supplied element. |
UnloadCargoMessage(Goods goods)
Create a new
UnloadCargoMessage with the
supplied goods and carrier. |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getXMLElementTagName()
The tag name of the root element representing this object.
|
org.w3c.dom.Element |
handle(FreeColServer server,
Player player,
Connection connection)
Handle a "unloadCargo"-message.
|
org.w3c.dom.Element |
toXMLElement()
Convert this UnloadCargoMessage to XML.
|
clientError, collapseElements, createError, createError, createMessage, createMessage, createNewDocument, createNewRootElement, elementToString, getAttribute, getChildElement, getDocument, getFreeColProtocolVersion, getType, hasAttribute, insertAsRoot, isType, setAttribute, setAttribute, toStringprivate Goods goods
public UnloadCargoMessage(Goods goods)
UnloadCargoMessage with the
supplied goods and carrier.goods - The Goods to unload.public UnloadCargoMessage(Game game, org.w3c.dom.Element element)
UnloadCargoMessage from a
supplied element.game - The Game this message belongs to.element - The Element to use to create the message.public org.w3c.dom.Element handle(FreeColServer server, Player player, Connection connection)
server - The FreeColServer handling the message.player - The Player the message applies to.connection - The Connection message received on.Element on failure.public org.w3c.dom.Element toXMLElement()
toXMLElement in class DOMMessagepublic static java.lang.String getXMLElementTagName()