}
} else if (input.isKeyPressed(Input.KEY_0)) {
// the user pressed the 0 KEY which changes the RoboterKI
if (selectedSlickComponent instanceof RoboterComponent) {
RoboterComponent selectedRoboterComponent = (RoboterComponent) selectedSlickComponent;
RoboterKI selectedRoboterKI = simulator.getRoboterKIForRoboter(selectedRoboterComponent.getModelObject());
Wesen[] wesenArray = RobKIFactr.Wesen.values();
int pos = Arrays.binarySearch(wesenArray, selectedRoboterKI.getWesen());
if (++pos >= wesenArray.length) {
pos = 0;
}
RoboterKI newRoboterKI = RobKIFactr.getRoboterKI(wesenArray[pos]);
simulator.changeRoboterKIForRoboter(selectedRoboterComponent.getModelObject(), newRoboterKI);
}
}
}