rolled back changes since 0.7.3 R2 - going to switch client/server architecture

This commit is contained in:
BetaSteward 2011-06-14 23:09:18 -04:00
parent 1f72804968
commit c38804af5f
103 changed files with 997 additions and 4921 deletions

View file

@ -58,11 +58,7 @@ public class ReplaySession implements GameCallback {
replay.start();
Session session = SessionManager.getInstance().getSession(sessionId);
if (session != null) {
try {
session.fireCallback(new ClientCallback("replayInit", replay.getGame().getId(), new GameView(replay.next(), replay.getGame())));
} catch (CallbackException ex) {
logger.fatal("replay init exception", ex);
}
session.fireCallback(new ClientCallback("replayInit", replay.getGame().getId(), new GameView(replay.next(), replay.getGame())));
}
}
@ -82,11 +78,7 @@ public class ReplaySession implements GameCallback {
public void gameResult(final String result) {
Session session = SessionManager.getInstance().getSession(sessionId);
if (session != null) {
try {
session.fireCallback(new ClientCallback("replayDone", replay.getGame().getId(), result));
} catch (CallbackException ex) {
logger.fatal("replay done exception", ex);
}
session.fireCallback(new ClientCallback("replayDone", replay.getGame().getId(), result));
}
}
@ -97,11 +89,7 @@ public class ReplaySession implements GameCallback {
else {
Session session = SessionManager.getInstance().getSession(sessionId);
if (session != null) {
try {
session.fireCallback(new ClientCallback("replayUpdate", replay.getGame().getId(), new GameView(state, game)));
} catch (CallbackException ex) {
logger.fatal("replay update exception", ex);
}
session.fireCallback(new ClientCallback("replayUpdate", replay.getGame().getId(), new GameView(state, game)));
}
}
}