Uses of Interface
Ship

Uses of Ship in <Unnamed>
 

Classes in <Unnamed> that implement Ship
 class AircraftCarrier
           
 class Barge
           
 class Cruiser
           
 class Destroyer
           
 

Methods in <Unnamed> that return Ship
 Ship Grid.getLastStruck()
          Returns a reference to the Ship hit by the last strike, or null if the last strike missed all ships.
 Ship[] Grid.getLiveShips()
          Returns a newly-allocated array of references to the ships on this grid that have not yet been destroyed.
 Ship[] Grid.getSunkenShips()
          Returns a newly-allocated array of references to the ships on this grid that have been destroyed.
 Ship SmarterCPUPlayer.placeOneShip()
          This method will randomly place one ship.
 Ship Player.placeOneShip()
           Returns a Ship object with the origin and facing direction specified by this Player
 Ship HumanPlayer.placeOneShip()
          This method will prompt the user to place a ship, as per the project writeup.
 Ship NaiveCPUPlayer.placeOneShip()
          This method will randomly place one ship.
 

Methods in <Unnamed> with parameters of type Ship
 boolean Grid.canPlace(Ship s)
          Returns true if the given Ship can be legally placed on the board, false otherwise.
 java.lang.String Grid.explainIllegalPlacement(Ship s)
          Returns a textual explanation for why a given Ship cannot legally be placed on the board.
 void Grid.place(Ship s)
          Places a given Ship on the board.