Package battleship.controller
Class BattleshipController
java.lang.Object
battleship.controller.BattleshipController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidExecute all user input commands.getView()intrequestForUserInput(String helpString, int minBound, int maxBound) Request for user inputvoidStart new game from user input parametersvoidstartGame(int[] args) Start new game with arguments from terminal.
-
Constructor Details
-
BattleshipController
public BattleshipController()
-
-
Method Details
-
getView
-
startGame
public void startGame()Start new game from user input parameters -
startGame
public void startGame(int[] args) Start new game with arguments from terminal.- Parameters:
args- arguments
-
requestForUserInput
Request for user input- Parameters:
helpString- help string to print firstminBound- minimum correct integer numbermaxBound- maximum correct integer number- Returns:
- option (int)
-
executeCommands
public void executeCommands()Execute all user input commands.
-