Exemplo n.º 1
0
  public void notifyMoveDone(ImmutablePosition position, short move) {
    if (DEBUG) System.out.println("ChGame: move made in position " + move);

    if (!m_ignoreNotifications) {
      if (!m_alwaysAddLine) {
        short[] moves = getNextShortMoves();
        for (int i = 0; i < moves.length; i++) {
          if (moves[i] == move) {
            m_cur = m_moves.goForward(m_cur, i);
            return; // =====>
          }
        }
      }
      m_cur = m_moves.appendAsRightMostLine(m_cur, move);
      fireMoveModelChanged();
    }
  }