Package games.stendhal.server.entity.player

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


    assertThat(offer.getItem(), is(item));
    assertThat(offer.getPrice(), is(price));
    assertThat(Boolean.valueOf(george.isEquipped(item.getName())),
        is(Boolean.FALSE));
    Player ernie = PlayerTestHelper.createPlayer("ernie");
    ernie.equipToInventoryOnly(erniesMoney);
    assertThat(ernie.isEquipped("money", price), is(Boolean.TRUE));
    market.acceptOffer(offer, ernie);
    assertThat(Boolean.valueOf(ernie.isEquipped("axe")), is(Boolean.TRUE));
    assertThat(ernie.isEquipped("money", price), is(Boolean.FALSE));
    assertThat(Boolean.valueOf(george.isEquipped("money")), is(Boolean.FALSE));
View Full Code Here

    Item item = SingletonRepository.getEntityManager().getItem("axe");
    StackableItem erniesMoney = (StackableItem) SingletonRepository
        .getEntityManager().getItem("money");
    Integer price = Integer.valueOf(10);
    erniesMoney.setQuantity(price);
    george.equipToInventoryOnly(item);
   
    // ensure different CIDs
    CIDSubmitAction.nameList.put("george", "georgescid");
    CIDSubmitAction.nameList.put("ernie", "erniescid");
   
View Full Code Here

    CIDSubmitAction.nameList.put("george", "georgescid");
    CIDSubmitAction.nameList.put("ernie", "erniescid");
   
    Offer offer = market.createOffer(george, item, price, 1);
    Player ernie = PlayerTestHelper.createPlayer("ernie");
    ernie.equipToInventoryOnly(erniesMoney);
   
    assertThat(ernie.getTradescore(), is(0));
    assertThat(george.getTradescore(), is(0));
   
    market.acceptOffer(offer, ernie);
View Full Code Here

    Item item = SingletonRepository.getEntityManager().getItem("axe");
    StackableItem erniesMoney = (StackableItem) SingletonRepository
        .getEntityManager().getItem("money");
    Integer price = Integer.valueOf(10);
    erniesMoney.setQuantity(price);
    george.equipToInventoryOnly(item);
   
    CIDSubmitAction.nameList.put("ernie", "erniescid");
   
    Offer offer = market.createOffer(george, item, price, 1);
    Player ernie = PlayerTestHelper.createPlayer("ernie");
View Full Code Here

   
    CIDSubmitAction.nameList.put("ernie", "erniescid");
   
    Offer offer = market.createOffer(george, item, price, 1);
    Player ernie = PlayerTestHelper.createPlayer("ernie");
    ernie.equipToInventoryOnly(erniesMoney);
   
    assertThat(ernie.getTradescore(), is(0));
    assertThat(george.getTradescore(), is(0));
   
    market.acceptOffer(offer, ernie);
View Full Code Here

    Item item = SingletonRepository.getEntityManager().getItem("axe");
    StackableItem erniesMoney = (StackableItem) SingletonRepository
        .getEntityManager().getItem("money");
    Integer price = Integer.valueOf(10);
    erniesMoney.setQuantity(price);
    george.equipToInventoryOnly(item);
   
    CIDSubmitAction.nameList.put("george", "georgescid");
   
    Offer offer = market.createOffer(george, item, price, 1);
    Player ernie = PlayerTestHelper.createPlayer("ernie");
View Full Code Here

   
    CIDSubmitAction.nameList.put("george", "georgescid");
   
    Offer offer = market.createOffer(george, item, price, 1);
    Player ernie = PlayerTestHelper.createPlayer("ernie");
    ernie.equipToInventoryOnly(erniesMoney);
   
    assertThat(ernie.getTradescore(), is(0));
    assertThat(george.getTradescore(), is(0));
   
    market.acceptOffer(offer, ernie);
View Full Code Here

    Item item = SingletonRepository.getEntityManager().getItem("axe");
    StackableItem money = (StackableItem) SingletonRepository
        .getEntityManager().getItem("money");
    Integer price = Integer.valueOf(10);
    money.setQuantity(price);
    george.equipToInventoryOnly(item);
    george.equipToInventoryOnly(money);
   
    CIDSubmitAction.nameList.put("george", "georgescid");
   
    Offer offer = market.createOffer(george, item, price, Integer.valueOf(1));
View Full Code Here

    StackableItem money = (StackableItem) SingletonRepository
        .getEntityManager().getItem("money");
    Integer price = Integer.valueOf(10);
    money.setQuantity(price);
    george.equipToInventoryOnly(item);
    george.equipToInventoryOnly(money);
   
    CIDSubmitAction.nameList.put("george", "georgescid");
   
    Offer offer = market.createOffer(george, item, price, Integer.valueOf(1));
   
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.