private static class ChangeSet.OwnedChange extends ChangeSet.Change
Modifier and Type | Field and Description |
---|---|
private FreeColObject |
fco |
see
Constructor and Description |
---|
OwnedChange(ChangeSet.See see,
FreeColObject fco)
Build a new OwnedChange.
|
Modifier and Type | Method and Description |
---|---|
void |
attachToElement(org.w3c.dom.Element element)
Some changes can not be directly specialized, but need to be
directly attached to an element.
|
int |
getPriority()
Gets the sort priority.
|
org.w3c.dom.Element |
toElement(ServerPlayer serverPlayer,
org.w3c.dom.Document doc)
Specialize a OwnedChange into an "addObject" element for a
particular player.
|
java.lang.String |
toString() |
consequences, convertsToElement, isNotifiable, isPerhapsNotifiable, matches
private final FreeColObject fco
public OwnedChange(ChangeSet.See see, FreeColObject fco)
see
- The visibility of this change.fco
- The FreeColObject
to update.public int getPriority()
getPriority
in class ChangeSet.Change
public org.w3c.dom.Element toElement(ServerPlayer serverPlayer, org.w3c.dom.Document doc)
toElement
in class ChangeSet.Change
serverPlayer
- The ServerPlayer
to update.doc
- The owner Document
.public void attachToElement(org.w3c.dom.Element element)
attachToElement
in class ChangeSet.Change
element
- The Element
to attach to.public java.lang.String toString()
toString
in class java.lang.Object