Package battleship.model.ships
Class Destroyer
java.lang.Object
battleship.model.ships.Ship
battleship.model.ships.Destroyer
-
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
-
Destroyer
public Destroyer()
-
-
Method Details
-
restoreHealthInRecoveryMode
public void restoreHealthInRecoveryMode()When the recovery mode is enabled this method restore. health of the ship to 2.- Specified by:
restoreHealthInRecoveryMode
in classShip
-
getLength
public int getLength() -
toString
-