Class MatchStartSettings
- java.lang.Object
-
- it.unicam.cs.pa.mastermind.gamecore.MatchStartSettings
-
public class MatchStartSettings extends java.lang.Object
Responsabilità: 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 int
getAttempts()
BreakerFactory
getBreakerFactory()
GameViewFactory
getGameViewFactory()
int
getHighTresholdLength()
int
getLowTresholdAttempts()
int
getLowTresholdLength()
MakerFactory
getMakerFactory()
int
getSequenceLength()
void
resetLengthAttempts()
void
setAttempts(int attempts)
void
setBreakerFactory(BreakerFactory breakerFactory)
void
setHighTresholdLength(int highTresholdLength)
void
setLowTresholdAttempts(int lowTresholdAttempts)
void
setLowTresholdLength(int lowTresholdLength)
void
setMakerFactory(MakerFactory makerFactory)
void
setSequenceLength(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()
-
-