diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-07 16:59:06 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-07 16:59:06 +0200 |
commit | 244abb7e7320355d0c4aad4a7ba267f11d358563 (patch) | |
tree | dd612c5022132d77a9b4f7f1c85f95ce83e2789a /src/jrummikub/model/PlayerSettings.java | |
parent | af3661fea084df6e089c2597dc4b311c77f39e4f (diff) | |
download | JRummikub-244abb7e7320355d0c4aad4a7ba267f11d358563.tar JRummikub-244abb7e7320355d0c4aad4a7ba267f11d358563.zip |
Make model fully serializable
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@381 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/model/PlayerSettings.java')
-rw-r--r-- | src/jrummikub/model/PlayerSettings.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/jrummikub/model/PlayerSettings.java b/src/jrummikub/model/PlayerSettings.java index b38d746..17e521c 100644 --- a/src/jrummikub/model/PlayerSettings.java +++ b/src/jrummikub/model/PlayerSettings.java @@ -1,25 +1,27 @@ package jrummikub.model; import java.awt.Color; +import java.io.Serializable; import jrummikub.control.turn.TurnControlFactory; /** * The settings of a player */ -public class PlayerSettings { +public class PlayerSettings implements Serializable { + private static final long serialVersionUID = 1963640115089275992L; + private String name; private Color color; private TurnControlFactory.Type turnControlType; - /** * Create a new human player * * @param name - * the player's name + * the player's name * @param color - * the player's color + * the player's color */ public PlayerSettings(String name, Color color) { this.name = name; @@ -49,7 +51,7 @@ public class PlayerSettings { * Sets the player's color * * @param color - * the new color + * the new color */ public void setColor(Color color) { this.color = color; @@ -59,7 +61,7 @@ public class PlayerSettings { * Sets the player's name * * @param name - * the new name + * the new name */ public void setName(String name) { this.name = name; @@ -69,7 +71,7 @@ public class PlayerSettings { * Set the player's TurnControlFactory type * * @param turnControlType - * player's TurnControlFactory type + * player's TurnControlFactory type */ public void setTurnControlType(TurnControlFactory.Type turnControlType) { this.turnControlType = turnControlType; |