Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
themeEclipse
languagejava
titleIEnemy.java
public interface IEnemy extends IBattleship {

    /**
     * Returns the coordinates targeted for fire by the AI.
     * @arg: The board which the enemy fires at.
	 * @return An integer array of length 2:
     * The first element is the x coordinate.
     * The second element is the y coordinate.
     */
    public int[] target(IBattleship board);

}

...