Package battleship.controller
Class BattleshipController
java.lang.Object
battleship.controller.BattleshipController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Execute all user input commands.getView()
int
requestForUserInput
(String helpString, int minBound, int maxBound) Request for user inputvoid
Start new game from user input parametersvoid
startGame
(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.
-