Examples of stopAttack()


Examples of games.stendhal.server.entity.player.Player.stopAttack()

    StendhalRPAction.startAttack(hyde, sheep);
    assertNull("Attacking someone else's sheep", hyde.getAttackTarget());
    assertEquals("message at attacking someone else's sheep",
        "You pity jekyll's sheep too much to kill it.",
        hyde.events().get(0).get("text"));
    hyde.stopAttack();
    hyde.clearEvents();
    sheep.setOwner(null);
   
    // Protected. should fail
    protectMap();
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.stopAttack()

    StendhalRPAction.startAttack(hyde, sheep);
    assertNull("Attacking a sheep in protected area ", hyde.getAttackTarget());
    assertEquals("message at attacking a sheep in protected area",
        "The powerful protective aura in this place prevents you from attacking that sheep.",
        getPrivateReply(hyde));
    hyde.stopAttack();
    hyde.clearEvents();
   
    // the same with an owned sheep
    sheep.setOwner(hyde);
    StendhalRPAction.startAttack(hyde, sheep);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.