develop #1

Open
HadiSharifi wants to merge 33 commits from develop into main
2 changed files with 7 additions and 7 deletions
Showing only changes of commit d6d2bdc24f - Show all commits
@@ -36,4 +36,9 @@ public interface Entity {
void setDefendRate(double defendRate);
Weapon getWeapon();
default boolean isAlive() {
int hp = getHP();
return hp > 0;
}
}
@@ -9,19 +9,14 @@ public class Location {
private ArrayList<Enemy> enemies;
public Location(ArrayList<Location> locations, ArrayList<Enemy> enemies) {
this.locations = locations;
public Location(ArrayList<Enemy> enemies) {
this.enemies = enemies;
}
public String getName() {
return name;
}
public ArrayList<Location> getLocations() {
return locations;
}
public ArrayList<Enemy> getEnemies() {
return enemies;
}