Added some new sound files (PlayerLost, PlayerWon, PlayerSubmittedDeck, PlayerLeft).

This commit is contained in:
LevelX2 2013-08-31 19:00:38 +02:00
parent 2b916a5dfb
commit 182839d41a
12 changed files with 73 additions and 22 deletions

View file

@ -32,6 +32,7 @@ import mage.view.ChatMessage.MessageColor;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import mage.view.ChatMessage.SoundToPlay;
/**
*
@ -75,6 +76,10 @@ public class ChatManager {
chatSessions.get(chatId).broadcast(userName, message, color, withTime);
}
public void broadcast(UUID chatId, String userName, String message, MessageColor color, boolean withTime, SoundToPlay soundToPlay) {
chatSessions.get(chatId).broadcast(userName, message, color, withTime, soundToPlay);
}
/**
*
* use mainly for announcing that a user connection was lost or that a user has reconnected