Package battleship

Class Galleon

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

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

    • Galleon

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