Package net.sf.freecol.common.networking
Class ChangeSet.SpyChange
- java.lang.Object
-
- net.sf.freecol.common.networking.ChangeSet.Change<SpySettlementMessage>
-
- net.sf.freecol.common.networking.ChangeSet.SpyChange
-
- Enclosing class:
- ChangeSet
private static class ChangeSet.SpyChange extends ChangeSet.Change<SpySettlementMessage>
Encapsulates a spying action.
-
-
Field Summary
Fields Modifier and Type Field Description private Settlement
settlement
private Unit
unit
-
Fields inherited from class net.sf.freecol.common.networking.ChangeSet.Change
see
-
-
Constructor Summary
Constructors Constructor Description SpyChange(ChangeSet.See see, Unit unit, Settlement settlement)
Build a new SpyChange.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpySettlementMessage
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
-
-
-
-
Field Detail
-
unit
private final Unit unit
-
settlement
private final Settlement settlement
-
-
Constructor Detail
-
SpyChange
public SpyChange(ChangeSet.See see, Unit unit, Settlement settlement)
Build a new SpyChange.- Parameters:
see
- The visibility of this change.unit
- TheUnit
that is spying.settlement
- TheSettlement
to spy on.
-
-
Method Detail
-
toMessage
public SpySettlementMessage toMessage(Player player)
Specialize a Change for a particular player.- Specified by:
toMessage
in classChangeSet.Change<SpySettlementMessage>
- Parameters:
player
- ThePlayer
to update.- Returns:
- A specialized
Message
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-