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
@@ -1,6 +1,30 @@
package org.project.entity;
public interface Entity {
import org.project.item.Accessory.Custom;
import org.project.item.Accessory.Shield;
import org.project.item.Accessory.Weapon;
import org.project.item.Item;
import java.util.ArrayList;
public abstract class Entity {
public int MaxHealth;
public long Money;
private int BaseDamage;
public Weapon Weapon;
public Shield Shield;
public Costume Costume;
public ArrayList<Item> Inventory;
public int getBaseDamage() {
return BaseDamage;
}
public void setBaseDamage(int baseDamage) {
BaseDamage = baseDamage;
}
void attack(Entity target);
void defend();
@@ -15,6 +39,10 @@ public interface Entity {
int getMaxMP();
public void She() {
}
/*
TODO: ADD OTHER REQUIRED AND BONUS METHODS
*/