Examples of equipToInventoryOnly()


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

    zone.add(market);
   
    assertTrue(market.getOffersOlderThan(10000).size() == 0);
   
    Item item = SingletonRepository.getEntityManager().getItem("axe");
    bob.equipToInventoryOnly(item);
    Offer offer = market.createOffer(bob, item, 10, 1);
    offer.put("timestamp", "0");
   
    Item item2 = SingletonRepository.getEntityManager().getItem("cheese");
    bob.equipToInventoryOnly(item2);
View Full Code Here

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

    bob.equipToInventoryOnly(item);
    Offer offer = market.createOffer(bob, item, 10, 1);
    offer.put("timestamp", "0");
   
    Item item2 = SingletonRepository.getEntityManager().getItem("cheese");
    bob.equipToInventoryOnly(item2);
    Offer offer2 = market.createOffer(bob, item2, 10, 1);
   
    // large numbers on purpose trying to overflow int
    List<Offer> offersOlderThan = market.getOffersOlderThan(1000000000);
    assertTrue(offersOlderThan.contains(offer));
View Full Code Here

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

    zone.add(market);
   
    assertTrue(market.getExpiredOffersOlderThan(10000).size() == 0);
   
    Item item = SingletonRepository.getEntityManager().getItem("axe");
    bob.equipToInventoryOnly(item);
    Offer offer = market.createOffer(bob, item, 10, 1);
    offer.put("timestamp", "0");
    market.expireOffer(offer);
   
    Item item2 = SingletonRepository.getEntityManager().getItem("axe");
View Full Code Here

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

    Offer offer = market.createOffer(bob, item, 10, 1);
    offer.put("timestamp", "0");
    market.expireOffer(offer);
   
    Item item2 = SingletonRepository.getEntityManager().getItem("axe");
    bob.equipToInventoryOnly(item2);
    Offer offer2 = market.createOffer(bob, item2, 11, 1);
    market.expireOffer(offer2);
   
    // large numbers on purpose trying to overflow int
    assertTrue(market.getExpiredOffersOlderThan(1000000000).contains(offer));
View Full Code Here

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

    StendhalRPZone zone = new StendhalRPZone("shop");
    Market market = Market.createShop();
    zone.add(market);
   
    Item item = SingletonRepository.getEntityManager().getItem("axe");
    george.equipToInventoryOnly(item);
    Offer offer = market.createOffer(george, item, 10, 1);
   
    item = SingletonRepository.getEntityManager().getItem("carrot");
    george.equipToInventoryOnly(item);
    Offer offer2 = market.createOffer(george, item, 11, 1);
View Full Code Here

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

    Item item = SingletonRepository.getEntityManager().getItem("axe");
    george.equipToInventoryOnly(item);
    Offer offer = market.createOffer(george, item, 10, 1);
   
    item = SingletonRepository.getEntityManager().getItem("carrot");
    george.equipToInventoryOnly(item);
    Offer offer2 = market.createOffer(george, item, 11, 1);
   
    Player ernie = PlayerTestHelper.createPlayer("ernie");
    StackableItem money = (StackableItem) SingletonRepository.getEntityManager().getItem("money");
    money.setQuantity(21);
View Full Code Here

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

    Offer offer2 = market.createOffer(george, item, 11, 1);
   
    Player ernie = PlayerTestHelper.createPlayer("ernie");
    StackableItem money = (StackableItem) SingletonRepository.getEntityManager().getItem("money");
    money.setQuantity(21);
    ernie.equipToInventoryOnly(money);
   
    assertThat(market.getEarningsOlderThan(0).size(), is(0));
    market.acceptOffer(offer, ernie);
    assertThat(market.getEarningsOlderThan(-10).size(), is(1));
    Earning earning1 = market.getEarningsOlderThan(-1).get(0);
View Full Code Here

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

    Player bob = PlayerTestHelper.createPlayer("bob");
    StendhalRPZone zone = new StendhalRPZone("shop");
    Market market = Market.createShop();
    zone.add(market);
    Item item = SingletonRepository.getEntityManager().getItem("axe");
    bob.equipToInventoryOnly(item);
   
    Offer offer = market.createOffer(bob, item, 10, 1);
    offer.put("timestamp", "0");
   
    market.prolongOffer(offer);
View Full Code Here

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

    Player bob = PlayerTestHelper.createPlayer("bob");
    StendhalRPZone zone = new StendhalRPZone("shop");
    Market market = Market.createShop();
    zone.add(market);
    Item item = SingletonRepository.getEntityManager().getItem("axe");
    bob.equipToInventoryOnly(item);
   
    Offer offer = market.createOffer(bob, item, 10, 1);
    offer.put("timestamp", "0");
    market.expireOffer(offer);
   
View Full Code Here

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

    Player bob = PlayerTestHelper.createPlayer("bob");
    StendhalRPZone zone = new StendhalRPZone("shop");
    Market market = Market.createShop();
    zone.add(market);
    Item item = SingletonRepository.getEntityManager().getItem("axe");
    bob.equipToInventoryOnly(item);
   
    Offer offer = market.createOffer(bob, item, 10, 1);
    offer.put("timestamp", "0");
    market.expireOffer(offer);
    market.removeExpiredOffer(offer);
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.