private static class ChangeSet.RemoveChange extends ChangeSet.Change
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<? extends FreeColGameObject> |
contents |
private FreeColGameObject |
fcgo |
private Tile |
tile |
see| Constructor and Description |
|---|
RemoveChange(ChangeSet.See see,
Location loc,
java.util.List<? extends FreeColGameObject> objects)
Build a new RemoveChange for an object that is disposed.
|
| 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 removal?
They should if they can see the tile, and there is no
other-player settlement present.
|
org.w3c.dom.Element |
toElement(ServerPlayer serverPlayer,
org.w3c.dom.Document doc)
Specialize a RemoveChange to a particular player.
|
java.lang.String |
toString() |
consequences, convertsToElement, isNotifiable, matchesprivate final Tile tile
private final FreeColGameObject fcgo
private final java.util.List<? extends FreeColGameObject> contents
public RemoveChange(ChangeSet.See see, Location loc, java.util.List<? extends FreeColGameObject> objects)
see - The visibility of this change.loc - The Location where the object was.objects - The FreeColGameObjects to remove.public int getPriority()
getPriority in class ChangeSet.Changepublic boolean isPerhapsNotifiable(ServerPlayer serverPlayer)
isPerhapsNotifiable in class ChangeSet.ChangeserverPlayer - The ServerPlayer to notify.public org.w3c.dom.Element toElement(ServerPlayer serverPlayer, org.w3c.dom.Document doc)
toElement in class ChangeSet.ChangeserverPlayer - The ServerPlayer to update.doc - The owner Document.public void attachToElement(org.w3c.dom.Element element)
attachToElement in class ChangeSet.Changeelement - The Element to attach to.public java.lang.String toString()
toString in class java.lang.Object