Index

A B C E F G H I J M N O P R S T V W 
All Classes and Interfaces|All Packages|Constant Field Values

R

randomBearing() - Static method in enum class battleship.Compass
Generate a random compass direction (bearing).
randomEnemyFire() - Method in class battleship.Game
Simulates a random firing action by the enemy, generating a set of unique shot coordinates and serializing them into a JSON string.
randomEnemyFire() - Method in interface battleship.IGame
Simulates a random enemy firing action on the game board.
randomPosition() - Static method in class battleship.Position
 
readClassicPosition(Scanner) - Static method in class battleship.Tasks
This operation allows reading a position in the map
readEnemyFire(Scanner) - Method in class battleship.Game
Reads and processes the enemy fire input from the specified scanner.
readEnemyFire(Scanner) - Method in interface battleship.IGame
Reads the result of an enemy firing action from input and interprets it.
readMove(int, Scanner) - Static method in interface battleship.IMove
 
readPosition(Scanner) - Static method in class battleship.Tasks
This operation allows reading a position in the map
readShip(Scanner) - Static method in class battleship.Tasks
This operation reads data about a ship, build it and returns it
repeated() - Method in record class battleship.IGame.ShotResult
Returns the value of the repeated record component.
repeatedShot(IPosition) - Method in class battleship.Game
 
A B C E F G H I J M N O P R S T V W 
All Classes and Interfaces|All Packages|Constant Field Values