summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control/turn
diff options
context:
space:
mode:
authorIda Massow <massow@informatik.uni-luebeck.de>2011-05-30 10:13:26 +0200
committerIda Massow <massow@informatik.uni-luebeck.de>2011-05-30 10:13:26 +0200
commit7404566d460683048dbce5020c7eb0fc32a06c77 (patch)
treeeb7ad70c6d8c762480ef3baea8d9d05dca0749f4 /src/jrummikub/control/turn
parentb19a46b7b259f3a6e189ba594446be3ad54801f5 (diff)
downloadJRummikub-7404566d460683048dbce5020c7eb0fc32a06c77.tar
JRummikub-7404566d460683048dbce5020c7eb0fc32a06c77.zip
Fixed a few warnings
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@320 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/control/turn')
-rw-r--r--src/jrummikub/control/turn/BaseAIControl.java6
-rw-r--r--src/jrummikub/control/turn/HumanTurnControl.java3
-rw-r--r--src/jrummikub/control/turn/ITurnControl.java1
-rw-r--r--src/jrummikub/control/turn/TurnControlFactory.java17
4 files changed, 9 insertions, 18 deletions
diff --git a/src/jrummikub/control/turn/BaseAIControl.java b/src/jrummikub/control/turn/BaseAIControl.java
index d143dc1..4e627c3 100644
--- a/src/jrummikub/control/turn/BaseAIControl.java
+++ b/src/jrummikub/control/turn/BaseAIControl.java
@@ -1,13 +1,7 @@
package jrummikub.control.turn;
-import java.util.Date;
-
import javax.swing.SwingUtilities;
-import jrummikub.model.IHand;
-import jrummikub.model.ITable;
-import jrummikub.view.IView;
-
public class BaseAIControl extends AbstractTurnControl {
long startTime;
diff --git a/src/jrummikub/control/turn/HumanTurnControl.java b/src/jrummikub/control/turn/HumanTurnControl.java
index 6dc055a..9215bae 100644
--- a/src/jrummikub/control/turn/HumanTurnControl.java
+++ b/src/jrummikub/control/turn/HumanTurnControl.java
@@ -9,8 +9,6 @@ import java.util.List;
import jrummikub.control.ITurnTimer;
import jrummikub.control.TurnTimer;
import jrummikub.model.Hand;
-import jrummikub.model.IHand;
-import jrummikub.model.ITable;
import jrummikub.model.Position;
import jrummikub.model.Stone;
import jrummikub.model.StoneColor;
@@ -20,7 +18,6 @@ import jrummikub.util.IListener;
import jrummikub.util.IListener1;
import jrummikub.util.IListener2;
import jrummikub.util.Pair;
-import jrummikub.view.IView;
/**
* Controller for a single turn made by a human player
diff --git a/src/jrummikub/control/turn/ITurnControl.java b/src/jrummikub/control/turn/ITurnControl.java
index 061cddd..5d0cd49 100644
--- a/src/jrummikub/control/turn/ITurnControl.java
+++ b/src/jrummikub/control/turn/ITurnControl.java
@@ -1,6 +1,5 @@
package jrummikub.control.turn;
-import jrummikub.model.IHand;
import jrummikub.model.IPlayer;
import jrummikub.model.ITable;
import jrummikub.util.Event;
diff --git a/src/jrummikub/control/turn/TurnControlFactory.java b/src/jrummikub/control/turn/TurnControlFactory.java
index ecfc5ff..9e3b9f9 100644
--- a/src/jrummikub/control/turn/TurnControlFactory.java
+++ b/src/jrummikub/control/turn/TurnControlFactory.java
@@ -1,11 +1,12 @@
package jrummikub.control.turn;
-import jrummikub.model.IHand;
-import jrummikub.model.ITable;
-import jrummikub.view.IView;
-
+/**
+ * Creates a turn control for the active player, regarding if layer is human or
+ * computer
+ *
+ */
public abstract class TurnControlFactory {
- /**
+ /**
* Type of turn control.
*/
public enum Type {
@@ -14,11 +15,11 @@ public abstract class TurnControlFactory {
/** */
COMPUTER
};
-
+
public abstract ITurnControl create();
-
+
static public TurnControlFactory getFactory(Type type) {
- switch(type) {
+ switch (type) {
case HUMAN:
return HumanTurnControl.getFactory();
case COMPUTER: