// quand on joue une carte
if (action instanceof ActionPlayACard) {
if (!event.getPlayer().equals(player))
if (event.getCards() != null)
for (Card card : event.getCards()) {
SoundManager.playSound(new WaveSound("wav/cards/"
+ card.getCardName() + ".wav", false));
if (card.getCardName().equals("Joker")
|| card.getCardName().equals("+4"))
sayAskedColor();
}
}
// quand on pioche
if (action instanceof ActionPick) {
SoundManager.playSound(new WaveSound("wav/gui/pioche.wav",
false));
if (action.getPlayer().equals(player)) {
playerhaspicked = true;
for (Card card : action.getCards())
SoundManager.playSound(new WaveSound("wav/cards/"
+ card.getCardName() + ".wav", false));
}
} else {
if (action.getPlayer().equals(player))
playerhaspicked = false;
// quand c'est à notre tour de jouer, mais pas après avoir
// pioché
if (action.getGame().getPlayers().getSortedList().get(0)
.equals(player))
SoundManager.playSound(new WaveSound("wav/gui/ding.wav",
false));
}
// quand on passe
if (action instanceof ActionSkipTurn)
SoundManager
.playSound(new WaveSound("wav/gui/passe.wav", false));
deck.repaint();
}