示例#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);
 }