fixed issue 25 - server waits for all clients to confirm initialization before starting game

This commit is contained in:
BetaSteward 2010-11-30 04:35:26 +00:00
parent f81c238994
commit 3ca748e16d
9 changed files with 56 additions and 45 deletions

View file

@ -99,6 +99,7 @@ public class Client implements CallbackClient {
}
else if (callback.getMethod().equals("gameInit")) {
session.getGame().init((GameView) callback.getData());
session.ack("gameInit");
}
else if (callback.getMethod().equals("gameOver")) {
session.getGame().modalMessage((String) callback.getData());