Index
All Classes and Interfaces|All Packages|Constant Field Values
P
- Position - Class in battleship
-
Represents a position on the game board.
- Position(char, int) - Constructor for class battleship.Position
-
Constructs a new Position with the specified row and column.
- Position(int, int) - Constructor for class battleship.Position
-
Constructs a new Position with the specified row and column.
- positions - Variable in class battleship.Ship
-
The Positions occupied by the ship.
- printAlienBoard(boolean, boolean) - Method in class battleship.Game
- printAlienBoard(boolean, boolean) - Method in interface battleship.IGame
-
Print the alien board (alien fleet + my shots).
- printBoard(IFleet, List<IMove>, boolean, boolean) - Static method in class battleship.Game
-
Prints the game board by representing the positions of ships, adjacent tiles, shots, and other game elements onto the console.
- printFloatingShips() - Method in class battleship.Fleet
-
This operation prints all the ships of a fleet but not yet shot
- printMyBoard(boolean, boolean) - Method in class battleship.Game
- printMyBoard(boolean, boolean) - Method in interface battleship.IGame
-
Print my board (my fleet + alien shots).
- printShips(List<IShip>) - Method in class battleship.Fleet
-
This operation prints all the given ships
- printShipsByCategory(String) - Method in class battleship.Fleet
-
This operation prints all the ships of a fleet belonging to a particular category
- printStatus() - Method in class battleship.Fleet
-
This operation shows the state of a fleet
- printStatus() - Method in interface battleship.IFleet
-
Print status.
- processEnemyFire(boolean) - Method in interface battleship.IMove
- processEnemyFire(boolean) - Method in class battleship.Move
-
Processes the results of enemy fire on the game board, analyzing the outcomes of shots, such as valid shots, repeated shots, missed shots, hits on ships, and sunk ships.
All Classes and Interfaces|All Packages|Constant Field Values