Package IHM

Examples of IHM.Erreur


            list.get(i).possible = true;
            list.get(i).repaint();
          }
        } else {
          if (!moteur.action(orig, this))
            new Erreur(pan);
          else {
            frame.setTokens(moteur.getJ1().getToken(), moteur
                .getJ2().getToken());
            if (moteur.myTurn(moteur.getJ1()))
              frame.setTurn(1);
            else
              frame.setTurn(2);
            orig.repaint();
            orig.selected = false;
            orig = null;
            for (int i = 0; i < list.size(); i++) {
              list.get(i).possible = false;
              list.get(i).repaint();
            }
            list.clear();
          }

        }
      } else {
        if (charac != null && moteur.myTurn(charac.getTeam())) {
          selected = true;
          orig = this;
          // affichage coup possible
          list = coupsPossible();
          for (int i = 0; i < list.size(); i++) {
            list.get(i).possible = true;
            list.get(i).repaint();
          }
        } else
          new Erreur(pan);
      }
    } else {
      if (charac != null) {
        selected = false;
        orig = null;
View Full Code Here

TOP

Related Classes of IHM.Erreur

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.