Package battleship

Interface IFleet

All Known Implementing Classes:
Fleet

public interface IFleet
The interface Fleet.
  • Field Details

    • FLEET_SIZE

      static final Integer FLEET_SIZE
      The constant FLEET_SIZE.
  • Method Details

    • getShips

      List<IShip> getShips()
      Gets ships.
      Returns:
      the ships
    • addShip

      boolean addShip(IShip s)
      Add ship boolean.
      Parameters:
      s - the s
      Returns:
      the boolean
    • getShipsLike

      List<IShip> getShipsLike(String category)
      Gets ships like.
      Parameters:
      category - the category
      Returns:
      the ships like
    • getFloatingShips

      List<IShip> getFloatingShips()
      Gets floating ships.
      Returns:
      the floating ships
    • getSunkShips

      List<IShip> getSunkShips()
      Gets sunk ships.
      Returns:
      the sunk ships
    • shipAt

      IShip shipAt(IPosition pos)
      Ship at ship.
      Parameters:
      pos - the pos
      Returns:
      the ship
    • printStatus

      void printStatus()
      Print status.