summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control/turn
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/control/turn')
-rw-r--r--src/jrummikub/control/turn/TurnControlFactory.java14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/jrummikub/control/turn/TurnControlFactory.java b/src/jrummikub/control/turn/TurnControlFactory.java
index b42f7ff..4d143e7 100644
--- a/src/jrummikub/control/turn/TurnControlFactory.java
+++ b/src/jrummikub/control/turn/TurnControlFactory.java
@@ -1,5 +1,7 @@
package jrummikub.control.turn;
+import jrummikub.model.PlayerSettings;
+
/**
* Creates a turn control for the active player, regarding if layer is human or
* computer
@@ -7,16 +9,6 @@ package jrummikub.control.turn;
*/
public abstract class TurnControlFactory {
/**
- * Type of turn control.
- */
- public enum Type {
- /** */
- HUMAN,
- /** */
- COMPUTER
- };
-
- /**
* Creates a new turn control instance
*
* @return the turn control
@@ -30,7 +22,7 @@ public abstract class TurnControlFactory {
* Human or Computer
* @return TurnControlFactory for the player kind
*/
- static public TurnControlFactory getFactory(Type type) {
+ static public TurnControlFactory getFactory(PlayerSettings.Type type) {
switch (type) {
case HUMAN:
return HumanTurnControl.getFactory();