Package smack.down

Examples of smack.down.Table


    base1.addMinion(m1);
    base1.addMinion(m2);
    base1.addMinion(m5);
    base2.addMinion(m3);
    base2.addMinion(m4);
    Table table = new Table(Arrays.asList(player1), new ArrayList<Base>(), Arrays.asList(base1, base2));
    player1.setTable(table);
    Action action = new Howl();
    action.setOwner(player1);
   
    assertEquals(2, m1.getStrength());
View Full Code Here


    Player player1 = new Player("TestPlayer1", new CardList(), new CardSet(), new CardSet());
    Player player2 = new Player("TestPlayer2", new CardList(), new CardSet(), new CardSet());
    Base base1 = new Base("TestBase", Faction.Aliens, 50, 3, 2, 1);
    Minion m1 = (Minion) new ArmorStego().setOwner(player1);
   
    Table table = new Table(Arrays.asList(player1, player2), new ArrayList<Base>(), Arrays.asList(base1));
    player1.setTable(table);
    player2.setTable(table);
   
    assertEquals(3, m1.getStrength());
   
    base1.addMinion(m1);
    m1.setBase(base1);
   
    assertEquals(3, m1.getStrength());
   
    table.nextPlayer();
   
    assertEquals(5, m1.getStrength());
   
    table.nextPlayer();
   
    assertEquals(3, m1.getStrength());
  }
View Full Code Here

  @Test
  public void testLaseratops() {
    Player player1 = new Player("TestPlayer1", new CardList(), new CardSet(), new CardSet());
    Player player2 = new Player("TestPlayer2", new CardList(), new CardSet(), new CardSet());
    Base base1 = new Base("TestBase", Faction.Aliens, 50, 3, 2, 1);
    Table table = new Table(Arrays.asList(player1, player2), new ArrayList<Base>(), Arrays.asList(base1));
    player1.setTable(table);
    player2.setTable(table);
    Minion m1 = (Minion) new Laseratops().setOwner(player1);
    final Minion m2 = (Minion) new Minion("TestMinion1", Faction.Aliens, 2).setOwner(player2);
    base1.addMinion(m2);
View Full Code Here

TOP

Related Classes of smack.down.Table

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.