Package model

Examples of model.Elixir


    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());
View Full Code Here

TOP

Related Classes of model.Elixir

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.