Package tyrelion.objects

Examples of tyrelion.objects.WorldItem


   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception {
    map = new WorldItemMap(5, 5);
    item = new WorldItem(1, 2, null);
  }
View Full Code Here


  /**
   * @throws java.lang.Exception
   */
  @Before
  public void setUp() throws Exception {
    item = new WorldItem(3, 5, null);
    item2 = new WorldItem(4, 6, null);
    item3 = new WorldItem(7, 9, null);
  }
View Full Code Here

      } else{
        fields[flyingX][flyingY] = null;
      }
     
      for (int i = dropCount; i>0; i=i-1){
        WorldItem droppedItem = new WorldItem(Player.getInstance().getTileX(), Player.getInstance().getTileY(), content.getItem());
        TyrelionContainer.getInstance().getMap().getItems().addItem(droppedItem);
      }   
    } else {
     
      //not the same field
View Full Code Here

        Element e = (Element) childs.get(i);
        int id = e.getAttribute("id").getIntValue();
        int posX = e.getAttribute("posX").getIntValue();
        int posY = e.getAttribute("posY").getIntValue();
       
        items.addItem(new WorldItem(posX, posY, ItemLoader.getInstance().getItem(id)));
      }
     
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of tyrelion.objects.WorldItem

Copyright © 2018 www.massapicom. 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.