}
private void setFigures(String avaiableFigures, String startFigure) {
String figures[] = avaiableFigures.split(",");
for (String figure : figures) {
InterfaceFunction curNum = InterfaceFunctions.ERROR;
if (figure.equals("RollingBall")) {
curNum = InterfaceFunctions.FIGURE_ROLLING_BALL;
} else if (figure.equals("JumpingCross")) {
curNum = InterfaceFunctions.FIGURE_JUMPING_CROSS;
}
this.figureList.put(curNum, this.getNewFigure(curNum));
}
InterfaceFunction curNum = InterfaceFunctions.ERROR;
if (startFigure.equals("RollingBall")) {
curNum = InterfaceFunctions.FIGURE_ROLLING_BALL;
} else if (startFigure.equals("JumpingCross")) {
curNum = InterfaceFunctions.FIGURE_JUMPING_CROSS;
}