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