Index
All Classes and Interfaces|All Packages|Constant Field Values
F
- fireShots(List<IPosition>) - Method in class battleship.Game
-
Fires a set of shots during a player's move.
- fireShots(List<IPosition>) - Method in interface battleship.IGame
-
Fires a set of shots in a given move.
- fireSingleShot(IPosition, boolean) - Method in class battleship.Game
-
Fires a single shot at the specified position, handling scenarios such as invalid positions, repeated shots, hits, misses, and sinking a ship.
- fireSingleShot(IPosition, boolean) - Method in interface battleship.IGame
-
Fires a single shot at the specified position and indicates whether the shot is valid, repeated, and if it hit or sank a ship.
- Fleet - Class in battleship
-
The type Fleet.
- Fleet() - Constructor for class battleship.Fleet
-
Instantiates a new Fleet.
- FLEET_SIZE - Static variable in interface battleship.IFleet
-
The constant FLEET_SIZE.
- Frigate - Class in battleship
-
The type Frigate represents a ship with a size of 4 units.
- Frigate(Compass, IPosition) - Constructor for class battleship.Frigate
-
Instantiates a new Frigate.
All Classes and Interfaces|All Packages|Constant Field Values