Example #1
0
 public void addArmy(Army army) {
   armies.add(army);
   map.addArmy(army.getPosition(), army.getSightRange());
 }
Example #2
0
 public void removeArmy(Army army) {
   armies.remove(army);
   Position position = army.getPosition();
   map.removeArmy(position, army.getSightRange());
 }