Package ingsw.proj.cluedo.componenti

Examples of ingsw.proj.cluedo.componenti.Stanza


      for (int j = xMin; j <= xMax; j++) {
        if (!(caselle[i][j] instanceof HaDestinazione))
          caselle[i][j] = new Casella(nomeStanza, new Point(j, i));
        tempStanza.add(caselle[i][j]);
      }
    stanze.add(new Stanza(nomeStanza, tempStanza));
  }
View Full Code Here


  public void setUp() throws Exception {
    caselle = new ArrayList<Casella>();
    for (int i = 0; i < 4; i++) {
      caselle.add(new Casella(StanzeEnum.CANTINA, new Point(i, i)));
    }
    stanza = new Stanza(StanzeEnum.CANTINA, caselle);
  }
View Full Code Here

  public void testStanza() {
    caselle.clear();
    for (int i = 0; i < 4; i++) {
      caselle.add(new Casella(StanzeEnum.CORRIDOIO, new Point(i, i)));
    }
    stanza = new Stanza(StanzeEnum.CORRIDOIO, caselle);
    assertTrue(stanza.getNome() == StanzeEnum.CORRIDOIO);
    assertNotNull(stanza.getCaselle());
    assertNotNull(stanza.getCasellaVuotaRandom());
  }
View Full Code Here

    assertNotNull(stanza.getCasellaVuotaRandom());
  }

  @Test(expected = NullPointerException.class)
  public void parametroNull() {
    new Stanza(null, null);
    new Stanza(null, caselle);
    new Stanza(StanzeEnum.CAMERA_LETTO, null);
    new Stanza(StanzeEnum.STUDIO, caselle);
  }
View Full Code Here

        tabellone[i][i] = new Casella(StanzeEnum.BIBLIOTECA, new Point(i, j));
    stanze = new ArrayList<Stanza>();
    for (int i = 0; i < 4; i++) {
      caselle.add(new Casella(StanzeEnum.CANTINA, new Point(i, i)));
    }
    stanza = new Stanza(StanzeEnum.CANTINA, caselle);
    stanze.add(stanza);
    caselle.clear();
    for (int i = 0; i < 4; i++) {
      caselle.add(new Casella(StanzeEnum.BAGNO, new Point(i, i)));
    }
    stanza = new Stanza(StanzeEnum.BAGNO, caselle);
    stanze.add(stanza);

    tab = new Tabellone(tabellone, stanze);

  }
View Full Code Here

TOP

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

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.