PlayerList refPlayers = (PlayerList)inObj;
client.getJoinedList().refreshPlayerList(refPlayers);
client.getCurrentFrame().updateGUIForeign();
}
if(inObj.getClass().getSimpleName().equals("Message")){
Message inboundMsg = (Message)inObj;
processMessageInput(inboundMsg);
}
//client.getConnection().sendRcvdConfirmation(inObj); //TEMPORARILY DISABLED
break;
case GAME_IN_PROGRESS:
if(inObj.getClass().getSimpleName().equals("Dice")){
Dice refreshedDice = (Dice)inObj;
client.getDice().refershDice(refreshedDice);
client.getCurrentFrame().updateGUIForeign();
//System.out.println("Hetket�ringute (" + client.getDice().getDiceValues() + ") omanik: " + client.getDice().getCurOwner());
}
if(inObj.getClass().getSimpleName().equals("GameSheet")){
GameSheet refGameSheet = (GameSheet)inObj;
client.getGameSheet().refreshGameSheet(refGameSheet);
client.getCurrentFrame().updateGUIForeign();
}
if(inObj.getClass().getSimpleName().equals("Leaderboard")){
Leaderboard refLeaderboard = (Leaderboard)inObj;
client.getLeaderboard().refreshLeaderboard(refLeaderboard);
client.getCurrentFrame().updateGUIForeign();
}
if(inObj.getClass().getSimpleName().equals("Message")){
Message inboundMsg = (Message)inObj;
processMessageInput(inboundMsg);
}
//client.getConnection().sendRcvdConfirmation(inObj); //TEMPORARILY DISABLED
break;
default: