Package battleship
Interface IFleet
- All Known Implementing Classes:
Fleet
public interface IFleet
The interface Fleet.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd ship boolean.Gets floating ships.getShips()Gets ships.getShipsLike(String category) Gets ships like.Gets sunk ships.voidPrint status.Ship at ship.
-
Field Details
-
FLEET_SIZE
The constant FLEET_SIZE.
-
-
Method Details
-
getShips
Gets ships.- Returns:
- the ships
-
addShip
Add ship boolean.- Parameters:
s- the s- Returns:
- the boolean
-
getShipsLike
Gets ships like.- Parameters:
category- the category- Returns:
- the ships like
-
getFloatingShips
Gets floating ships.- Returns:
- the floating ships
-
getSunkShips
Gets sunk ships.- Returns:
- the sunk ships
-
shipAt
Ship at ship.- Parameters:
pos- the pos- Returns:
- the ship
-
printStatus
void printStatus()Print status.
-