summaryrefslogtreecommitdiff
path: root/backend/src/main/java/org
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-01-23 00:34:12 +0100
committerJoffrey BION <joffrey.bion@gmail.com>2017-01-23 00:34:12 +0100
commitc316cd7d87d819dc3f800c56b97bf4e0234888f6 (patch)
tree93e9d0131c55457108e4a12eaafa72b316da2625 /backend/src/main/java/org
parentMinor visual styles (diff)
downloadseven-wonders-c316cd7d87d819dc3f800c56b97bf4e0234888f6.tar.gz
seven-wonders-c316cd7d87d819dc3f800c56b97bf4e0234888f6.tar.bz2
seven-wonders-c316cd7d87d819dc3f800c56b97bf4e0234888f6.zip
Add test checking the switch to PLAYING state
Diffstat (limited to 'backend/src/main/java/org')
-rw-r--r--backend/src/main/java/org/luxons/sevenwonders/game/Lobby.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/src/main/java/org/luxons/sevenwonders/game/Lobby.java b/backend/src/main/java/org/luxons/sevenwonders/game/Lobby.java
index 6975349a..b90283a8 100644
--- a/backend/src/main/java/org/luxons/sevenwonders/game/Lobby.java
+++ b/backend/src/main/java/org/luxons/sevenwonders/game/Lobby.java
@@ -52,6 +52,10 @@ public class Lobby {
this.settings = settings;
}
+ public State getState() {
+ return state;
+ }
+
public synchronized void addPlayer(Player player) throws GameAlreadyStartedException, PlayerOverflowException {
if (hasStarted()) {
throw new GameAlreadyStartedException();
bgstack15