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;