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

G

GameBoundary - Interface in it.unibo.battleship.main.boundary
Created by fabio.urbini on 05/07/2017.
GameTest - Class in it.unibo.battleship.test
This test is designed to test some of the game features, partially.
GameTest() - Constructor for class it.unibo.battleship.test.GameTest
 
getAllNonPlacedShips() - Method in interface it.unibo.battleship.main.entity.ships.Fleet
Returns all non placed ships.
getAllPositions() - Method in class it.unibo.battleship.main.entity.ships.AbstractShip
 
getAllPositions() - Method in interface it.unibo.battleship.main.entity.ships.Ship
Gets all points used by this ship.
getAllShips() - Method in interface it.unibo.battleship.main.entity.ships.Fleet
Returns a list of all ships.
getAllShipsByType(Ruleset.ShipRules) - Method in interface it.unibo.battleship.main.entity.ships.Fleet
Returns all ships of a type.
getBoundary() - Method in interface it.unibo.battleship.main.control.BattleshipControl
Returns the actual boundary used.
getBoundary() - Method in enum it.unibo.battleship.main.control.BattleshipControlImpl
 
getButton() - Method in class it.unibo.battleship.main.gui.FieldButton
Returns the JButton contained in the object.
getColumnsCount() - Method in interface it.unibo.battleship.main.common.FieldBound
Returns the horizontal bound, which is also the number of columns.
getColumnsCount() - Method in class it.unibo.battleship.main.common.FieldBoundImpl
 
getFactory() - Method in interface it.unibo.battleship.main.entity.ships.Fleet
Returns a ship factory.
getFieldBound() - Method in class it.unibo.battleship.main.entity.extra.AbstractArtificialIntelligence
 
getFieldBound() - Method in interface it.unibo.battleship.main.entity.extra.ArtificialIntelligence
Returns the boundary.
getFieldBound() - Method in interface it.unibo.battleship.main.entity.map.Field
Returns the boundary of the field.
getFieldBound() - Method in class it.unibo.battleship.main.entity.map.FieldImpl
 
getFieldCells() - Method in interface it.unibo.battleship.main.entity.map.Field
Returns the field cells matrix.
getFieldCells() - Method in class it.unibo.battleship.main.entity.map.FieldImpl
 
getFieldView(BattleshipControl.PlayerType, BattleshipControl.ViewerType) - Method in interface it.unibo.battleship.main.control.BattleshipControl
Get the proper field view depending on the player who owns it and who is actually accessing it.
getFieldView(BattleshipControl.PlayerType, BattleshipControl.ViewerType) - Method in enum it.unibo.battleship.main.control.BattleshipControlImpl
 
getFleetFactory() - Method in interface it.unibo.battleship.main.entity.extra.ArtificialIntelligence
Returns a FleetFactory.
getIndex(Point2d) - Static method in class it.unibo.battleship.main.common.Point2dHelper
Returns an index based on the point and the boundary.
getInstancesNumber() - Method in enum it.unibo.battleship.main.common.Ruleset.ShipRules
 
getMainPanel() - Method in class it.unibo.battleship.main.gui.MyFrame
 
getName() - Method in class it.unibo.battleship.main.entity.extra.Player
 
getNextNonPlacedShip() - Method in interface it.unibo.battleship.main.entity.ships.Fleet
Returns the next non placed ship.
getNextPlaceableShip() - Method in interface it.unibo.battleship.main.control.BattleshipControl
Returns the name of the next placeable ship.
getNextPlaceableShip() - Method in enum it.unibo.battleship.main.control.BattleshipControlImpl
 
getNextShipByType(Ruleset.ShipRules) - Method in interface it.unibo.battleship.main.entity.ships.Fleet
Returns the next ship of a type.
getPoint() - Method in interface it.unibo.battleship.main.entity.shots.Shot
Gets the point of the shot.
getPoint() - Method in class it.unibo.battleship.main.entity.shots.ShotImpl
 
getPosition() - Method in class it.unibo.battleship.main.gui.FieldButton
Returns the Point2d.
getProjectionPoints(Point2d) - Method in class it.unibo.battleship.main.entity.ships.AbstractShip
 
getProjectionPoints(Point2d) - Method in interface it.unibo.battleship.main.entity.ships.Ship
Returns temporary projection points of the ship determined by the point given in the input.
getRowsCount() - Method in interface it.unibo.battleship.main.common.FieldBound
Returns the vertical bound, which is also the number of rows.
getRowsCount() - Method in class it.unibo.battleship.main.common.FieldBoundImpl
 
getShip() - Method in interface it.unibo.battleship.main.entity.map.FieldCell
Returns an Optional of Ship.
getShip() - Method in class it.unibo.battleship.main.entity.map.FieldCellImpl
 
getShotCollection(Point2d) - Method in class it.unibo.battleship.main.entity.shots.ShotsCollection
Returns a Set of Shot which contains all shots
getShotCollectionByType(ShotsCollection.Type) - Static method in class it.unibo.battleship.main.entity.shots.ShotsCollection
Returns a ShotCollection given the input shot type.
getShotFactory() - Method in interface it.unibo.battleship.main.entity.extra.ArtificialIntelligence
Returns a ShotFactory.
getSize() - Method in interface it.unibo.battleship.main.common.FieldBound
Returns the size of the boundary.
getSize() - Method in class it.unibo.battleship.main.common.FieldBoundImpl
 
getSize() - Method in enum it.unibo.battleship.main.common.Ruleset.ShipRules
 
getSize() - Method in interface it.unibo.battleship.main.entity.ships.Ship
Returns the size of the current ship.
getStartingPosition() - Method in class it.unibo.battleship.main.entity.ships.AbstractShip
 
getStartingPosition() - Method in interface it.unibo.battleship.main.entity.ships.Ship
Gets the starting position of this ship.
getTotalSize() - Method in enum it.unibo.battleship.main.entity.shots.ShotsCollection.Type
 
getValidPoint2d() - Method in class it.unibo.battleship.main.boundary.IoHelper
Returns a valid Point2d using the console.
getViewByEnemy(Field) - Static method in class it.unibo.battleship.main.entity.map.FieldHelper
Returns a representation of the field viewed by the enemy.
getViewByOwner(Field) - Static method in class it.unibo.battleship.main.entity.map.FieldHelper
Returns a representation of the field viewied by the owner of the field.
getX() - Method in interface it.unibo.battleship.main.common.Point2d
Returns the X coordinate (column).
getX() - Method in class it.unibo.battleship.main.common.Point2dImpl
 
getY() - Method in interface it.unibo.battleship.main.common.Point2d
Returns the y coordinate (row).
getY() - Method in class it.unibo.battleship.main.common.Point2dImpl
 
GlobalProperties - Class in it.unibo.battleship.main.common
Contains the global properties of the battleship game, including ship rules.
A B C D E F G H I M N P Q R S T U V W 
Skip navigation links