diff --git a/Zoelda/src/main/items/Item.java b/Zoelda/src/main/items/Item.java index f7b665e..5aebdd0 100644 --- a/Zoelda/src/main/items/Item.java +++ b/Zoelda/src/main/items/Item.java @@ -1,13 +1,16 @@ package main.items; //TODO:Hier soll die Item Oberklasse entstehen public class Item { + private String icon; + public Item(String iconPath){ + icon=iconPath; + } /** - * TODO: - * @return + * Gibt den Pfad zu dem Icon dieses Items an. + * @return String, der den Pfad des Icons dieses Items beschreibt */ public String getIconPath(){ - TODO: - return ""; + return icon; } }