ConsoleStartView

public class ConsoleStartView implements StartView

Implementazione con interazione via console della classe StartView. Integra il pattern Singleton.

Author

Francesco Pio Stelluti, Francesco Coppola

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()

getInstance

public static ConsoleStartView getInstance()
Ritorna

ConsoleStartView istanza Singleton di ConsoleStartView.

getPlayerName

public String getPlayerName(PlayerFactoryRegistry registry, boolean isBreaker)

showNewMatchStarting

public void showNewMatchStarting()