Package model

Examples of model.FlyingKnight


    assertTrue(c1.getMove() == 5);
  }
 
  @Test
  public void testAttack(){
    Character c2 = new FlyingKnight("flyingknight");
    Character c3 = new Warrior("warrior");
    c2.setTarget(c3);
    c3.setTarget(c2);
    System.out.println(c2.getCurrentHealth() + " " + c3.getCurrentHealth());
    c2.attack();
    System.out.println(c2.getCurrentHealth() + " " + c3.getCurrentHealth());
    assertTrue(c3.ifAlive() == true);
    c2.attack();
    System.out.println(c2.getCurrentHealth() + " " + c3.getCurrentHealth());
    c2.attack();
    System.out.println(c2.getCurrentHealth() + " " + c3.getCurrentHealth());
    c2.attack();
    System.out.println(c2.getCurrentHealth() + " " + c3.getCurrentHealth());
    assertTrue(c3.ifAlive() == false);
    c3.setHealth(20);
  }
View Full Code Here

TOP

Related Classes of model.FlyingKnight

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.