Esempio n. 1
0
  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);
  }
Esempio n. 2
0
 public String getEncodedStartCells() {
   return fight.getMap().getCells().getEncodedStartCells(side);
 }