|
|
@ -7,7 +7,7 @@ public class Shop { |
|
|
|
public ArrayList<Item> currentShopItems; |
|
|
|
|
|
|
|
public Shop(){ |
|
|
|
|
|
|
|
allItems = loadItems(); |
|
|
|
} |
|
|
|
|
|
|
|
public boolean buy(){ |
|
|
@ -35,4 +35,12 @@ public class Shop { |
|
|
|
public void quiz(){ |
|
|
|
//ToDo |
|
|
|
} |
|
|
|
|
|
|
|
private void printArrayList(ArrayList<Item> arrayList){ |
|
|
|
System.out.println(""); |
|
|
|
for(int i = 0; i < arrayList.size(); i++){ |
|
|
|
System.out.println(arrayList.get(i).getName() + " | " + arrayList.get(i).getDamage() + " | " + arrayList.get(i).isCrafting() + " | " + arrayList.get(i).getDurability()); |
|
|
|
} |
|
|
|
System.out.println(""); |
|
|
|
} |
|
|
|
} |