update entity

This commit is contained in:
2026-05-07 00:17:11 +03:30
parent 0a6c6034a3
commit 29dbb6d7ad
11 changed files with 64 additions and 33 deletions
@@ -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;