Package net.sf.freecol.common.networking
Class ChangeSet.PartialObjectChange<T extends FreeColGameObject>
- java.lang.Object
-
- net.sf.freecol.common.networking.ChangeSet.Change<PartialMessage>
-
- net.sf.freecol.common.networking.ChangeSet.PartialObjectChange<T>
-
- Enclosing class:
- ChangeSet
private static class ChangeSet.PartialObjectChange<T extends FreeColGameObject> extends ChangeSet.Change<PartialMessage>
Encapsulate a partial update of a FreeColGameObject.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.String>
map
-
Fields inherited from class net.sf.freecol.common.networking.ChangeSet.Change
see
-
-
Constructor Summary
Constructors Constructor Description PartialObjectChange(ChangeSet.See see, T fcgo, java.util.Map<java.lang.String,java.lang.String> map)
Build a new PartialObjectChange for a single object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartialMessage
toMessage(Player player)
Specialize a Change for a particular player.java.lang.String
toString()
-
Methods inherited from class net.sf.freecol.common.networking.ChangeSet.Change
check, consequence, isNotifiable, matches
-
-
-
-
Constructor Detail
-
PartialObjectChange
public PartialObjectChange(ChangeSet.See see, T fcgo, java.util.Map<java.lang.String,java.lang.String> map)
Build a new PartialObjectChange for a single object.- Parameters:
see
- The visibility of this change.fcgo
- TheFreeColGameObject
to update.map
- A map of the field to update to the value to use.
-
-
Method Detail
-
toMessage
public PartialMessage toMessage(Player player)
Specialize a Change for a particular player.- Specified by:
toMessage
in classChangeSet.Change<PartialMessage>
- Parameters:
player
- ThePlayer
to update.- Returns:
- A specialized
Message
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-