model.setAttribute("player", (Serializable) attrs.get("player"));
model.clearKeyEventWrapperMap();
model.addKeyEventWrapperMap(fetchKEMap((id) attrs.get("player"), (String) attrs.get("eventMapTYPE")).keyEvents);
if (model.getAttribute("ball") instanceof XtendedModel) {
XtendedModel ballModel = (XtendedModel) model.getAttribute("ball");
ball = new Fighter(isMachine() ? new MachinePlayer(player.getPlayerNum(), player.getGui()) : new KeyboardPlayer(player.getPlayerNum(), player.getGui()), (id) attrs.get("player"), ballModel, opponents, fieldBounds, life, pos);
}
break;
}
}
}