Uses of Interface
battleship.IFleet
-
Uses of IFleet in battleship
Classes in battleship that implement IFleetMethods in battleship that return IFleetModifier and TypeMethodDescriptionstatic IFleetFleet.createRandom()Creates a randomly generated fleet containing ships of various predefined types.Game.getAlienFleet()IGame.getAlienFleet()Gets the alien fleetGame.getMyFleet()IGame.getMyFleet()Gets my fleet.Methods in battleship with parameters of type IFleetModifier and TypeMethodDescriptionstatic voidGame.printBoard(IFleet fleet, List<IMove> moves, boolean show_shots, boolean showLegend) Prints the game board by representing the positions of ships, adjacent tiles, shots, and other game elements onto the console.Constructors in battleship with parameters of type IFleet