diff options
Diffstat (limited to 'src/jrummikub/model/PlayerSettings.java')
-rw-r--r-- | src/jrummikub/model/PlayerSettings.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/jrummikub/model/PlayerSettings.java b/src/jrummikub/model/PlayerSettings.java new file mode 100644 index 0000000..87c2a27 --- /dev/null +++ b/src/jrummikub/model/PlayerSettings.java @@ -0,0 +1,42 @@ +package jrummikub.model; + +import java.awt.Color; + +/** + * The settings of a player + */ +public class PlayerSettings { + private String name; + private Color color; + + /** + * Create a new human player + * + * @param name + * the player's name + * @param color + * the player's color + */ + public PlayerSettings(String name, Color color) { + this.name = name; + this.color = color; + } + + /** + * Returns the player's color + * + * @return the color + */ + public Color getColor() { + return color; + } + + /** + * Returns the player's name + * + * @return the name + */ + public String getName() { + return name; + } +} |