use of mage.view.GameClientMessage in project mage by magefree.
the class GameSessionWatcher method gameOver.
public void gameOver(final String message) {
if (!killed) {
userManager.getUser(userId).ifPresent(user -> {
user.removeGameWatchInfo(game.getId());
user.fireCallback(new ClientCallback(ClientCallbackMethod.GAME_OVER, game.getId(), new GameClientMessage(getGameView(), null, message)));
});
}
}
Aggregations