Package ingsw.proj.cluedo.componenti

Examples of ingsw.proj.cluedo.componenti.Giocatore


      return prossimo.getNome();
    }
  }

  public Iterator<AzioniEnum> getPossibiliAzioni(String nome) {
    Giocatore giocatore = getGiocatore(nome);
    AzioniEnum ultimaAzione = giocatore.getUltimaAzione();
    ArrayList<AzioniEnum> scelte = new ArrayList<AzioniEnum>();
    if (ultimaAzione == AzioniEnum.INIZIA)
      scelte.add(AzioniEnum.MOVIMENTO);
    if ((ultimaAzione == AzioniEnum.INIZIA) || (ultimaAzione == AzioniEnum.MOVIMENTO)) {
      if (giocatore.getStanza() != StanzeEnum.CORRIDOIO) {
        scelte.add(AzioniEnum.IPOTESI);
        scelte.add(AzioniEnum.ACCUSA);
      }
    }
    scelte.add(AzioniEnum.PASSA);
View Full Code Here


    posizioneIniziale = new Casella(StanzeEnum.BIBLIOTECA, new Point(4, 6));
    carta = new CartaSospetto("ciao");
    nome = "pippo";
    mazzo.add(carta);
    nota = new String("nuova nota");
    giocatore = new Giocatore(nome, posizioneIniziale, mazzo);
  }
View Full Code Here

  public void riferimentiNull() {
    // 1� 3 null, 3 nome, 3 ""
    // 2� 3 null, 3 posizioneIniziale
    // 3� 3 null, 3 mazzo

    new Giocatore(null, null, null);
    new Giocatore(null, posizioneIniziale, null);
    new Giocatore(null, null, mazzo);
    new Giocatore(null, posizioneIniziale, mazzo);
    new Giocatore("", null, null);
    new Giocatore("", posizioneIniziale, null);
    new Giocatore("", null, mazzo);
    new Giocatore("", posizioneIniziale, mazzo);
    new Giocatore(nome, null, null);
    new Giocatore(nome, null, mazzo);
    new Giocatore(nome, posizioneIniziale, null);
    new Giocatore("", posizioneIniziale, null);
    new Giocatore(null, posizioneIniziale, null);

    giocatore.aggiungiNota(null);

    giocatore.cambiaPosizione(null);
    posizioneIniziale = new Casella(StanzeEnum.CORRIDOIO, new Point(-1, 3));
View Full Code Here

TOP

Related Classes of ingsw.proj.cluedo.componenti.Giocatore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.