ConsoleStartView

public class ConsoleStartView implements StartView

Implementazione con interazione via console della classe StartView.

Author

Francesco Pio Stelluti, Francesco Coppola

Constructors

ConsoleStartView

public ConsoleStartView()

Inizializzazione della vista con un FilterInputStream che non porta alla chiusura di System.in all’interno del suo metodo close().

Methods

askNewAttempts

public int askNewAttempts(int lowTreshold)

askNewLength

public int askNewLength(int lowTreshold, int highTreshhold)

askNewLengthsAndAttempts

public boolean askNewLengthsAndAttempts()

askNewStartupSettings

public StartupSettings askNewStartupSettings()

badEnding

public void badEnding(String reason)

ending

public void ending()

getPlayerName

public String getPlayerName(PlayerFactoryRegistry registry, boolean isBreaker)

showNewMatchStarting

public void showNewMatchStarting()