else
return false;
for (Card card : from.getSortedList()) {
if (card.getCardId() == Integer.valueOf(arg[2])) {
ActionPlayYourCards action = null;
for (Action act : game.getActions()) {
if (act instanceof ActionPlayYourCards) {
//FIXME : et si y'a plusieurs ActionplayCards ? et bah plouf ! => il faut utiliser les modules :)
try {
action = (ActionPlayYourCards) act.getClass()
.newInstance();
} catch (Exception e) {
e.printStackTrace();
}
}
}
cards.add(card);
try {
action.playerActed(new ActionEvent(game,
CommandLineLauncher.getCurrentPlayer(), from,
to, cards));
} catch (ActionException e) {
System.out.println("error during playing cards");
}