update entity
This commit is contained in:
@@ -3,7 +3,7 @@ package org.project.entity;
|
||||
import org.project.item.weapons.Weapon;
|
||||
|
||||
public interface Entity {
|
||||
void attack(Entity target, double multiplier);
|
||||
void attack(Entity target);
|
||||
|
||||
void defend();
|
||||
|
||||
@@ -37,6 +37,10 @@ public interface Entity {
|
||||
|
||||
Weapon getWeapon();
|
||||
|
||||
double getAttackMultiplier();
|
||||
|
||||
void setAttackMultiplier(double multiplier);
|
||||
|
||||
default boolean isAlive() {
|
||||
int hp = getHP();
|
||||
return hp > 0;
|
||||
|
||||
Reference in New Issue
Block a user