...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
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);
}
|
...