StartStats

public class StartStats

Responsabilità: tenere traccia delle informazioni necessarie per poter iniziare una nuova partita.

Author

Francesco Pio Stelluti, Francesco Coppola

Fields

highTresholdLength

int highTresholdLength

lowTresholdAttempts

int lowTresholdAttempts

lowTresholdLength

int lowTresholdLength

Constructors

StartStats

public StartStats()

Methods

getAttempts

public int getAttempts()

getBreakers

public BreakerFactoryRegistry getBreakers()

getCurrentBreaker

public CodeBreaker getCurrentBreaker()

getCurrentGame

public SingleMatch getCurrentGame()

getCurrentMaker

public CodeMaker getCurrentMaker()

getHighTresholdLength

public int getHighTresholdLength()

getIntView

public InteractionView getIntView()

getLowTresholdAttempts

public int getLowTresholdAttempts()

getLowTresholdLength

public int getLowTresholdLength()

getMakers

public MakerFactoryRegistry getMakers()

getNewGame

public NewGameStats getNewGame()

getSequenceLength

public int getSequenceLength()

isKeepSettings

public boolean isKeepSettings()

isToContinue

public boolean isToContinue()

resetLengthAttempts

public void resetLengthAttempts()

Vengono impostati i valori standard del numero di tentativi e della lunghezza delle sequenze

setAttempts

public void setAttempts(int attempts)

setBreakers

public void setBreakers(BreakerFactoryRegistry breakers)

setCurrentBreaker

public void setCurrentBreaker(CodeBreaker currentBreaker)

setCurrentGame

public void setCurrentGame(SingleMatch currentGame)

setCurrentMaker

public void setCurrentMaker(CodeMaker currentMaker)

setHighTresholdLength

public void setHighTresholdLength(int highTresholdLength)

setIntView

public void setIntView(InteractionView intView)

setKeepSettings

public void setKeepSettings(boolean keepSettings)

setLowTresholdAttempts

public void setLowTresholdAttempts(int lowTresholdAttempts)

setLowTresholdLength

public void setLowTresholdLength(int lowTresholdLength)

setMakers

public void setMakers(MakerFactoryRegistry makers)

setNewGame

public void setNewGame(NewGameStats newGame)

setSequenceLength

public void setSequenceLength(int sequenceLength)

setToContinue

public void setToContinue(boolean toContinue)