Index

B C D E G H I L O P S T 
All Classes and Interfaces|All Packages

S

setBowColumn(int) - Method in class Ship
 
setBowRow(int) - Method in class Ship
 
setHorizontal(boolean) - Method in class Ship
 
Ship - Class in Unnamed Package
Ship is the abstract class for all of the ships and sea tiles that will make up the game of Battleship.
Ship() - Constructor for class Ship
 
ships - Variable in class Ocean
A 10x10 2D array of Ships, which can be used to quickly determine which ship is in any given location.
shipsSunk - Variable in class Ocean
The number of ships totally sunk.
shootAt(int, int) - Method in class EmptySea
Since an EmptySea is empty by definition, shooting at one will always be a miss.
shootAt(int, int) - Method in class Ocean
Fires a shot at this coordinate.
shootAt(int, int) - Method in interface OceanInterface
Fires a shot at this coordinate.
shootAt(int, int) - Method in class Ship
If a part of this ship occupies this coordinate, and if the ship hasn't been sunk, mark the part of the ship at that coordinate as "hit".
shotsFired - Variable in class Ocean
The total number of shots fired by the user
Submarine - Class in Unnamed Package
A ship with a length of one tile.
Submarine() - Constructor for class Submarine
Sets the inherited length variable and initializes the hit array, based on the size of this ship (1 tiles).
B C D E G H I L O P S T 
All Classes and Interfaces|All Packages