summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control/network
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-06-22 10:51:16 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-06-22 10:51:16 +0200
commite9b2de87bca4e0ba34236455e2c25c9f17be26d3 (patch)
tree89ff360822ecda25ab51f3af604f8b0427436ff5 /src/jrummikub/control/network
parent73c1072ba68b152aeb85aa71ae751f5d8afb3a68 (diff)
downloadJRummikub-e9b2de87bca4e0ba34236455e2c25c9f17be26d3.tar
JRummikub-e9b2de87bca4e0ba34236455e2c25c9f17be26d3.zip
Added Javadoc
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@593 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/control/network')
-rw-r--r--src/jrummikub/control/network/NetworkControl.java5
-rw-r--r--src/jrummikub/control/network/NetworkGameControl.java6
-rw-r--r--src/jrummikub/control/network/NetworkRoundControl.java2
3 files changed, 11 insertions, 2 deletions
diff --git a/src/jrummikub/control/network/NetworkControl.java b/src/jrummikub/control/network/NetworkControl.java
index d31442b..bf92ab5 100644
--- a/src/jrummikub/control/network/NetworkControl.java
+++ b/src/jrummikub/control/network/NetworkControl.java
@@ -382,6 +382,11 @@ public class NetworkControl {
gameControl.startGame();
}
+ /**
+ * Returns if there is a running game
+ *
+ * @return is there a game running
+ */
public boolean isGameRunning() {
return gameControl != null;
}
diff --git a/src/jrummikub/control/network/NetworkGameControl.java b/src/jrummikub/control/network/NetworkGameControl.java
index 009c131..a277cd3 100644
--- a/src/jrummikub/control/network/NetworkGameControl.java
+++ b/src/jrummikub/control/network/NetworkGameControl.java
@@ -62,6 +62,12 @@ public class NetworkGameControl extends GameControl {
}));
}
+ /**
+ * The back event is emitted when the network game has ended and the player
+ * wants to return to the game list
+ *
+ * @return the event
+ */
public IEvent getBackEvent() {
return backEvent;
}
diff --git a/src/jrummikub/control/network/NetworkRoundControl.java b/src/jrummikub/control/network/NetworkRoundControl.java
index c8731ee..29ec397 100644
--- a/src/jrummikub/control/network/NetworkRoundControl.java
+++ b/src/jrummikub/control/network/NetworkRoundControl.java
@@ -1,7 +1,5 @@
package jrummikub.control.network;
-import java.util.Date;
-
import jrummikub.control.RoundControl;
import jrummikub.control.turn.ITurnControl;
import jrummikub.model.IRoundState;