Package battleship.model.ships
Class Submarine
java.lang.Object
battleship.model.ships.Ship
battleship.model.ships.Submarine
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintvoidWhen the recovery mode is enabled this method restore.toString()Methods inherited from class battleship.model.ships.ShipconvertInputIntegersToShips, hitTheShip
- 
Constructor Details- 
Submarinepublic Submarine()
 
- 
- 
Method Details- 
restoreHealthInRecoveryModepublic void restoreHealthInRecoveryMode()When the recovery mode is enabled this method restore. health of the ship to 1.- Specified by:
- restoreHealthInRecoveryModein class- Ship
 
- 
getLengthpublic int getLength()
- 
toString
 
-