apply the item hierarchy

This commit is contained in:
Ramtin Jafari
2026-07-07 17:52:30 +03:30
parent 3b060c446c
commit 43ee0c1562
14 changed files with 246 additions and 139 deletions
@@ -0,0 +1,16 @@
package org.project.item;
import org.project.entity.Entity;
public class SellableItem extends Item{
private final int Price;
public SellableItem (String name, Entity owner, int price) {
super(name, owner);
this.Price = price;
}
public int GetPrice() {
return Price;
}
}