Package model

Examples of model.Mage


    c3.setHealth(20);
  }
 
  @Test
  public void testStatus(){
    Character c4 = new Mage("mage");
    Character c3 = new Warrior("warrior");
    c4.setTarget(c3);
    c3.setTarget(c4);
    System.out.println(c4.statusToString());
    assertTrue(c4.getCurrentHealth() == 21);
    c4.addItem(new Elixir());
    c3.attack();
    System.out.println(c4.statusToString());
    assertTrue(c4.getCurrentHealth() == 15);
    c4.useItem(0);
    System.out.println(c4.statusToString());
    assertTrue(c4.getCurrentHealth() == 21);
  }
View Full Code Here

TOP

Related Classes of model.Mage

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.