コード例 #1
0
 protected void performCpuMove() {
   gameView.performCpuMove();
 }
コード例 #2
0
 protected void setGameViewClickable(final boolean state) {
   if (gameView != null) {
     gameView.setClickable(state);
   }
 }
コード例 #3
0
  protected TicTacToeGame.Player getOpponentForPlayer(TicTacToeGame.Player player) {
    Preconditions.checkNotNull(player);

    return gameView.getOpponentForPlayer(player);
  }
コード例 #4
0
 protected void performRandomMove(TicTacToePoint point) {
   gameView.performFirstRandomMove(point);
 }
コード例 #5
0
 @Override
 public void onPlayerTurn(TicTacToeGame.Player player) {
   turnEntry.setValueText(player.name());
   gameView.setTurn(player);
 }
コード例 #6
0
 private void setUpViews() {
   gameView.setOnGameStateChangeListener(this);
 }