summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/PlayerSettings.java
blob: 87c2a2735d4a714f45ba088fc11a31462f2c8821 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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;
	}
}