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