Package mage.view

Examples of mage.view.GameView


  public void replay() {
    replay.start();
    Session session = SessionManager.getInstance().getSession(sessionId);
    if (session != null)
      session.fireCallback(new ClientCallback("replayInit", new GameView(replay.next(), replay.getGame())));
  }
View Full Code Here


      gameResult("game ended");
    }
    else {
      Session session = SessionManager.getInstance().getSession(sessionId);
      if (session != null)
        session.fireCallback(new ClientCallback("replayUpdate", new GameView(state, game)));
    }
  }
View Full Code Here

      watcher.inform(message, getGameView());
    }
  }

  private GameView getGameView() {
    return new GameView(game.getState(), game);
  }
View Full Code Here

  private GameView getGameView() {
    return new GameView(game.getState(), game);
  }

  private GameView getGameView(UUID playerId) {
    GameView gameView = new GameView(game.getState(), game);
    gameView.setHand(new CardsView(game.getPlayer(playerId).getHand().getCards(game)));
    return gameView;
  }
View Full Code Here

    public void setKilled() {
        killed = true;
    }

    public GameView getGameView() {
        return new GameView(game.getState(), game, null);
    }
View Full Code Here

    public void replay() {
        replay.start();
        User user = UserManager.getInstance().getUser(userId);
        if (user != null) {
            user.fireCallback(new ClientCallback("replayInit", replay.getGame().getId(), new GameView(replay.next(), replay.getGame(), null)));
        }
    }
View Full Code Here

            gameResult("game ended");
        }
        else {
            User user = UserManager.getInstance().getUser(userId);
            if (user != null) {
                user.fireCallback(new ClientCallback("replayUpdate", replay.getGame().getId(), new GameView(state, game, null)));
            }
        }
    }
View Full Code Here

TOP

Related Classes of mage.view.GameView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.