Examples of equipToInventoryOnly()


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

    Item item = SingletonRepository.getEntityManager().getItem("axe");
    StackableItem erniesMoney = (StackableItem) SingletonRepository
        .getEntityManager().getItem("money");
    Integer price = Integer.valueOf(10);
    erniesMoney.setQuantity(price);
    george.equipToInventoryOnly(item);
    Integer number = Integer.valueOf(1);
    Offer offer = market.createOffer(george, item, price, number);
    assertThat(offer.getItem(), is(item));
    assertThat(offer.getPrice(), is(price));
    assertThat(Boolean.valueOf(george.isEquipped(item.getName())),
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.