/*
 * Copyright 2012 Evan Flynn
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.foobar.minesweeper.event;

import org.foobar.minesweeper.model.Minefield;
import org.foobar.minesweeper.model.Square;

public interface FieldHandler {
  void updateSquare(Square square);

  void updateBoard();

  void changeState(Minefield.State state);
}

@@ -723,99 +723,411 @@
 e;%0A%0A
-public interface FieldHandler %7B%0A  void updateSquare(Square square);%0A%0A  void updateBoard();%0A
+/**%0A * Handler for %7B@code Minefield%7D events.%0A */%0Apublic interface FieldHandler %7B%0A  /**%0A   * Called when a %7B@code Square%7D was changed.%0A   * %0A   * @param square  square to update.%0A   */%0A  void updateSquare(Square square);%0A%0A  /**%0A   * Called when the entire board was changed. This occurs on a restart%0A   * or a cascade.%0A   */%0A  void updateBoard();%0A%0A  /**%0A   * Called when the game state was updated.%0A   */
 %0A  v

Update minesweeper-model/src/main/java/org/foobar/minesweeper/event/FieldHandler.java