Uses of Class
Ship

  • Uses of Ship in Unnamed Package

    Subclasses of Ship in Unnamed Package
    Modifier and Type
    Class
    Description
    class 
    A Ship with a length of four tiles.
    class 
    A ship with a length of three tiles.
    class 
    A ship with a length of two tiles.
    class 
    Considered a type of Ship so that the Ocean's ship 2D array can consist of EmptySea references for empty tiles and proper ships for tiles with ships actually inside of them.
    class 
    A ship with a length of one tile.
    Fields in Unnamed Package declared as Ship
    Modifier and Type
    Field
    Description
    protected Ship[][]
    Ocean.ships
    A 10x10 2D array of Ships, which can be used to quickly determine which ship is in any given location.
    Methods in Unnamed Package that return Ship
    Modifier and Type
    Method
    Description
    Ship[][]
    Ocean.getShipArray()
    Provides access to the grid of ships in this Ocean.
    Ship[][]
    OceanInterface.getShipArray()
    Provides access to the grid of ships in this Ocean.