update Entity and Location

This commit is contained in:
2026-05-05 09:31:20 +03:30
parent 3ea2250388
commit d6d2bdc24f
2 changed files with 7 additions and 7 deletions
@@ -36,4 +36,9 @@ public interface Entity {
void setDefendRate(double defendRate);
Weapon getWeapon();
default boolean isAlive() {
int hp = getHP();
return hp > 0;
}
}