private static class ChangeSet.ObjectChange extends ChangeSet.Change
Modifier and Type | Field and Description |
---|---|
protected FreeColGameObject |
fcgo |
see
Constructor and Description |
---|
ObjectChange(ChangeSet.See see,
FreeColGameObject fcgo)
Build a new ObjectChange for a single object.
|
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.
|
boolean |
isPerhapsNotifiable(ServerPlayer serverPlayer)
Should a player perhaps be notified of this update?
|
boolean |
matches(FreeColGameObject fcgo)
Does this Change operate on the given object?
|
org.w3c.dom.Element |
toElement(ServerPlayer serverPlayer,
org.w3c.dom.Document doc)
Specialize a ObjectChange to a particular player.
|
java.lang.String |
toString() |
consequences, convertsToElement, isNotifiable
protected final FreeColGameObject fcgo
public ObjectChange(ChangeSet.See see, FreeColGameObject fcgo)
see
- The visibility of this change.fcgo
- The FreeColGameObject
to update.public boolean matches(FreeColGameObject fcgo)
matches
in class ChangeSet.Change
fcgo
- The FreeColGameObject
to check.public int getPriority()
getPriority
in class ChangeSet.Change
public boolean isPerhapsNotifiable(ServerPlayer serverPlayer)
isPerhapsNotifiable
in class ChangeSet.Change
serverPlayer
- The ServerPlayer
to notify.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