mirror of
https://github.com/davpapp/PowerMiner
synced 2024-12-22 07:58:48 -05:00
Creating Inventory Classes
This commit is contained in:
parent
925c8d35ca
commit
4ae57f7d49
Binary file not shown.
BIN
bin/Inventory.class
Normal file
BIN
bin/Inventory.class
Normal file
Binary file not shown.
BIN
bin/InventorySlot.class
Normal file
BIN
bin/InventorySlot.class
Normal file
Binary file not shown.
BIN
bin/Item.class
Normal file
BIN
bin/Item.class
Normal file
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();*/
|
||||
}
|
||||
}
|
||||
|
19
src/Inventory.java
Normal file
19
src/Inventory.java
Normal 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
13
src/InventorySlot.java
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
public class InventorySlot {
|
||||
|
||||
Item itemInInventorySlot;
|
||||
|
||||
|
||||
public InventorySlot() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
4
src/Item.java
Normal file
4
src/Item.java
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
public class Item {
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user