Class InteractiveBreakerFactory

  • All Implemented Interfaces:
    BreakerFactory, PlayerFactory

    public class InteractiveBreakerFactory
    extends java.lang.Object
    implements BreakerFactory
    Classe factory implementazione di BreakerFactory impiegata per ottenere istanze di InteractiveBreaker.
    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 giocatore CodeBreaker.
      java.lang.String getDescription()  
      java.lang.String getName()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InteractiveBreakerFactory

        public InteractiveBreakerFactory()
    • Method Detail

      • getBreaker

        public CodeBreaker getBreaker​(GameView view,
                                      int seqLength,
                                      int attempts)
        Description copied from interface: BreakerFactory
        Ottenimento di un'istanza di un giocatore CodeBreaker.
        Specified by:
        getBreaker in interface BreakerFactory
        Parameters:
        view - vista per l'interazione con l'utente fisico
        seqLength - lunghezza della sequenza di ColorPegs da trattare
        attempts - numero di tentativi per vincere il gioco
        Returns:
        CodeBreaker istanza di un giocatore CodeBreaker
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface PlayerFactory
        Returns:
        String nome della particolare implementazione di un giocatore
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface PlayerFactory
        Returns:
        String descrizione della particolare implementazione di un giocatore