Package battleship.model.ships
Class Battleship
java.lang.Object
battleship.model.ships.Ship
battleship.model.ships.Battleship
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
When the recovery mode is enabled this method restore.toString()
Methods inherited from class battleship.model.ships.Ship
convertInputIntegersToShips, hitTheShip
-
Constructor Details
-
Battleship
public Battleship()
-
-
Method Details
-
getLength
public int getLength() -
restoreHealthInRecoveryMode
public void restoreHealthInRecoveryMode()When the recovery mode is enabled this method restore. health of the ship to 5.- Specified by:
restoreHealthInRecoveryMode
in classShip
-
toString
-