Package net.sf.freecol.common.networking
Class ChangeSet.AttributeChange
- java.lang.Object
-
- net.sf.freecol.common.networking.ChangeSet.Change<AttributeMessage>
-
- net.sf.freecol.common.networking.ChangeSet.AttributeChange
-
- Enclosing class:
- ChangeSet
private static class ChangeSet.AttributeChange extends ChangeSet.Change<AttributeMessage>
Encapsulate an attribute change.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
key
private java.lang.String
value
-
Fields inherited from class net.sf.freecol.common.networking.ChangeSet.Change
see
-
-
Constructor Summary
Constructors Constructor Description AttributeChange(ChangeSet.See see, java.lang.String key, java.lang.String value)
Build a new AttributeChange.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeMessage
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
-
AttributeChange
public AttributeChange(ChangeSet.See see, java.lang.String key, java.lang.String value)
Build a new AttributeChange.- Parameters:
see
- The visibility of this change.key
- A keyString
.value
- The corresponding value as aString
.
-
-
Method Detail
-
toMessage
public AttributeMessage toMessage(Player player)
Specialize a Change for a particular player.- Specified by:
toMessage
in classChangeSet.Change<AttributeMessage>
- Parameters:
player
- ThePlayer
to update.- Returns:
- A specialized
Message
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-