This commit is contained in:
Tim 2021-06-28 09:08:55 +02:00
commit a6726b5e25
2 changed files with 7 additions and 4 deletions

View File

@ -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;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 B