Uses of Record Class
battleship.IGame.ShotResult
-
Uses of IGame.ShotResult in battleship
Methods in battleship that return IGame.ShotResultModifier and TypeMethodDescriptionGame.fireSingleShot(IPosition pos, boolean isRepeated) Fires a single shot at the specified position, handling scenarios such as invalid positions, repeated shots, hits, misses, and sinking a ship.IGame.fireSingleShot(IPosition pos, boolean isRepeated) Fires a single shot at the specified position and indicates whether the shot is valid, repeated, and if it hit or sank a ship.Methods in battleship that return types with arguments of type IGame.ShotResult