26272829303132
* @throws java.lang.Exception */ @Before public void setUp() throws Exception { map = new WorldItemMap(5, 5); item = new WorldItem(1, 2, null); }
272829303132333435
/** * @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); }
303304305306307308309310311312313
} 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
143144145146147148149150151152153
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();