Package smack.down

Examples of smack.down.Action


  @Test
  public void testAugmentation() {
    Player player1 = new Player("TestPlayer", new CardList(), new CardSet(), new CardSet());
    Minion m1 = new Minion("TestMinion", Faction.Aliens, 2);
    m1.setOwner(player1);
    Action action = new Augmentation();
    action.setOwner(player1);
   
    assertEquals(2, m1.getStrength());
   
    action.play(m1, new Callback(){});
   
    assertEquals(6, m1.getStrength());
   
    player1.endTurn(new Callback(){});
   
View Full Code Here


    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());
    assertEquals(5, m2.getStrength());
    assertEquals(7, m3.getStrength());
    assertEquals(3, m4.getStrength());
    assertEquals(6, m5.getStrength());
   
    action.play(new Callback(){});
   
    assertEquals(3, m1.getStrength());
    assertEquals(6, m2.getStrength());
    assertEquals(8, m3.getStrength());
    assertEquals(4, m4.getStrength());
View Full Code Here

TOP

Related Classes of smack.down.Action

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.