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

@ -61,13 +61,8 @@ public class GameWatcher {
if (!killed) {
Session session = SessionManager.getInstance().getSession(sessionId);
if (session != null) {
try {
session.fireCallback(new ClientCallback("gameInit", gameId, gameView));
return true;
} catch (CallbackException ex) {
logger.fatal("Unable to start watching ", ex);
return false;
}
session.fireCallback(new ClientCallback("gameInit", gameId, gameView));
return true;
}
}
return false;
@ -77,11 +72,7 @@ public class GameWatcher {
if (!killed) {
Session session = SessionManager.getInstance().getSession(sessionId);
if (session != null) {
try {
session.fireCallback(new ClientCallback("gameUpdate", gameId, gameView));
} catch (CallbackException ex) {
logger.fatal("game update exception", ex);
}
session.fireCallback(new ClientCallback("gameUpdate", gameId, gameView));
}
}
}
@ -90,11 +81,7 @@ public class GameWatcher {
if (!killed) {
Session session = SessionManager.getInstance().getSession(sessionId);
if (session != null) {
try {
session.fireCallback(new ClientCallback("gameInform", gameId, new GameClientMessage(gameView, message)));
} catch (CallbackException ex) {
logger.fatal("game inform exception", ex);
}
session.fireCallback(new ClientCallback("gameInform", gameId, new GameClientMessage(gameView, message)));
}
}
}
@ -103,11 +90,7 @@ public class GameWatcher {
if (!killed) {
Session session = SessionManager.getInstance().getSession(sessionId);
if (session != null) {
try {
session.fireCallback(new ClientCallback("gameOver", gameId, message));
} catch (CallbackException ex) {
logger.fatal("game select exception", ex);
}
session.fireCallback(new ClientCallback("gameOver", gameId, message));
}
}
}