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
@@ -2,10 +2,16 @@ package org.project.item;
import org.project.entity.Entity;
public interface Item {
void use(Entity target);
public abstract class Item {
private final String Name;
public Entity Owner;
/*
TODO: ADD OTHER REQUIRED AND BONUS METHODS
*/
public Item (String name, Entity owner) {
this.Name = name;
this.Owner = owner;
}
public String getName() {
return Name;
}
}