Index
All Classes and Interfaces|All Packages|Constant Field Values
S
- ship() - Method in record class battleship.IGame.ShotResult
-
Returns the value of the
shiprecord component. - Ship - Class in battleship
-
The type Ship.
- Ship(String, Compass, IPosition, int) - Constructor for class battleship.Ship
-
Create ships
- shipAt(IPosition) - Method in class battleship.Fleet
-
Ship at ship.
- shipAt(IPosition) - Method in interface battleship.IFleet
-
Ship at ship.
- shoot() - Method in interface battleship.IPosition
-
Shoot.
- shoot() - Method in class battleship.Position
-
Marks this position as hit by an attack.
- shoot(IPosition) - Method in interface battleship.IShip
-
Shoot.
- shoot(IPosition) - Method in class battleship.Ship
-
Shoot.
- ShotResult(boolean, boolean, IShip, boolean) - Constructor for record class battleship.IGame.ShotResult
-
Creates an instance of a
ShotResultrecord class. - sink() - Method in interface battleship.IShip
-
Sink.
- sink() - Method in class battleship.Ship
-
Sink.
- SOUTH - Enum constant in enum class battleship.Compass
-
South compass.
- stillFloating() - Method in interface battleship.IShip
-
Still floating boolean.
- stillFloating() - Method in class battleship.Ship
-
Still floating boolean.
- sunk() - Method in record class battleship.IGame.ShotResult
-
Returns the value of the
sunkrecord component.
All Classes and Interfaces|All Packages|Constant Field Values