Examples of CartaSospetto


Examples of ingsw.proj.cluedo.componenti.CartaSospetto

    carteArmi.remove(arma_delitto);
    int stanza_delitto = (new Random()).nextInt(carteStanza.size());
    CartaStanza stanza = carteStanza.get(stanza_delitto);
    carteStanza.remove(stanza_delitto);
    int colpevole = (new Random()).nextInt(carteSospetti.size());
    CartaSospetto sospetto = carteSospetti.get(colpevole);
    carteSospetti.remove(colpevole);
    soluzione = new Soluzione(arma, sospetto, stanza);
  }
View Full Code Here

Examples of ingsw.proj.cluedo.componenti.CartaSospetto

  }

  private void generaCarteSospetti(List<String> nomiGiocatori) {
    carteSospetti = new ArrayList<CartaSospetto>();
    for (String string : nomiGiocatori) {
      carteSospetti.add(new CartaSospetto(string));
    }
  }
View Full Code Here

Examples of ingsw.proj.cluedo.componenti.CartaSospetto

  CartaStanza stanza;
  Soluzione soluzione;

  @Before
  public void setUp() throws Exception {
    sospetto = new CartaSospetto("Luigi");
    arma = new CartaArma(ArmiEnum.ASCIA);
    stanza = new CartaStanza(StanzeEnum.CAMERA_LETTO);
  }
View Full Code Here

Examples of ingsw.proj.cluedo.componenti.CartaSospetto

  private CartaSospetto x;
  private String nome;

  @Before
  public void setUp() throws Exception {
    x = new CartaSospetto("TEST");
  }
View Full Code Here

Examples of ingsw.proj.cluedo.componenti.CartaSospetto

    assertNotNull(x);
  }

  @Test(expected = NullPointerException.class)
  public void testCartaNull() {
    new CartaSospetto(null);
  }
View Full Code Here

Examples of ingsw.proj.cluedo.componenti.CartaSospetto

  String nota;

  @Before
  public void setUp() throws Exception {
    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
TOP
Copyright © 2018 www.massapi.com. 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.