Class Cruiser


public class Cruiser extends Ship
A ship with a length of three tiles.
Author:
harry
  • Constructor Details

    • Cruiser

      public Cruiser()
      Sets the inherited length variable and initializes the hit array, based on the size of this ship (3 tiles).
  • Method Details

    • getShipType

      public String getShipType()
      Specified by:
      getShipType in class Ship
      Returns:
      "Cruiser", indicating that this is a Cruiser.