Browse Source

refactoring: printCurrentShopItems()

remotes/origin/shop
Max Gerbeth 2 years ago
parent
commit
c7b47c84e4
  1. 2
      src/main/java/org/bitbiome/commands/ShopCommand.java
  2. 4
      src/main/java/org/bitbiome/shop/Shop.java

2
src/main/java/org/bitbiome/commands/ShopCommand.java

@ -11,7 +11,7 @@ public class ShopCommand implements CommandAPI{
public void performCommand(Scanner scanner, boolean isRunning, String message) { public void performCommand(Scanner scanner, boolean isRunning, String message) {
System.out.println("Willkommen im Shop!"); System.out.println("Willkommen im Shop!");
System.out.println("Folgende Items sind aktuell im Shop:"); System.out.println("Folgende Items sind aktuell im Shop:");
shop.getCurrentShopItems();
shop.printCurrentShopItems();
System.out.println("Was willst Du hier im Shop?"); System.out.println("Was willst Du hier im Shop?");
System.out.println("Etwas kaufen: 1"); System.out.println("Etwas kaufen: 1");
System.out.println("Das Quiz spielen: 2"); System.out.println("Das Quiz spielen: 2");

4
src/main/java/org/bitbiome/shop/Shop.java

@ -58,8 +58,8 @@ public class Shop {
return arrayList; return arrayList;
} }
public void getCurrentShopItems(){
printArrayList(allItems);
public void printCurrentShopItems(){
printArrayList(currentShopItems);
} }
public void quiz(){ public void quiz(){

Loading…
Cancel
Save