summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control/network
diff options
context:
space:
mode:
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;