diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-13 18:22:55 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-13 18:22:55 +0200 |
commit | 70d6ae6d749d11ced007fa781ce65c6e27229007 (patch) | |
tree | 67beb90aeafcc48130188cf54dfc8b8847b62db0 /src/jrummikub/control/turn | |
parent | a4faa8db23589930a828250816ebaeddf787c689 (diff) | |
download | JRummikub-70d6ae6d749d11ced007fa781ce65c6e27229007.tar JRummikub-70d6ae6d749d11ced007fa781ce65c6e27229007.zip |
Player Type in player settings verschoben
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@420 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/control/turn')
-rw-r--r-- | src/jrummikub/control/turn/TurnControlFactory.java | 14 |
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(); |