Class MatchStartSettings
- java.lang.Object
-
- it.unicam.cs.pa.mastermind.gamecore.MatchStartSettings
-
public class MatchStartSettings extends java.lang.ObjectResponsabilità: tenere traccia delle informazioni necessarie per poter iniziare una nuova partita e da impiegare all'interno di essa. Contratto: le istanze vengono gestite all'interno diMainManager.- Author:
- Francesco Pio Stelluti, Francesco Coppola
-
-
Constructor Summary
Constructors Constructor Description MatchStartSettings(GameViewFactory gameViewFactory)
-
Method Summary
Modifier and Type Method Description intgetAttempts()BreakerFactorygetBreakerFactory()GameViewFactorygetGameViewFactory()intgetHighTresholdLength()intgetLowTresholdAttempts()intgetLowTresholdLength()MakerFactorygetMakerFactory()intgetSequenceLength()voidresetLengthAttempts()voidsetAttempts(int attempts)voidsetBreakerFactory(BreakerFactory breakerFactory)voidsetHighTresholdLength(int highTresholdLength)voidsetLowTresholdAttempts(int lowTresholdAttempts)voidsetLowTresholdLength(int lowTresholdLength)voidsetMakerFactory(MakerFactory makerFactory)voidsetSequenceLength(int sequenceLength)
-
-
-
Constructor Detail
-
MatchStartSettings
public MatchStartSettings(GameViewFactory gameViewFactory)
-
-
Method Detail
-
getAttempts
public int getAttempts()
-
setAttempts
public void setAttempts(int attempts)
-
getSequenceLength
public int getSequenceLength()
-
setSequenceLength
public void setSequenceLength(int sequenceLength)
-
getGameViewFactory
public GameViewFactory getGameViewFactory()
-
getLowTresholdLength
public int getLowTresholdLength()
-
setLowTresholdLength
public void setLowTresholdLength(int lowTresholdLength)
-
getHighTresholdLength
public int getHighTresholdLength()
-
setHighTresholdLength
public void setHighTresholdLength(int highTresholdLength)
-
getLowTresholdAttempts
public int getLowTresholdAttempts()
-
setLowTresholdAttempts
public void setLowTresholdAttempts(int lowTresholdAttempts)
-
getMakerFactory
public MakerFactory getMakerFactory()
-
setMakerFactory
public void setMakerFactory(MakerFactory makerFactory)
-
getBreakerFactory
public BreakerFactory getBreakerFactory()
-
setBreakerFactory
public void setBreakerFactory(BreakerFactory breakerFactory)
-
resetLengthAttempts
public void resetLengthAttempts()
-
-