public void add(Fighter fighter) { if (!isAvailable() || fighters.containsKey(fighter.getId())) return; fighter.setFight(fight); fighter.setTeam(this); fighter.setCurrentCell(fight.firstAvailableStartCell(type)); fighter.setCurrentOrientation(OrientationEnum.SOUTH_WEST); fighters.put(fighter.getId(), fighter); }
public String getEncodedStartCells() { return fight.getMap().getCells().getEncodedStartCells(side); }