示例#1
0
  /** Demande aux joueurs ayant des unités en main de les placer */
  public boolean deploiementSuivant() {
    int nextJoueur =
        (indexSauvJoueurEnCours + 1) == lstJoueurs.size() ? 0 : (indexSauvJoueurEnCours + 1);

    for (; indexJoueurEnCours < lstJoueurs.size(); indexJoueurEnCours++) {
      if (indexJoueurEnCours == nextJoueur) {
        continue;
      }

      joueurEnCours = lstJoueurs.get(indexJoueurEnCours);

      Peuple p = joueurEnCours.getPeuple();

      if (p != null && p.getNbUniteEnMain() > 0) {
        Game.getInstance().showTemp(joueurEnCours.getNom() + " se redéploie.");

        return true;
      }
    }

    indexJoueurEnCours = indexSauvJoueurEnCours;
    joueurEnCours = lstJoueurs.get(indexSauvJoueurEnCours);

    return false;
  }