Package games.stendhal.server.entity.creature

Examples of games.stendhal.server.entity.creature.Creature.attack()


  public void testAttack() throws Exception {
    MockStendhalRPRuleProcessor.get();
    final HandToHand hth = new HandToHand();
    final Creature creature = createMock(Creature.class);
    expect(creature.isAttackTurn(0)).andReturn(true);
    expect(creature.attack()).andReturn(true);
    creature.tryToPoison();
    replay(creature);
    hth.attack(creature);
    verify(creature);
  }
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.