Package net.sf.freecol.common.networking
Class AbandonColonyMessage
- java.lang.Object
- 
- net.sf.freecol.common.networking.Message
- 
- net.sf.freecol.common.networking.TrivialMessage
- 
- net.sf.freecol.common.networking.AttributeMessage
- 
- net.sf.freecol.common.networking.AbandonColonyMessage
 
 
 
 
- 
 public class AbandonColonyMessage extends AttributeMessage The message sent when the client requests abandoning of a colony.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class net.sf.freecol.common.networking.MessageMessage.MessagePriority
 
- 
 - 
Field SummaryFields Modifier and Type Field Description private static java.lang.StringCOLONY_TAGstatic java.lang.StringTAG- 
Fields inherited from class net.sf.freecol.common.networking.AttributeMessageattributes
 - 
Fields inherited from class net.sf.freecol.common.networking.TrivialMessagecontinueMessage, disconnectMessage, endTurnMessage, enterRevengeModeMessage, reconnectMessage, requestLaunchMessage, retireMessage, startGameMessage
 - 
Fields inherited from class net.sf.freecol.common.networking.Messagelogger, messagePriorityComparator
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbandonColonyMessage(Colony colony)Create a newAbandonColonyMessagewith the specified colony.AbandonColonyMessage(Game game, FreeColXMLReader xr)Create a newAbandonColonyMessagefrom a stream.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancurrentPlayerMessage()Should this message only be sent to a server by the current player?Message.MessagePrioritygetPriority()Get the priority of this type of message.ChangeSetserverHandler(FreeColServer freeColServer, ServerPlayer serverPlayer)Server-side handler for this message.- 
Methods inherited from class net.sf.freecol.common.networking.AttributeMessagecanMerge, getStringAttribute, getStringAttributeMap, hasAttribute, setMergeable, setStringAttribute
 - 
Methods inherited from class net.sf.freecol.common.networking.TrivialMessageaiHandler, appendChild, appendChildren, clientHandler, getChildCount, getChildren, getType, setChildren, setType
 - 
Methods inherited from class net.sf.freecol.common.networking.MessageclientGeneric, expected, getArrayAttributes, getBooleanAttribute, getChild, getChildren, getEnumAttribute, getIntegerAttribute, getPriorityLevel, igc, igc, invokeAndWait, invokeLater, isEmpty, isType, merge, pgc, pgc, pretty, read, setArrayAttributes, setArrayAttributes, setBooleanAttribute, setEnumAttribute, setIntegerAttribute, setStringAttributeMap, setStringAttributes, setStringAttributes, toString, toXML, writeAttributes, writeChildren
 
- 
 
- 
- 
- 
Field Detail- 
TAGpublic static final java.lang.String TAG - See Also:
- Constant Field Values
 
 - 
COLONY_TAGprivate static final java.lang.String COLONY_TAG - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
AbandonColonyMessagepublic AbandonColonyMessage(Colony colony) Create a newAbandonColonyMessagewith the specified colony.- Parameters:
- colony- The- Colonyto abandon.
 
 - 
AbandonColonyMessagepublic AbandonColonyMessage(Game game, FreeColXMLReader xr) throws javax.xml.stream.XMLStreamException Create a newAbandonColonyMessagefrom a stream.- Parameters:
- game- The- Gamethis message belongs to.
- xr- The- FreeColXMLReaderto read from.
- Throws:
- javax.xml.stream.XMLStreamException- if the stream is corrupt.
 
 
- 
 - 
Method Detail- 
currentPlayerMessagepublic boolean currentPlayerMessage() Should this message only be sent to a server by the current player?- Overrides:
- currentPlayerMessagein class- TrivialMessage
- Returns:
- True if this is a current-player-only message.
 
 - 
getPrioritypublic Message.MessagePriority getPriority() Get the priority of this type of message.- Overrides:
- getPriorityin class- AttributeMessage
- Returns:
- The message priority.
 
 - 
serverHandlerpublic ChangeSet serverHandler(FreeColServer freeColServer, ServerPlayer serverPlayer) Server-side handler for this message.- Overrides:
- serverHandlerin class- TrivialMessage
- Parameters:
- freeColServer- The- FreeColServerhandling the request.
- serverPlayer- The- ServerPlayerthat sent the request.
- Returns:
- A ChangeSetdefining the response.
 
 
- 
 
-