From 625d1ea2c27dbcebfcd8836e053fb51ba8d7bb61 Mon Sep 17 00:00:00 2001 From: Max Gerbeth Date: Mon, 9 Jan 2023 17:14:06 +0100 Subject: [PATCH] refactoring: buy(), loadItems(), getCurrentShopItems(), quiz() --- src/main/java/org/bitbiome/shop/Shop.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/bitbiome/shop/Shop.java b/src/main/java/org/bitbiome/shop/Shop.java index 07f519e..ecc2051 100644 --- a/src/main/java/org/bitbiome/shop/Shop.java +++ b/src/main/java/org/bitbiome/shop/Shop.java @@ -3,17 +3,20 @@ package org.bitbiome.shop; import java.util.ArrayList; public class Shop { + public ArrayList allItems; + public ArrayList currentShopItems; + public Shop(){ } - public boolean kaufen(){ + public boolean buy(){ //ToDo return true; } - private ArrayList itemsLaden(){ + private ArrayList loadItems(){ //ToDo return null; @@ -26,10 +29,10 @@ public class Shop { } public ArrayList getCurrentShopItems(){ - return null; + return currentShopItems; } - public void Quiz(){ + public void quiz(){ //ToDo } }