}
@Override
public void update(Object args) {
if (args instanceof Update) {
Update update = (Update) args;
switch (update.getAction()) {
case "games":
if (update.getData() != null) {
setGame((ArrayList<String>) update.getData());
_controller.execute("players", new Object[] { "default" });
}
break;
case "players":
setPlayer((ArrayList<String>) update.getData());
break;
case "addGame":
Object data[] = ((Object[]) update.getData());
if ((Boolean) data[0]) {
_action = "create";
_game = (String) data[1];
_adresse = (String) data[2];
_controller.execute("roomDisconnect",