apply the item hierarchy
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user