Class Caravel

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

public class Caravel extends Ship
The type Caravel represents a ship with a size of 2 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

    • Caravel

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