private void notifyUserOfPlayerLeft(PlayerInfo iLeavingPlayer) { ChatPost wPlayerLeftMsg = new ChatPost(ChatMsgType.PLAYER_LEFT); wPlayerLeftMsg.setPlayerInfo(iLeavingPlayer); for (ServerChatService wChatEntry : mChatServiceMap.values()) { wChatEntry.addMessageToQueue(wPlayerLeftMsg); } }
private void notifyNewPlayerOfCurrentUser(ServerChatService iNewPlayerChatService) { for (ServerChatService wChatEntry : mChatServiceMap.values()) { ChatPost wCurrentPlayerMsg = new ChatPost(ChatMsgType.PLAYER_JOIN); wCurrentPlayerMsg.setPlayerInfo(wChatEntry.getPlayerInfo()); iNewPlayerChatService.addMessageToQueue(wCurrentPlayerMsg); } }
private void notifyUserOfNewPlayer(PlayerInfo iNewPlayer) { ChatPost wNewPlayerMsg = new ChatPost(ChatMsgType.PLAYER_JOIN); wNewPlayerMsg.setPlayerInfo(iNewPlayer); for (ServerChatService wChatEntry : mChatServiceMap.values()) { wChatEntry.addMessageToQueue(wNewPlayerMsg); } }