summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub/model/MockPlayer.java
diff options
context:
space:
mode:
Diffstat (limited to 'mock/jrummikub/model/MockPlayer.java')
-rw-r--r--mock/jrummikub/model/MockPlayer.java26
1 files changed, 7 insertions, 19 deletions
diff --git a/mock/jrummikub/model/MockPlayer.java b/mock/jrummikub/model/MockPlayer.java
index a6dfe01..a580a48 100644
--- a/mock/jrummikub/model/MockPlayer.java
+++ b/mock/jrummikub/model/MockPlayer.java
@@ -1,7 +1,5 @@
package jrummikub.model;
-import java.awt.Color;
-
/**
* Mock class for {@link Player}
*/
@@ -9,22 +7,17 @@ public class MockPlayer implements IPlayer {
/** */
public Hand hand;
/** */
- public String name;
- /** */
- public Color color;
+ public PlayerSettings playerSettings;
/** */
public boolean laidOut;
/**
- * @param name
- * the player name
- * @param color
- * the player color
+ * @param playerSettings
+ * the player settings
*/
- public MockPlayer(String name, Color color) {
+ public MockPlayer(PlayerSettings playerSettings) {
hand = new Hand();
- this.name = name;
- this.color = color;
+ this.playerSettings = playerSettings;
laidOut = false;
}
@@ -39,12 +32,7 @@ public class MockPlayer implements IPlayer {
}
@Override
- public Color getColor() {
- return color;
- }
-
- @Override
- public String getName() {
- return name;
+ public PlayerSettings getPlayerSettings() {
+ return playerSettings;
}
}