mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Removed logger output used for debug.
This commit is contained in:
parent
489518c1e0
commit
fb8c4fcbc3
2 changed files with 2 additions and 9 deletions
|
@ -90,7 +90,7 @@ import org.apache.log4j.Logger;
|
||||||
*/
|
*/
|
||||||
public class GameController implements GameCallback {
|
public class GameController implements GameCallback {
|
||||||
|
|
||||||
private static ExecutorService gameExecutor = ThreadExecutor.getInstance().getGameExecutor();
|
private static final ExecutorService gameExecutor = ThreadExecutor.getInstance().getGameExecutor();
|
||||||
private static final Logger logger = Logger.getLogger(GameController.class);
|
private static final Logger logger = Logger.getLogger(GameController.class);
|
||||||
|
|
||||||
private ConcurrentHashMap<UUID, GameSession> gameSessions = new ConcurrentHashMap<UUID, GameSession>();
|
private ConcurrentHashMap<UUID, GameSession> gameSessions = new ConcurrentHashMap<UUID, GameSession>();
|
||||||
|
@ -689,7 +689,6 @@ public class GameController implements GameCallback {
|
||||||
@Override
|
@Override
|
||||||
public void gameResult(String result) {
|
public void gameResult(String result) {
|
||||||
try {
|
try {
|
||||||
logger.warn("Game Result: " + result);
|
|
||||||
endGame(result);
|
endGame(result);
|
||||||
} catch (MageException ex) {
|
} catch (MageException ex) {
|
||||||
logger.fatal("Game Result error", ex);
|
logger.fatal("Game Result error", ex);
|
||||||
|
|
|
@ -127,13 +127,7 @@ public class GameWatcher {
|
||||||
}
|
}
|
||||||
|
|
||||||
public GameView getGameView() {
|
public GameView getGameView() {
|
||||||
logger.warn("start getGameView");
|
return new GameView(game.getState(), game, this.isPlayer);
|
||||||
GameState gameState = game.getState();
|
|
||||||
logger.warn("start afterState");
|
|
||||||
GameView gameView = new GameView(gameState, game, this.isPlayer);
|
|
||||||
// return new GameView(game.getState(), game, this.isPlayer);
|
|
||||||
logger.warn("after getGameView");
|
|
||||||
return gameView;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public GameEndView getGameEndView(UUID playerId, Match match) {
|
public GameEndView getGameEndView(UUID playerId, Match match) {
|
||||||
|
|
Loading…
Reference in a new issue