Creating Inventory Classes
This commit is contained in:
parent
925c8d35ca
commit
4ae57f7d49
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -15,8 +15,8 @@ public class CursorTask extends Cursor {
|
|||
}
|
||||
|
||||
public void dropItem(InventorySlot inventorySlot) {
|
||||
Point inventorySlotCoordinates = inventorySlot.getCoordinates();
|
||||
/*Point inventorySlotCoordinates = inventorySlot.getCoordinates();
|
||||
moveAndRightClickAtCoordinates(inventorySlotCoordinates);
|
||||
moveAndLeftClickAtCoordinates();
|
||||
moveAndLeftClickAtCoordinates();*/
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
public class Inventory {
|
||||
|
||||
InventorySlot[][] inventorySlots;
|
||||
|
||||
public Inventory() {
|
||||
inventorySlots = new InventorySlot[4][7];
|
||||
for (int row = 0; row < 7; row++) {
|
||||
for (int column = 0; column < 4; column++) {
|
||||
inventorySlots[column][row] = new InventorySlot();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void update() {
|
||||
// Screenshot
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
public class InventorySlot {
|
||||
|
||||
Item itemInInventorySlot;
|
||||
|
||||
|
||||
public InventorySlot() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
public class Item {
|
||||
|
||||
}
|
Loading…
Reference in New Issue