summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/PlayerSettings.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/model/PlayerSettings.java')
-rw-r--r--src/jrummikub/model/PlayerSettings.java16
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;