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