update Entity and Location
This commit is contained in:
@@ -36,4 +36,9 @@ public interface Entity {
|
||||
void setDefendRate(double defendRate);
|
||||
|
||||
Weapon getWeapon();
|
||||
|
||||
default boolean isAlive() {
|
||||
int hp = getHP();
|
||||
return hp > 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user