Class Frigate

java.lang.Object
battleship.Ship
battleship.Frigate
All Implemented Interfaces:
IShip

public class Frigate extends Ship
The type Frigate represents a ship with a size of 4 units. It is positioned on the game board based on its bearing and initial position. Author: britoeabreu Date: 2023-10-10 Time: 15:30
  • Constructor Details

    • Frigate

      public Frigate(Compass bearing, IPosition pos)
      Instantiates a new Frigate.
      Parameters:
      bearing - The bearing of the ship (NORTH, SOUTH, EAST, or WEST).
      pos - The initial position of the ship on the game board.