1
0
mirror of https://github.com/davpapp/PowerMiner synced 2024-12-22 07:58:48 -05:00

Creating Inventory Classes

This commit is contained in:
davpapp 2018-01-31 08:12:02 -05:00
parent 925c8d35ca
commit 4ae57f7d49
8 changed files with 38 additions and 2 deletions

Binary file not shown.

BIN
bin/Inventory.class Normal file

Binary file not shown.

BIN
bin/InventorySlot.class Normal file

Binary file not shown.

BIN
bin/Item.class Normal file

Binary file not shown.

View File

@ -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();*/
}
}

19
src/Inventory.java Normal file
View File

@ -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
}
}

13
src/InventorySlot.java Normal file
View File

@ -0,0 +1,13 @@
public class InventorySlot {
Item itemInInventorySlot;
public InventorySlot() {
}
}

4
src/Item.java Normal file
View File

@ -0,0 +1,4 @@
public class Item {
}