From 244abb7e7320355d0c4aad4a7ba267f11d358563 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 7 Jun 2011 16:59:06 +0200 Subject: Make model fully serializable git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@381 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/model/PlayerSettings.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/jrummikub/model/PlayerSettings.java') 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; -- cgit v1.2.3