Interface BreakerFactory
-
- All Superinterfaces:
PlayerFactory
- All Known Implementing Classes:
DonaldKnuthBreakerFactory
,InteractiveBreakerFactory
,RandomBotBreakerFactory
public interface BreakerFactory extends PlayerFactory
Responsabilità: fornire istanze di implementazioni diCodeBreaker
. Interfaccia finalizzata all'implementazione di classi factory per le particolari implementazioni dei giocatoriCodeBreaker
.- Author:
- Francesco Pio Stelluti, Francesco Coppola
-
-
Method Summary
Modifier and Type Method Description CodeBreaker
getBreaker(GameView view, int seqLength, int attempts)
Ottenimento di un'istanza di un giocatoreCodeBreaker
.-
Methods inherited from interface it.unicam.cs.pa.mastermind.factories.PlayerFactory
getDescription, getName
-
-
-
-
Method Detail
-
getBreaker
CodeBreaker getBreaker(GameView view, int seqLength, int attempts)
Ottenimento di un'istanza di un giocatoreCodeBreaker
.- Parameters:
view
- vista per l'interazione con l'utente fisicoseqLength
- lunghezza della sequenza diColorPegs
da trattareattempts
- numero di tentativi per vincere il gioco- Returns:
- CodeBreaker istanza di un giocatore
CodeBreaker
-
-