Package net.sf.freecol.common.networking
Class ChangeSet.StanceChange
- java.lang.Object
-
- net.sf.freecol.common.networking.ChangeSet.Change<SetStanceMessage>
-
- net.sf.freecol.common.networking.ChangeSet.StanceChange
-
- Enclosing class:
- ChangeSet
private static class ChangeSet.StanceChange extends ChangeSet.Change<SetStanceMessage>
Encapsulate a stance change.
-
-
Constructor Summary
Constructors Constructor Description StanceChange(ChangeSet.See see, Player first, Stance stance, Player second)
Build a new StanceChange.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetStanceMessage
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
-
StanceChange
public StanceChange(ChangeSet.See see, Player first, Stance stance, Player second)
Build a new StanceChange.- Parameters:
see
- The visibility of this change.first
- ThePlayer
changing stance.stance
- TheStance
to change to.second
- ThePlayer
wrt with to change.
-
-
Method Detail
-
toMessage
public SetStanceMessage toMessage(Player player)
Specialize a Change for a particular player.- Specified by:
toMessage
in classChangeSet.Change<SetStanceMessage>
- Parameters:
player
- ThePlayer
to update.- Returns:
- A specialized
Message
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-