modify war add town/nation rework

This commit is contained in:
Aubri Seebauer committed 2023-04-23 13:13:27 -04:00
1 parent ffc047df0f
commit 93aff6e642
3 files changed
+89 -13

No files matched your search

@@ -101,6 +101,24 @@ public class War {
surrenderedTowns.add(town);
}
/**
* unsurrender town, perfidy time
* @param nation - Nation to unsurrender
*/
public void unSurrenderNation(Nation nation) {
for (Town town : nation.getTowns()) {
unSurrenderTown(town.getName());
}
}
/**
* unsurrender town, perfidy time
* @param town - Town to unsurrender
*/
public void unSurrenderTown(String town) {
surrenderedTowns.remove(town);
}
/**
* Gets side of town
* -1 - Surrendered