net.sf.freecol.server.control
Class ChangeSet.MessageChange
java.lang.Object
net.sf.freecol.server.control.ChangeSet.Change
net.sf.freecol.server.control.ChangeSet.MessageChange
- Enclosing class:
- ChangeSet
private static class ChangeSet.MessageChange
- extends ChangeSet.Change
Encapsulate a Message.
|
Method Summary |
int |
sortPriority()
The sort priority. |
org.w3c.dom.Element |
toElement(ServerPlayer serverPlayer,
org.w3c.dom.Document doc)
Specialize a MessageChange to a particular player. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
priority
private ChangeSet.ChangePriority priority
message
private DOMMessage message
ChangeSet.MessageChange
ChangeSet.MessageChange(ChangeSet.See see,
ChangeSet.ChangePriority priority,
DOMMessage message)
- Build a new MessageChange.
- Parameters:
see - The visibility of this change.priority - The priority of the change.message - The Message to add.
sortPriority
public int sortPriority()
- The sort priority.
- Specified by:
sortPriority in class ChangeSet.Change
- Returns:
- The priority.
toElement
public org.w3c.dom.Element toElement(ServerPlayer serverPlayer,
org.w3c.dom.Document doc)
- Specialize a MessageChange to a particular player.
- Specified by:
toElement in class ChangeSet.Change
- Parameters:
serverPlayer - The ServerPlayer to update.doc - The owner Document.
- Returns:
- An element.