Skip navigation links
A B C D E F G H I M N P Q R S T U V W 

I

incrementX() - Method in interface it.unibo.battleship.main.common.Point2d
Returns a new Point2d instance with x incremented by 1.
incrementX() - Method in class it.unibo.battleship.main.common.Point2dImpl
 
incrementY() - Method in interface it.unibo.battleship.main.common.Point2d
Returns a new Point2d instance with y incremented by 1.
incrementY() - Method in class it.unibo.battleship.main.common.Point2dImpl
 
INDEX_NOT_WITHIN_LIMITS - Static variable in class it.unibo.battleship.main.common.GlobalProperties
 
initialize() - Method in class it.unibo.battleship.test.GameTest
 
initializeAi() - Method in interface it.unibo.battleship.main.control.BattleshipControl
Initializes the Ai
initializeAi() - Method in enum it.unibo.battleship.main.control.BattleshipControlImpl
 
INVALID_AI_LEVEL - Static variable in class it.unibo.battleship.main.common.GlobalProperties
 
INVALID_GENERATED_SHOTS_STATE - Static variable in class it.unibo.battleship.main.common.GlobalProperties
 
INVALID_SHIP_SIZE - Static variable in class it.unibo.battleship.main.common.GlobalProperties
 
INVALID_SHOT_TYPE - Static variable in class it.unibo.battleship.main.common.GlobalProperties
 
IoBoundary - Interface in it.unibo.battleship.main.boundary
Represents the I/O Boundary, which is supposed to use the console, or a simple i/o system.
IoHelper - Class in it.unibo.battleship.main.boundary
Helper class for writing/reading using the console.
IoHelper() - Constructor for class it.unibo.battleship.main.boundary.IoHelper
Creates an instance of IoHelper
isAiFleetSunk() - Method in interface it.unibo.battleship.main.control.BattleshipControl
Returns true if the AI fleet is sunk.
isAiFleetSunk() - Method in enum it.unibo.battleship.main.control.BattleshipControlImpl
 
isEmpty() - Method in interface it.unibo.battleship.main.entity.map.FieldCell
Returns true if this field cell is empty.
isEmpty() - Method in class it.unibo.battleship.main.entity.map.FieldCellImpl
 
isGameNotFinished() - Method in interface it.unibo.battleship.main.control.BattleshipControl
Returns true if the game is not finished yet.
isGameNotFinished() - Method in enum it.unibo.battleship.main.control.BattleshipControlImpl
 
isHit() - Method in interface it.unibo.battleship.main.entity.map.FieldCell
Returns true if a Ship is hit.
isHit() - Method in class it.unibo.battleship.main.entity.map.FieldCellImpl
 
isMissed() - Method in interface it.unibo.battleship.main.entity.map.FieldCell
Returns true if the field cell was hit but it was empty.
isMissed() - Method in class it.unibo.battleship.main.entity.map.FieldCellImpl
 
isPlaced() - Method in class it.unibo.battleship.main.entity.ships.AbstractShip
 
isPlaced() - Method in interface it.unibo.battleship.main.entity.ships.Ship
Returns true if this ship was placed.
isPlayerFleetNotPlaced() - Method in interface it.unibo.battleship.main.control.BattleshipControl
Returns true if the player fleet isn't placed yet.
isPlayerFleetNotPlaced() - Method in enum it.unibo.battleship.main.control.BattleshipControlImpl
 
isPlayerFleetSunk() - Method in interface it.unibo.battleship.main.control.BattleshipControl
Returns true if the player fleet is sunk.
isPlayerFleetSunk() - Method in enum it.unibo.battleship.main.control.BattleshipControlImpl
 
isPointWithinBoundaryLimits(Point2d) - Method in interface it.unibo.battleship.main.control.BattleshipControl
Returns true if the point is within the boundary limits, false otherwise.
isPointWithinBoundaryLimits(Point2d) - Method in enum it.unibo.battleship.main.control.BattleshipControlImpl
 
isPointWithinLimits(Point2d) - Static method in class it.unibo.battleship.main.common.Ruleset
Returns true if the point is within the limits of the boundary, false otherwise.
isPresent() - Method in interface it.unibo.battleship.main.entity.map.FieldCell
Returns true if a Ship is present, false otherwise.
isPresent() - Method in class it.unibo.battleship.main.entity.map.FieldCellImpl
 
isReady() - Method in interface it.unibo.battleship.main.entity.ships.Fleet
Returns true if all the ships of the current fleet were placed and the game can start.
isShipPlaceable(Ship, Point2d) - Method in interface it.unibo.battleship.main.entity.map.Field
Returns true if the ship is placeable.
isShipPlaceable(Ship, Point2d) - Method in class it.unibo.battleship.main.entity.map.FieldImpl
 
isShipWithinLimits(Ship, Point2d) - Static method in class it.unibo.battleship.main.common.Ruleset
Returns true if the ship is within the limits of the boundary, false otherwise.
isSunk() - Method in class it.unibo.battleship.main.entity.ships.AbstractShip
 
isSunk() - Method in interface it.unibo.battleship.main.entity.ships.Fleet
Returns true if the fleet was sunk.
isSunk() - Method in interface it.unibo.battleship.main.entity.ships.Ship
Returns true if the ship was sunk.
isValid(int, int, int) - Method in class it.unibo.battleship.main.boundary.IoHelper
Returns true if the value is contained in the range.
it.unibo.battleship.main.boundary - package it.unibo.battleship.main.boundary
Contains all boundary classes to interact with the user.
it.unibo.battleship.main.common - package it.unibo.battleship.main.common
Provides classes which can be used by different modules.
it.unibo.battleship.main.control - package it.unibo.battleship.main.control
Contains all controls.
it.unibo.battleship.main.entity - package it.unibo.battleship.main.entity
Contains all entities needed for a battleship game.
it.unibo.battleship.main.entity.extra - package it.unibo.battleship.main.entity.extra
Contains extra features not needed for the game itself, such as Artificial Intelligence or Player
it.unibo.battleship.main.entity.map - package it.unibo.battleship.main.entity.map
Contains all classes needed to make a map work and to use it.
it.unibo.battleship.main.entity.ships - package it.unibo.battleship.main.entity.ships
Contains all classes regarding ships and fleets, and classes to build them.
it.unibo.battleship.main.entity.shots - package it.unibo.battleship.main.entity.shots
Provides classes to use and create shots.
it.unibo.battleship.main.gui - package it.unibo.battleship.main.gui
Contains all the sample classes to play a battleship game.
it.unibo.battleship.test - package it.unibo.battleship.test
Provides test classes for a battleship game.
A B C D E F G H I M N P Q R S T U V W 
Skip navigation links